Go Back   vBulletin Setup > Blogs > vBulletin Virgin

Was it silly to spend $200 on a forum script? Let's see.

Using Custom Module Positions with vBAdvanced

Posted 09-10-2007 at 09:12 PM by bdude


Everyone's seen it before, the default layout for vBA - two sidebars and a middle column.

To be different you need to break out and do something different, like on the homepage of my site The Blogging Café using custom module positions.

First off, you need to decide the layout you want, and give each spot a name, like so:



Now you need to go into your admin CP > vBa CMPS > Default Settings> Main Options and add in your custom module positions, remember the varnames!


The next step, is to edit your adv_portal template to include these modules. The standard code for the modules is is $home[varnameblocks], remember to look at the rest of the template for guidance to add the appropriate column padding. Really, you should only need to edit in between $navbar and $footer. Here's what mine looks like:
Code:
<table align="center" cellspacing="0" cellpadding="0" width="100%">
 <tr valign="top">
   <td colspan="2" style="padding-right: $vba_style[portal_colspacing]px" width="70%" height="100%">
      $home[topblocks]
   </td>
  <td rowspan="2" width="">
    $home[rightblocks]
  </td>
  </tr>
<tr valign="top">
 <td style="padding-right: $vba_style[portal_colspacing]px" >
   $home[mainleftblocks]
 </td>
 <td style="padding-right: $vba_style[portal_colspacing]px" >
   $home[mainrightblocks]
</tr>
</table>
So, I hope this helps you on the way to a more creative vBAdvanced Page!

Views 3321 Comments 8
Total Comments 8

Comments

  1. Old Comment
    Brandon Sheley's Avatar
    nice post and nice job setting your vba page up I seen it last time I passed by.
    permalink
    Posted 09-10-2007 at 09:49 PM by Brandon Sheley Brandon Sheley is offline
  2. Old Comment
    Luigi's Avatar
    Bdude, is it possible to make main announcement threads span across the whole main page (left to right). Then underneath them, have the 3 separate column like a mainleft, maincenter, mainright?
    permalink
    Posted 10-27-2007 at 12:29 AM by Luigi Luigi is offline
  3. Old Comment
    bdude's Avatar
    Yeah, it would go something like this
    Code:
    <table>
    <tr><td colspan="3">TOP code</td></tr>
    <tr><td>mainleft</td><td>maincenter</td><td>mainright</td></tr>
    </table>
    
    permalink
    Posted 10-27-2007 at 06:22 PM by bdude bdude is offline
  4. Old Comment
    Brandon Sheley's Avatar
    This post got some nice Page Rank didn't it, it's showing a 3 for me.. I know I've linked to it a few times when people are asking how to customize their vbadvanced pages..
    permalink
    Posted 03-12-2008 at 11:00 PM by Brandon Sheley Brandon Sheley is offline
  5. Old Comment
    Greek76's Avatar
    Hey dude it worked great but I have a small problem. Now my notice manger welcome guest message register links is not working. Instead of forum/register.php it linking it to www.chatny.net/register.php. Is their a fix? I copied your text above and did what did.
    permalink
    Posted 07-27-2008 at 03:55 PM by Greek76 Greek76 is offline
  6. Old Comment
    2dub's Avatar
    I know this is over a year old, but I just found it from one of Brandon's links. Great info.
    permalink
    Posted 10-13-2008 at 12:57 PM by 2dub 2dub is offline
  7. Old Comment
    Brandon Sheley's Avatar
    no problem, it's a great post
    Just wish bdude still had vba setup on his site, not sure why he removed it?
    permalink
    Posted 10-17-2008 at 06:05 AM by Brandon Sheley Brandon Sheley is offline
  8. Old Comment
    Syrus XL Media's Avatar
    Hi Brandon, I got vBadvanced CMPS on my site using custom blocks - slightly different layout to what is posted here, but it shows the general idea of using custom blocks.

    I'm still updating alot of code, mainly moving the default navbar to the custom bar I've coded into the header template.

    Oops.. missed off my website addy lol

    Digital Port UK

    There now you can check it out... Probably change it more once I get everything working properly,
    permalink
    Posted 11-08-2008 at 03:24 PM by Syrus XL Media Syrus XL Media is offline
    Updated 11-08-2008 at 03:38 PM by Syrus XL Media
 

All times are GMT -8. The time now is 08:55 PM.