Quote:
Originally Posted by MarkFL
Change it to read:
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>
|
That worked perfect. Thank you thank you thank you!
--------------- Added [DATE]1447265522[/DATE] at [TIME]1447265522[/TIME] ---------------
I just realized today that the code isn't working
It doensn't return any errors but the code isn't executing for any of the usergroups in the array. If anyone has any ideas I'd greatly appreciate it.
Thank you!