mikel
07-13-2007, 08:39 PM
I want to have the CMPS vBGallery module title hyper-linked to the gallery home page. Block available here :
V3.0RC1 CMPS block (http://www.photopost.com/forum/showthread.php?t=132046)
V2.2 CMPS block (http://www.photopost.com/forum/showthread.php?t=130178)
There's 2 ways.
1) the clean way - mod to vbgallery.php before the last code line of the file:
// add gallery link to block title
$mods['link'] = $vba_options['gallery_url']; //<----new line
eval('$home[$mods[\'modid\']][\'content\'] = "'
. fetch_template('adv_portal_vbgallery') . '";');
?>
This way the site admin doesn't have to fiddle with any settings and it's not dependent on knowing the gallery install directory.
2) the quick easy way, no code changes.
VB ctrl panel -> vBa CMPS -> Edit Modules -> Image Gallery (Edit)
Under the Module Wrapper Template Options, set the Module Link file to :
{$vbulletin->options[homeurl]}/gallery
assuming your gallery is installed in the
/gallery
directory.
It's working here:
www.southbaydanceclub.org
Click on Photo Gallery title of the CMPS image block and it'll take you to the gallery home page.
Running on
VB 3.6.7 PL1
VBG 2.2/2.3
CMPS image block 3.0RC1
Method #2 should work on earlier versions of vbG and the cmps block.
Mike
V3.0RC1 CMPS block (http://www.photopost.com/forum/showthread.php?t=132046)
V2.2 CMPS block (http://www.photopost.com/forum/showthread.php?t=130178)
There's 2 ways.
1) the clean way - mod to vbgallery.php before the last code line of the file:
// add gallery link to block title
$mods['link'] = $vba_options['gallery_url']; //<----new line
eval('$home[$mods[\'modid\']][\'content\'] = "'
. fetch_template('adv_portal_vbgallery') . '";');
?>
This way the site admin doesn't have to fiddle with any settings and it's not dependent on knowing the gallery install directory.
2) the quick easy way, no code changes.
VB ctrl panel -> vBa CMPS -> Edit Modules -> Image Gallery (Edit)
Under the Module Wrapper Template Options, set the Module Link file to :
{$vbulletin->options[homeurl]}/gallery
assuming your gallery is installed in the
/gallery
directory.
It's working here:
www.southbaydanceclub.org
Click on Photo Gallery title of the CMPS image block and it'll take you to the gallery home page.
Running on
VB 3.6.7 PL1
VBG 2.2/2.3
CMPS image block 3.0RC1
Method #2 should work on earlier versions of vbG and the cmps block.
Mike