The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hook ... forumbit_display
Hi all, i need your help
I want to know two thinks at forumbit_display Hook 1st ... Can User ADD NEW THREAD to that Forum 2nd ... User ALLREADY Subscribed to that Forum or NOT I try $show['newthreadlink'] and $show['subscribed_to_forum'] but don't work there... |
#2
|
||||
|
||||
If you look at the code, you'll see that the hook forumbit_display is in the function construct_forum_bit. It is called around line 433 of forumdisplay.php. $show['newthreadlink'] is defined on line 236 (I didn't look up the other) which would lead you to think it should be available, *however*, the show variables are not passed to the function construct_forum_bit so they aren't available for use there.
|
#3
|
||||
|
||||
Quote:
one more question, is there any way to have information i need at forumbit_display Hook ? |
#4
|
||||
|
||||
You can pass it in the arrays that are passed to the function, I would think. That's what I have done before.
|
#5
|
||||
|
||||
Quote:
any idea?? |
#6
|
||||
|
||||
I don't know. It's defined right around where newthreadlink is defined, so you should be able to pass it the same way also.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|