Page 1 of 1
Error - template file not found: quiz_body.tpl
Posted: Sun Nov 21, 2004 11:32 pm
by Koba
Thats an error I'm getting heres the full error:
Template->make_filename(): Error - template file not found: quiz_body.tpl
I uploaded ALL The files in the 0.3.0 releast of the quiz mod. Did all the file mods instructed in the readme.. ran the install and got the typical results as posted on phpbb.com and then deleted the install file. then I go to
http://www.root.com/phpBBroot/quiz.php and I get that error... thats about all the information I can think to give.
Posted: Mon Nov 22, 2004 8:05 am
by battye
Did you upload quiz_body.tpl to all the templates being used on your forum?
Posted: Wed Nov 24, 2004 11:50 pm
by Koba
Ok got that to work. I have another issue now. I use a custom template system and I am having some issues with the creation of 'adding.php' when I go to that page I get everything ok minus a grey box that spans the main table on the page on the left hand side. I can clearly see an option to add in the title of the quiz and hit submit... but everything in between is missing.
Posted: Thu Nov 25, 2004 12:39 am
by Koba
Ok I messed around with it.. I found the line of code giving the trouble..
I replaced...
$template->pparse("body");
With....
include ('addquiz_body.tpl');
Naturally I dont think that this is the best way to go about it... will it still work ok like this?
Posted: Thu Nov 25, 2004 12:47 am
by Koba
Actually no that sucks... I appear to have some sort of error calling the template file into the body.
is..
$template->set_filenames(array("body" => "addquiz_body.tpl"));
Ok?
Posted: Thu Nov 25, 2004 8:53 am
by battye
Hmm, what version of PHP do you use? And can I see your site so I can see first hand what is going wrong? Thanks

Posted: Sat Nov 27, 2004 2:39 am
by Koba
I hope the content of my site doesnt change your mind
http://www.sovietrevolution.net/forums/adding.php
I got rid of the big white box to the left by removing the pointer to the page tail.
Posted: Sat Nov 27, 2004 2:41 am
by battye
Do you use PHP 4.x ?
Posted: Sat Nov 27, 2004 6:05 pm
by Koba
Yes I use PHP 4 does that make a big difference?
Posted: Sun Nov 28, 2004 2:00 am
by battye
I have tested it out with PHP 4 just then, it doesn't work for me either

I get the same type layout as you.. I will have to look into it, I'll tell you how it turns out
