TV Forum - Displaying text/images determined by forum number

Anonymous

Hi. I'm not a regular on here but decided to ask on this forum rather than on TVF, since it's a phpBB issue. On TVF, Asa has included descriptions above the different forums.

Now, on phpBB, it's not possible to include php coding on the .tpl files and I have no idea when it comes to the .php files themselves - as to how I'd go about linking what's in the php files with what's in the templates.

Basically, could anyone tell me how I could achieve this by modifying viewforum.php?....

Code: Select all


<?php 

if ($f=="1") {
echo "Example Description 1";
}

elseif ($f=="2") {
echo "Example Description 2";
}

else {
echo "Error";
}

?>
so that it will display a different message depending on the URL of the particular forum within my message board.

Hope this makes sense :D

Thanks
Anonymous

Thanks. Found how to do that now and it makes it so much easier being able to include php in the template files!
Please Respond