The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$vbulletin->forum['forumid']
Does not work:
PHP Code:
--------------- Added [DATE]1291304552[/DATE] at [TIME]1291304552[/TIME] --------------- I explained wrong. When user create a thread, calls this function PHP Code:
if the user creates a thread in forum ID=24 is not fulfilled. then I did so: PHP Code:
because, although the user create a thread in the forum ID=24 this is true |
#2
|
||||
|
||||
That variable probably doesn't exist there. What hook location? Go look in the php files and find that hook location. Do you see anywhere around there that the variable $vbulletin->forum is mentioned? You probably just want to use $thread or $threadinfo.
|
#3
|
|||
|
|||
Hey friend, Thank you for response.
In the php file does not mention the $ vbulletin-> forum how do I call or hooked? I am sorry, I'm lost |
#4
|
||||
|
||||
You need to use whatever variable is available there. Look at the code there and see where the forumid is defined and use that. Like I said, probably $thread['forumid'] or $threadinfo['forumid']. Just look in the code and see.
|
#5
|
|||
|
|||
$thread['forumid'] and $threadinfo['forumid'] not work
In the php, forumid is not defined. ¿How do I define? or any other suggestions? Thank you |
#6
|
||||
|
||||
You need to tell us where you are putting the code in your first post then - all of it. Where is the php code going. Where is the template code going. We need more details.
|
#7
|
||||
|
||||
did you put a global in your function ?!... because clearly you are calling that script inside a function...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|