PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 16th, 2010, 01:18 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2010
Posts: 41
include a .php file in showphoto

I would like to include a file on the showphoto page.

at the top of the image I would like to add specific info related to the image. so if the image title is called 992 - i would like to call a page called 992.php above the image....

at the min i am using the code

Code:
Content visible to verified customers only.
where $phutitle would, in this example be 992.php

nothing is appearing, any ideas on what I am doing wrong?

thanks in advance
mulderx is offline   Reply With Quote
Old August 16th, 2010, 01:34 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
well two aspects here.one would think about when creating such a mod

First off the photo title variable is $title not $phutitle

Second whatever php script you create you would need to alter the showphoto template and include whatever variable you define to output the the html you create in that custom script where you want it to display.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 16th, 2010, 01:50 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2010
Posts: 41
ok, i took on board what you said and changed $title for $extra1 which is a custom field that I have added. (namely just the number; in this example it is 992)
When i now add the code
<?php include("/home/sites/vip1895980/httpd/htdocs/$extra1.php"); ?><br /> into showphoto.tmpl nothing appears and when i look at the source i get this:
<?php include("/home/sites/vip1895980/httpd/htdocs/992.php"); ?><br />

I feel I am really close to achieving this...
mulderx is offline   Reply With Quote
Old August 16th, 2010, 02:15 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I would suspect your not doing something right but your free to discuss code modifications with other users in THE MOD CORNER.

I can not really respond as I would not know what your doing. This is how I would do it.

1. You would include the php file in your showphoto.php file

2. You would alter the actual showphoto template and place whatever variable you have defined to print whatever info you are including where you wish in the template. For example if you have defined in your custom file a variable named $addoninfo then you would place $addoninfo in the template where you wish the info to display.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 17th, 2010, 06:46 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jul 2010
Posts: 41
I think I am getting in over my head here...
I have added the code
Code:
Content visible to verified customers only.
to showphoto.php (where $extra1 will become a 3 digit number when the page is loaded) - when the page loads it is including the file , however it is located at the top left of the page - Point number 2 above is confusing me, I am unsure what to do from here to get the included file displayed where I want it (which is above the photo and below the $nextlink $previouslink)

Thanks in advance.

link below is to the only page that is working, as when different photos are loaded the script is looking to include the relevant .txt file and i haven't created them yet.

992 Go2 Skyblue Scania - NCT Fleetlist Photos
mulderx is offline   Reply With Quote
Old August 17th, 2010, 07:22 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2010
Posts: 41
Ok, so after doing some research I think I need to create a php variable which will reside in showphoto.php, I then call the variable in the place i want it to display in showphoto.tmpl... is this correct?
mulderx is offline   Reply With Quote
Old August 17th, 2010, 10:59 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jul 2010
Posts: 41
I feel this now needs to be in the mod corner so I will start a new thread there, thanks for your help so far
mulderx is offline   Reply With Quote
Old August 17th, 2010, 11:01 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Yes you would create a php file to generate whatever code you wish and create a variable you can plugin to the showphoto template where you wish but you are correct code modification is not part of product support so the mod forums would be the best place for your discussion.

you could also theoretically do an include inside the showphoto template as well but you need to figure out where you want it to display.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
php include ? bbhunt Photopost Pro How Do I...? 1 November 22nd, 2009 07:16 AM
HELP!!! Just overwrote Showphoto.php File peytondunn2712 Photopost Pro How Do I...? 4 April 4th, 2007 09:52 PM
Remote File Include Vulnerability - is vbgallery affected? ludachris Before You Buy 1 November 13th, 2006 07:14 PM
to include in a php file pilot ReviewPost Suggestions 0 August 27th, 2005 12:06 PM
PHP Start Include? Nautiqeman Installs and Upgrade - vBulletin 3.0.X 8 January 22nd, 2005 09:15 PM


All times are GMT -5. The time now is 03:05 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0