PDA

View Full Version : (Updated) GARS - vBAdvanced Block


gothic
06-28-2010, 06:08 AM
This is simply an updated version of THIS (http://www.thevbgeek.com/showthread.php?t=1439) 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)
if (!$result['image'])
{
$result['image'] = $vbulletin->options['bburl'] . "/geek/gars/images/" . $url_to_default_image;
}
elseif (substr($result['image'], 0, 1) == ".")
{
$result['image'] = $vbulletin->options['bburl'] . substr($result['image'], 1);
}
else
{
$result['image'] = $vbulletin->options['bburl'] . $result['image'];
}

Replace with
if (!$result['image'])
{
$result['image'] = $vbulletin->options[''] . "/geek/gars/images/" . $url_to_default_image; //replaced options 'bburl'
}
elseif (substr($result['image'], 0, 1) == ".")
{
$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)
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_module_shell') . '";');

Replace with
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.