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 June 7th, 2006, 10:57 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Unhappy How to use php includes in PP templates?

Anyway to use php includes in PP templates? Such as showphoto template in particular?

thanks
DefenceTalk.com is offline   Reply With Quote
Old June 7th, 2006, 04:20 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Yeah just

include "http://www.yoursite.com/script.php";

if within php code part of the template or

PPPRINT;
include "http://www.yoursite.com/script.php";
echo <<<PPPRINT

if within html code, make sure the PPPRINT; is flush with the margin.
Garrynz is offline   Reply With Quote
Old June 7th, 2006, 06:46 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,664
Yep what he says
__________________
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 June 8th, 2006, 11:40 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Red face

Quote:
Originally Posted by Garrynz
Yeah just

include "http://www.yoursite.com/script.php";

if within php code part of the template or

PPPRINT;
include "http://www.yoursite.com/script.php";
echo <<<PPPRINT

if within html code, make sure the PPPRINT; is flush with the margin.
Thanks. What is "PPPRINT; is flush with the margin" mean?

I tried:

<tr>
<td align="center" width="100%" border="1">$imgdisp</td><td>PPPRINT;
include "http://www.mysite.com/script.php";
echo <<<PPPRINT </td>
</tr>

But it doesn't seem to work?
DefenceTalk.com is offline   Reply With Quote
Old June 9th, 2006, 02:28 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
No it won't try
<tr>
<td align="center" width="100%" border="1">$imgdisp</td><td>
PPPRINT;
include "http://www.mysite.com/script.php";
echo <<<PPPRINT
</td>
</tr>
Garrynz is offline   Reply With Quote
Old June 9th, 2006, 07:29 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,664
Yep the PPPRINT statements need to be on there own lines and flush against the page left margin
__________________
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 June 10th, 2006, 07:56 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Feb 2005
Posts: 387
Getting this error:

Parse error: syntax error, unexpected T_SL, expecting ',' or ';' in /pictures/templates/vb3enhanced/showphoto.tmpl on line 100
DefenceTalk.com is offline   Reply With Quote
Old June 11th, 2006, 08:26 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,664
without seeing what your doing and what line 100 is I can not help
__________________
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 December 26th, 2006, 08:37 PM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2006
Posts: 9
This helped me solve my problem.

Quote:
PPPRINT;
include "http://www.yoursite.com/script.php";
echo <<<PPPRINT

if within html code, make sure the PPPRINT; is flush with the margin.
I didn't have it flush at first... Thanks!
kozko 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
Uncached templates: showimage.php Zachariah Bugs - vBulletin 3.0.X 0 March 15th, 2006 07:34 AM
category page images and php includes arcab4 Photopost Pro How Do I...? 3 April 17th, 2005 04:54 PM
php code in templates neurosis Before You Buy 1 March 15th, 2005 09:11 AM
./includes/init.php Error Pinpoint Photopost Pro Installation & Upgrades 17 July 14th, 2004 10:17 PM


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

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