The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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 Code:
<if condition="$forumid == X"> Thanks |
|
#2
|
|||
|
|||
|
Try forumdisplay_complete as the hook, using something like this in the plugin:
Code:
$my_variable = '';
if ($foruminfo['forumid'] == X) // X a number
{
$my_variable = 'whatever';
}
|
|
#3
|
||||
|
||||
|
Thanks for your help and such a fast reply.
![]() I inserted this: Code:
$pwa = '';
if ($foruminfo['forumid'] == 32)
{
$pwa = 'print(date("l dS of F ").(date( Y )+194));';
}
|
|
#4
|
||||
|
||||
|
try this:
Code:
$pwa = '';
if ($foruminfo['forumid'] == 4)
{
$pwa = date("l dS of F ").(date( Y )+194);
}
|
|
#5
|
||||
|
||||
|
Perfect. Cheers.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|