![]() |
How to use php includes in PP templates? Anyway to use php includes in PP templates? Such as showphoto template in particular? thanks |
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. |
Yep what he says ;) |
Quote:
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? |
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> |
Yep the PPPRINT statements need to be on there own lines and flush against the page left margin |
Getting this error: Parse error: syntax error, unexpected T_SL, expecting ',' or ';' in /pictures/templates/vb3enhanced/showphoto.tmpl on line 100 |
without seeing what your doing and what line 100 is I can not help ;) |
This helped me solve my problem. Quote:
|
| 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