View Full Version : forumdisplay speaical
Mr.samy
10-25-2008, 10:57 PM
Hello ,
I have an product make his Job in all threads in the forum ...
But i want to active it in some forumdisplay only .... but it did not have any option to do that ...
How can I add this to it ?
Lynne
10-25-2008, 11:12 PM
You can either pick a different hook to use, or wrap the code in a condition:
if (THIS_SCRIPT == 'forumdisplay') {
code
}It's better to use a hook that is page specific.
Mr.samy
10-25-2008, 11:24 PM
thanks dear ,
But where i can but the number of forumdisplay ?
Lynne
10-25-2008, 11:39 PM
Ah, I thought you meant in only the forumdisplay page, not in only some forums. Making a condition that only works with some forums is a bit different and it really depends on where the hook is located. Usually you can use $forumid:
if ($forumid =='x'){
code here
}
The forumid is listed after the "f=x" when you hover over the forum link or in the Forum Manager at the top when you edit a forum "Forum: forum name ..... (id: x)"
Mr.samy
10-25-2008, 11:42 PM
excellent ... thanks Lynne
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.