Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Go Back AdminFusion » Front Desk » Admin Resources » Tutorials » Using Custom Module Positions with vBAdvanced
Comment
 
LinkBack
<!-- google_ad_section_start -->Using Custom Module Positions with vBAdvanced<!-- google_ad_section_end -->
Using Custom Module Positions with vBAdvanced
For a more creative portal page
Published by bdude
09-11-2007
<!-- google_ad_section_start -->Using Custom Module Positions with vBAdvanced<!-- google_ad_section_end -->

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:
HTML 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!
Tutorial Tools

  #1  
By MissMoke on 09-11-2007, 01:38 PM
This is great! I need to play with mine but I am scurred of code.

Where might one find this adv_portal template?
Reply With Quote
  #2  
By Caddyman on 09-11-2007, 01:49 PM
First one under "vbadvanced CMPS templates"
Reply With Quote
  #3  
By Taragon on 09-29-2008, 02:23 AM
I could be wrong here, but isn't this example missing a closing td tag?
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]
		</td>
	</tr>
</table>
Great article btw.!
Reply With Quote
  #4  
By MrKielington on 09-29-2008, 04:37 PM
Awesome article! Very informative thank you so much!
Reply With Quote
Comment


Currently Active Users Viewing This Tutorial: 1 (0 members and 1 guests)
 
Tutorial Tools
Display Modes

 
Posting Rules

Similar Threads
Tutorial Tutorial Starter Category Comments Last Post
Custom Homepage for a Forum? transburgh Planning and Brainstorming 2 01-03-2007 12:43 AM

AdminFusion

All times are GMT +1. The time now is 02:03 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Tutorial powered by GARS 2.1.9 ©2005-2006

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77