View Full Version : add vbportal left menu`s to vba links homepage
NuFFy
04-18-2005, 10:08 AM
how can i make the links index page show vbportal`s default side menus.
i have both vbalinks and vbagallery installed.
the gallery shows the left menu blocks but the links does not. just shows a blanck gap where the menu`s should be.
any help is much welcome.
Brian
04-18-2005, 11:30 AM
I'm really not sure how easy it is to integrate vBportal with vBadvanced products.
NuFFy
04-18-2005, 12:13 PM
well the gallery mod works fine...
anyhow i added $forumsideblocks to functions_links.php
under
function construct_adv_navbar($navbits, $index = 'false')
{
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;
so it looks like
function construct_adv_navbar($navbits, $index = 'false')
{
global $forumsideblocks,$vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;
this displays the left side blocks but theres no space between the blocks and the start of the links page.
any idea how to add a space?
Brian
04-18-2005, 12:17 PM
No clue... You would need to ask at vbportal.com.
NuFFy
04-18-2005, 03:04 PM
ok ignore my post above.
iv figured it out and will share incase anyone searches for the problem i had.
open template ADV_LINKS
look for this
function rate(linkid)
{
window.open("reply.php?do=ratelink&linkid="+linkid, "rate", "toolbar=no, scrollbars=no, resizable=yes, width=320, height=140");
}
-->
</script>
$header
$navbar
$linksnav
replace $navbar with this
<if condition="$show['leftcolumn']">
$spacer_close
<if condition="$show['old_explorer']">
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center">
<tr>
<td class="page" valign="top" style="padding:0px 0px 0px $stylevar[spacersize]px" width="160">$forumsideblocks</td>
<td class="page" valign="top" style="padding:0px">
<else />
<div style="width:$stylevar[outerdivwidth]">
<div class="page"style="width:$stylevar[outerdivwidth]">
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]">
<tr>
<td valign="top">
<div align="center" style="width:160px; text-align:$stylevar[left]; padding:0px 0px 0px $stylevar[spacersize]px">$forumsideblocks</div>
</td>
<td valign="top" width="100%">
<div style="padding:0px">
</if>
$spacer_open
</if>
so it looks like this
function rate(linkid)
{
window.open("reply.php?do=ratelink&linkid="+linkid, "rate", "toolbar=no, scrollbars=no, resizable=yes, width=320, height=140");
}
-->
</script>
$header
<if condition="$show['leftcolumn']">
$spacer_close
<if condition="$show['old_explorer']">
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center">
<tr>
<td class="page" valign="top" style="padding:0px 0px 0px $stylevar[spacersize]px" width="160">$forumsideblocks</td>
<td class="page" valign="top" style="padding:0px">
<else />
<div style="width:$stylevar[outerdivwidth]">
<div class="page"style="width:$stylevar[outerdivwidth]">
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]">
<tr>
<td valign="top">
<div align="center" style="width:160px; text-align:$stylevar[left]; padding:0px 0px 0px $stylevar[spacersize]px">$forumsideblocks</div>
</td>
<td valign="top" width="100%">
<div style="padding:0px">
</if>
$spacer_open
</if>
$linksnav
crap fix and needs to be done on other templates where left colum is blank ,but some people may need the $navbar. any suggestions please share
brian it must be a vbadvanced links problem as messing with templates kinda sorts it
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.