Mark Hewitt
01-16-2011, 10:10 AM
In vb3 I have some code in forumdisplay PHP within the while loop that displays threads
if($thread[forumid] = 98 ) {
$forumname = "[WRC]";
}
Then in the template just has $forumname in the appropriate place and that's all fine.
Of course in vb4 it's all different and I've followed about 5 different guides as to how to do it, and nothing is producing any results! Mostly because they all refer to custom templates and custom scripts. What I want to do is modify an existing file and output to an existing template.
I've tried the $tempplater->register('forumname',$forumname); , doesn't work when I put {vb:raw forumname} into the template.
Could anyone explain how to do it very simply - I've read the guides, they don't seem to work for me.
Thanks
if($thread[forumid] = 98 ) {
$forumname = "[WRC]";
}
Then in the template just has $forumname in the appropriate place and that's all fine.
Of course in vb4 it's all different and I've followed about 5 different guides as to how to do it, and nothing is producing any results! Mostly because they all refer to custom templates and custom scripts. What I want to do is modify an existing file and output to an existing template.
I've tried the $tempplater->register('forumname',$forumname); , doesn't work when I put {vb:raw forumname} into the template.
Could anyone explain how to do it very simply - I've read the guides, they don't seem to work for me.
Thanks