View Full Version : Hook Locations Confusion
The-Ensemble
01-19-2007, 06:34 PM
Ok, I made a php script that will run a date I've chosen and I want it to show up in one forum in forum_display template so it will show under the navigation/breadcrumb thing, which hook do I choose?
I have the coding done to make it show in one forum only
<if condition="$forumid == X">Just looking for the hook location.
Thanks
calorie
01-19-2007, 06:41 PM
Try forumdisplay_complete as the hook, using something like this in the plugin:
$my_variable = '';
if ($foruminfo['forumid'] == X) // X a number
{
$my_variable = 'whatever';
}
Then use $my_variable in the vB FORUMDISPLAY template.
The-Ensemble
01-19-2007, 07:00 PM
Thanks for your help and such a fast reply.;)
I inserted this:
$pwa = '';
if ($foruminfo['forumid'] == 32)
{
$pwa = 'print(date("l dS of F ").(date( Y )+194));';
}
but it doesnt seem to work what went wrong?
paul41598
01-19-2007, 07:16 PM
try this:
$pwa = '';
if ($foruminfo['forumid'] == 4)
{
$pwa = date("l dS of F ").(date( Y )+194);
}
The-Ensemble
01-19-2007, 07:20 PM
Perfect. Cheers.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.