vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2007, 04:41 AM
dismas dismas is offline
Senior Member
 
Join Date: Jul 2007
Location: Vermont
Posts: 247
Default Banner module above all others

I'd like to have a module spread across all three columns (or maybe just two...) above all the other modules. It would basically just be a bunch of text explaining stuff about the club that the site is for. Is this possible? If so, how would I set that up?

I'd also like this module to only be seen by unregistered users and registered members who aren't in the club members usergroup.
Reply With Quote
  #2  
Old 11-14-2007, 09:12 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Banner module above all others

The best way to do that is probably going to be to edit your 'Location List' setting through the Admin CP to add a new location, and then edit your 'adv_portal' template (as instructed in the description for that setting) to add the location at the top above the rest of your modules.
Reply With Quote
  #3  
Old 11-14-2007, 04:13 PM
trboxman trboxman is offline
Junior Member
 
Join Date: Nov 2007
Posts: 3
Default Re: Banner module above all others

How about an example of the code required to make this happen? This is a fairly common request and I've yet to see a "how-to". Unfortunately not everyone trying to achieve this is an html or css or php coder.
Reply With Quote
  #4  
Old 11-14-2007, 04:54 PM
dismas dismas is offline
Senior Member
 
Join Date: Jul 2007
Location: Vermont
Posts: 247
Default Re: Banner module above all others

Brian, thanks for the help! I got it workin'!!

Quote:
Originally Posted by trboxman View Post
How about an example of the code required to make this happen? This is a fairly common request and I've yet to see a "how-to". Unfortunately not everyone trying to achieve this is an html or css or php coder.
Maybe later I'll write up something more pretty but here is what I did:

Follow Brian's directions about adding the location. Go to AdminCP > vBa CMPS > Default Settings > Main Options > Location List

Since I wanted mine across/above all three columns, I called the VarName "top" and the title "Span Top"

Then, go to your adv_portal template for the style that you want to edit. The easiest way to do this is to go to AdminCP > Styles & Templates > Search in Templates and search for "adv_portal" by title only. It will be the first template on the resulting list. Edit the template.

Find:
Code:
<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<if condition="$show['left_column']">
			<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
				$home[leftblocks]
			</td>
		</if>
		<if condition="$show['center_column']">
			<td valign="top">
				$home[centerblocks]
			</td>
		</if>
		<if condition="$show['right_column']">
			<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
				$home[rightblocks]
			</td>
		</if>
	</tr>
</table>
Add above all that:
Code:
<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<if condition="$show['top_column']">
			<td valign="top">
				$home[topblocks]
			</td>
		</if>
	</tr>
</table>
Save and Reload the template.

Then go create your module. For me, it was a simple text module. So here's that process:

Go to AdminCP > vBa CMPS > Add Module > BB Code Module

Enter a title for the module. Add your text. Save. All the other settings should be fine to just create a simple text box.

This will give you a very simple text box at the top. In my case, I wanted text explaining what our club was about. Since club members don't need to see this info again and again everytime they come to the site, I unclicked the club members user group so that they wouldn't see the module when they're logged in. But all that's up to you.
Reply With Quote
  #5  
Old 11-14-2007, 04:57 PM
trboxman trboxman is offline
Junior Member
 
Join Date: Nov 2007
Posts: 3
Default Re: Banner module above all others

Thank you very much!
Reply With Quote
  #6  
Old 11-14-2007, 05:22 PM
dismas dismas is offline
Senior Member
 
Join Date: Jul 2007
Location: Vermont
Posts: 247
Default Re: Banner module above all others

No problem.

I don't know that much HTML at all, so if someone finds a way to improve what I've done, please, have at it. I just basically looked at the template and felt my way around in the dark for a few minutes.
Reply With Quote
  #7  
Old 01-06-2008, 01:20 PM
Brandje Brandje is offline
Junior Member
 
Join Date: Dec 2007
Posts: 6
Default Re: Banner module above all others

Thanx a bunch I was looking for this, I just cant seem to get it to work on just my two right collums, any ideas?
Reply With Quote
  #8  
Old 01-27-2009, 06:11 AM
albino albino is offline
Junior Member
 
Join Date: Nov 2006
Posts: 13
Default

Quote:
Originally Posted by dismas View Post
Brian, thanks for the help! I got it workin'!!



Maybe later I'll write up something more pretty but here is what I did:

Follow Brian's directions about adding the location. Go to AdminCP > vBa CMPS > Default Settings > Main Options > Location List

Since I wanted mine across/above all three columns, I called the VarName "top" and the title "Span Top"

Then, go to your adv_portal template for the style that you want to edit. The easiest way to do this is to go to AdminCP > Styles & Templates > Search in Templates and search for "adv_portal" by title only. It will be the first template on the resulting list. Edit the template.

Find:
Code:
<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<if condition="$show['left_column']">
			<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
				$home[leftblocks]
			</td>
		</if>
		<if condition="$show['center_column']">
			<td valign="top">
				$home[centerblocks]
			</td>
		</if>
		<if condition="$show['right_column']">
			<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
				$home[rightblocks]
			</td>
		</if>
	</tr>
</table>
Add above all that:
Code:
<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<if condition="$show['top_column']">
			<td valign="top">
				$home[topblocks]
			</td>
		</if>
	</tr>
</table>
Save and Reload the template.

Then go create your module. For me, it was a simple text module. So here's that process:

Go to AdminCP > vBa CMPS > Add Module > BB Code Module

Enter a title for the module. Add your text. Save. All the other settings should be fine to just create a simple text box.

This will give you a very simple text box at the top. In my case, I wanted text explaining what our club was about. Since club members don't need to see this info again and again everytime they come to the site, I unclicked the club members user group so that they wouldn't see the module when they're logged in. But all that's up to you.
Hi guys,

If possible I need your advice again.

I am looking to achieve something like my attachment.

The top Block is all fixed as per your suggestion.

Here is my adv_portal template


Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml">
<head>
<if condition="$pages['name'] == 'home'">
	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="0" />
</if>

<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>

$headinclude

</head>
<body>

$header

$navbar


<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<if condition="$show['top_column']">
			<td valign="top">
				$home[topblocks]
			</td>
		</if>
	</tr>
</table>


<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
 <tr valign="top">

   <td colspan="2" style="padding-right: $vba_style[portal_colspacing]px" width="16%" height="100%">
      $home[leftblocks]
   </td>

  <td align="left" colspan="5" style="padding-right:2px" width="84%" height="100%">
$cybchatbox
    $home[toprightblocks]


<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
			
	<tr valign="top">
		<if condition="$show['center_column']">
			<td width="95%" valign="top">
				$home[centerblocks]
$cybtopstats
			</td>
		</if>
	<if condition="$show['right_column']">
			<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
				$home[rightblocks]
			</td>
		</if>

	</tr>

</table>
</td>
</tr>
</table>

$footer

</body>
</html>
As you may see I used some "dirty" coding (in red) to achieve my layuot, such as inserting tables inside a <td>.

For the moment I left out anything from bottomright position and I've also removed the code from the template. If you can figure how to insert that position that would be better.

Here is the link www.metroster.com

It looks OK in IE, Chrome and Opera, but in FF it stretches beyond the right side of the site.

I appreciate if someone can help me out with correct code in order to achieve something like that or similar results.

Thanks
Attached Images
File Type: jpg tables.JPG (15.2 KB, 114 views)
Reply With Quote
  #9  
Old 05-13-2009, 01:06 PM
CrashPush's Avatar
CrashPush CrashPush is offline
Transit Fan
 
Join Date: Feb 2007
Location: Brooklyn, NY USA
Posts: 11
Default

Great thread! Just the information I was looking for.
__________________
Reply With Quote
  #10  
Old 12-27-2009, 01:12 PM
nikos_b nikos_b is offline
Junior Member
 
Join Date: Dec 2008
Posts: 18
Default

Thank you very much!

Works fine with bottomright column

see : Greek community forum

Last edited by nikos_b; 12-28-2009 at 08:15 AM.
Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Banner outside module box fxreview Troubleshooting & Problems 2 04-19-2007 12:48 PM
News module w/ banner header sszhou "How Do I..." Questions 1 10-31-2005 06:43 AM
How to Create a New Module with the Following Burst Media Ad Banner Code bchow Add-On Modules & Modifications 4 01-04-2005 11:48 PM
REQ. Module with random banner TCB Add-On Modules & Modifications 1 12-09-2004 12:27 AM
Banner Ads mofohead Troubleshooting / "How do I..." Questions 5 09-14-2004 05:52 PM


All times are GMT -4. The time now is 02:29 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.