PDA

View Full Version : Template issue


pdatoon
12-12-2001, 11:53 AM
Hi,

Hope everybody is doing good.
I'm not a power user and i tried to edit create my own template and it doesnt work. Here is what i wanted to do.

I wanted to have my customized printthread template (without the board logo), but i didnt want to alter the original.
So i created a new template called printthread_avantgo and then i created a copy of printthread.php called printthread_avantgo.php. In this file i just changed the template name from printthread to my new created template printthread_avantgo.

But when i call printthread_avantgo.php, the result is empty.
When i put back the default name (printthread) into printthread_avantgo, it works. Of course with the regular template...

What did i do wrong?

pdatoon
12-18-2001, 01:49 PM
Anyone? maybe i am not clear?

black
12-19-2001, 08:28 AM
I Fixed it with out a problem and i tested it on my forums so it should work the fix is attached

*EDITED* THE ATTACHMENT LOOKS SLOPPY SO I'LL PASTED THE CODE HERE



Ok,

in printthread.php or your copy ON line 4 (at the top)

find
--------------------
$templatesused = "postbit_signature,printthreadbit,printthread";


Replace with
----------------------------------------------------
$templatesused = "postbit_signature,printthreadbit,printthread_avant go";






still in printthread.php or your copy ON line 90 (at the bottom)

find
------------------------------------
eval("dooutput(\"".gettemplate("printthread")."\");");



Replace with
------------------------------------------------
eval("dooutput(\"".gettemplate("printthread_avantgo")."\");");


That should do the trick i tested it it worked for me ;) any problems just ask me

pdatoon
12-20-2001, 01:00 PM
you rule! thanx :D