The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Add-ons (http://www.thevbgeek.com/forumdisplay.php?f=16)
-   -   (Updated) GARS - vBAdvanced Block (http://www.thevbgeek.com/showthread.php?t=5674)

gothic 06-28-2010 06:08 AM

(Updated) GARS - vBAdvanced Block
 
1 Attachment(s)
This is simply an updated version of THIS module for vBAdvanced.
This has been installed and tested with GARS 2.1.9 / vBulletin 3.8.5 and vBAdvanced 3.2.2
All I have altered in the 'gars.php' file are the following:

Search for (line 66)
PHP Code:

       if (!$result['image'])
        {
            
$result['image'] = $vbulletin->options['bburl'] . "/geek/gars/images/" $url_to_default_image
        }
        elseif (
substr($result['image'], 01) == ".")
        {
            
$result['image'] = $vbulletin->options['bburl'] . substr($result['image'], 1);
        }
        else
        {
            
$result['image'] = $vbulletin->options['bburl'] . $result['image'];
        } 

Replace with
PHP Code:

       if (!$result['image'])
        {
            
$result['image'] = $vbulletin->options[''] . "/geek/gars/images/" $url_to_default_image//replaced options 'bburl'
        
}
        elseif (
substr($result['image'], 01) == ".")
        {
            
$result['image'] = $vbulletin->options[''] . substr($result['image'], 1); //replaced options 'bburl'
        
}
        else
        {
            
$result['image'] = $vbulletin->options[''] . $result['image']; //replaced options 'bburl'
        


Search for (line 105)
PHP Code:

                eval('$home[$mods[\'modid\']][\'content\'] .= "' fetch_template('adv_portal_module_shell') . '";'); 

Replace with
PHP Code:

                eval('$home[$mods[\'modid\']][\'content\'] .= "' fetch_template('adv_portal_module_wrapper') . '";'); 

I will try to offer support, but I only manage to get in here a couple of times a week, so you may have to be patient.


All times are GMT. The time now is 09:55 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.

Release powered by GARS 2.1.9 ©2005-2006