The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
You might want to read the VB Manual or ask for someone to create the plugin for you at this point. We have basically written everything except the plugin(s) for auto template edits
|
#12
|
|||
|
|||
Thanks for the response.
Just to make sure we're on the same page: The original code I originally supplied is already an existing plugin that automatically inserts itself into every page/template on the site. So, is merely adding the usergroup restriction reversing the plugins existing ability of being inserted into every page? Thank you! |
#13
|
||||
|
||||
Quote:
|
#14
|
|||
|
|||
Quote:
This is the specific code with conditional included I'm talking about: HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="blockscript" active="1"> <title>BlockScript vBulletin Integration</title> <description>BlockScript vBulletin Integration</description> <version>1.0</version> <url>http://www.blockscript.com/</url> <versioncheckurl /> <dependencies /> <codes /> <templates /> <plugins> <plugin active="1" executionorder="1"> <title>BlockScript vBulletin Integration</title> <hookname>init_startup</hookname> <phpcode><![CDATA[if (is_member_of($vbulletin->userinfo, array(1,2,3,4,8,17,19,20,26,15,22,16,14,18,21))) { if (file_exists(CWD.'/blockscript/detector.php')) { include_once(CWD.'/blockscript/detector.php'); } elseif (file_exists(CWD.'/../blockscript/detector.php')) { include_once(CWD.'/../blockscript/detector.php'); } else { include_once(CWD.'/../../blockscript/detector.php'); } }]]></phpcode> </plugin> </plugins> <phrases /> <options /> <helptopics /> <cronentries /> <faqentries /> </product> |
#15
|
||||
|
||||
Change the hook location to global_start as suggested by Dragonsys because $vbulletin->userinfo is not defined at init_startup.
|
#16
|
||||
|
||||
But beware: global_start is not being executed in the CMS.
|
#17
|
|||
|
|||
Ah, that worked! When I had did that the first time we were talking about template edits so I didn't realize that was going to work. Thanks again guys!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|