View Single Post
  #6  
Old 08-12-2008, 02:21 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

The latest GARS package has been updated with the fix, so you can grab the latest GARS package again and reimport the product-gars.xml file via the ACP (do not uninstall, do allow overwrite) but remember that your custom templates and phrases for GARS add-ons (i.e. the link directory and/or the release add-on) will get wiped out. After reimporting the XML file, you will need to use the GARS importer to reimport the add-ons (making sure you choose the option to import phrases and templates only).

Alternatively, you can make the required change (without reimporting the product-gars.xml file) by going to the ACP -> Plugins & Products -> Plugin Manager -> edit the 'GARS - Admin Index Navigation' plugin as follows and then save the changes:

Product: GARS
Hook Location: can_administer
Title: GARS - Admin Can Administer
Execution Order: 5
Plugin PHP Code:
Code:
if (in_array('canadmingars', $do))
{
	$garsadminperms = $vbulletin->db->query_first("SELECT garsadminperms
		FROM " . TABLE_PREFIX . "administrator
		WHERE userid = " . intval($vbulletin->userinfo['userid']) . "
	");
	if ($garsadminperms['garsadminperms'])
	{
		$return_value = true;
	}
}
Plugin is Active: Yes
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote