![]() |
Updated 06/30/01 for v2.01 plus added feature for Preview of "View Original"
To make it easier to see what a template looks like, Set up a Preview by following these instructions: 1. Open template.php. 2. Look for (around line 79) Code:
makeinputcode("Template name","title",$title); Code:
echo "<b>Preview Code Placement:</b><hr>$template<hr><b>Preview Page Layout:</b><hr>\n"; Code:
makeinputcode("Template name","title",$template[title]); Code:
$templatesetid=$template[templatesetid]; Code:
doformheader("",""); Code:
echo "<b>Preview Code Placement:</b><hr>$template[template]<hr><b>Preview Page Layout:</b><hr>\n"; |
Suggestion: run it through the replacement variables before displaying.
|
Sounds like a great idea, but I have no idea how to do that...not familiar enuf w/ the code...but if u give me a clue or 2 I'll work on it...
|
check how templates are normally parsed, it should be there somewhere.
|
A quick look in misc.php should give you the answers you seek.
|
OK, now that I put it through templates, sometimes it looks a bit funny. So I output it both ways.
Since you actually need these variables to make it look good, this hack is not for everyone, but I find it very useful when working on the templates. I've updated the hack instructions above...[thanks to menno and wluke] |
You need to change point 5 to
Code:
$templatesetid=$template[templatesetid]; |
Quote:
Code:
$templatesetid=$template[templatesetid] Code:
eval("dooutput(\"".gettemplate("$template[title]")."\");") |
Nice help, especially while translating ;) Thx...
But you shoukld prevent one thing: Ever tried to edit standardredirect ???? :D |
Quote:
|
All times are GMT. The time now is 04:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|