TV Forum - Displaying text/images determined by forum number
Posted: Fri 21 Jan, 2005 22.55
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?....
so that it will display a different message depending on the URL of the particular forum within my message board.
Hope this makes sense
Thanks
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";
}
?>
Hope this makes sense

Thanks