PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   How to use php includes in PP templates? (http://www.photopost.com/forum/photopost-pro-how-do-i/125380-how-use-php-includes-pp-templates.html)

DefenceTalk.com June 7th, 2006 10:57 AM

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

thanks

Garrynz June 7th, 2006 04:20 PM

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.

Chuck S June 7th, 2006 06:46 PM

Yep what he says ;)

DefenceTalk.com June 8th, 2006 11:40 AM

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?

Garrynz June 9th, 2006 02:28 AM

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>

Chuck S June 9th, 2006 07:29 AM

Yep the PPPRINT statements need to be on there own lines and flush against the page left margin

DefenceTalk.com June 10th, 2006 07:56 PM

Getting this error:

Parse error: syntax error, unexpected T_SL, expecting ',' or ';' in /pictures/templates/vb3enhanced/showphoto.tmpl on line 100

Chuck S June 11th, 2006 08:26 AM

without seeing what your doing and what line 100 is I can not help ;)

kozko December 26th, 2006 08:37 PM

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! :D


All times are GMT -5. The time now is 07:42 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97