The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using a plugin to populate an array?
I just came from vb.com since something I figured would be simple, turned out to be a bit more complicated:
Quote:
Quote:
Edited postbit_legacy and put the following around the report a post link: Code:
<if condition="$show['reportlink']"> <if condition="!in_array($GLOBALS[forumid], $exclude_forum_report)"> <a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if> </if> Made a plugin, triggered on global start, with the following code: Code:
$exclude_forum_report = explode(',',$vbulletin->options['rp_exclude_forum']); Now at this point I'm not sure what I'm doing, or if the plugin code or hook is correct. |
#2
|
|||
|
|||
[minicode]$exclude_forum_report[/minicode] should be [minicode]$GLOBALS[exclude_forum_report][/minicode]
|
#3
|
|||
|
|||
Awesome, thank you!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|