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);
makechoosercode("Template set","templatesetid","templateset",iif(isset($templatesetid),$templatesetid,-1),iif($debug,"All - global to all template sets",""));
maketextareacode("Template<br><br><font size='1'>".iif(isset($title),makelinkcode("view default template","template.php?s=$session[sessionhash]&action=view&title=$title",1)."</font>",""),"template",$template,25,80);
makehiddencode("group", "$group");
doformfooter("Save");
3. DIRECTLY After that add
Code:
echo "<b>Preview Code Placement:</b><hr>$template<hr><b>Preview Page Layout:</b><hr>\n";
eval("dooutput(\"".gettemplate("$title")."\");");
4.Look for (around line 99)
Code:
makeinputcode("Template name","title",$template[title]);
makechoosercode("Template set","templatesetid","templateset",$template[templatesetid],iif($debug,"All - global to all template sets",""));
maketextareacode("Template<br><br><font size='1'>".makelinkcode("view default template","template.php?s=$session[sessionhash]&action=view&title=$template[title]",1)."</font>","template",$template[template],25,80);
makehiddencode("group", "$group");
doformfooter("Save Changes");
5. DIRECTLY After that add
Code:
$templatesetid=$template[templatesetid];
echo "<b>Preview Code Placement:</b><hr>$template[template]<hr><b>Preview Page Layout:</b><hr>\n";
eval("dooutput(\"".gettemplate("$template[title]")."\");");
6. Look for (around line 125)
Code:
doformheader("","");
maketableheader("View Default template");
maketextareacode($template[title],"",$template[template],20,80);
echo "</table>\n</td></tr></table></form>";
7. DIRECTLY After that add
Code:
echo "<b>Preview Code Placement:</b><hr>$template[template]<hr><b>Preview Page Layout:</b><hr>\n";
eval("dooutput(\"".gettemplate("$title")."\");");
Screenshot below:
Bookmarks