The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Advertising Banner System

Geek Advertising Banner System GAB is a highly configurable banner management system for vBulletin.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2008, 01:43 AM
TheAllusionist TheAllusionist is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Geek Advertising Banner License Holder 
Default How do I Center and Place on FORUMHOME

There is probably a much better way to do this, what I am trying to do is place GAB banners centered under Navbar (actually under gallery block) on my forum home. I can do this but I can either get it centered in Firefox and not in IE or centered in IE and not Firefox. It would be nice to have it centered in both.

Centered in IE:

<!-- START OF SPONSOR BANNER TABLE -->
<table width="100%" align="center">
<tr>
<td>$GAB_ads[1]</td>
</tr>
</table>
<!-- END OF SPONSOR BANNER TABLE -->


Centered in Firefox:

<!-- START OF GAB BANNER TABLE -->
<center>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<center>
$GAB_ads[1]
</center>
</tr>
</center>
<!-- END OF GAB BANNER TABLE -->

I am wondering of any of you with more knowledge may have a centering syntax that works in both?

I may as well ask another question while I am at it. In Photopost vBgallery the header banner shows on the gallery index page but not in the individual gallery catagory pages, any ideas on that?
Reply With Quote
  #2  
Old 05-27-2008, 12:49 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Untested, but try the following:
Code:
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td align="center">
		$GAB_ads[1]
	</td>
</tr>
</table>
As for vBGallery, not sure as I don't use vBGallery, but it might be scope. If there is a function that creates the individual gallery category pages, try adding the following near the beginning of the function:
Code:
global $GAB_ads;
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 05-27-2008, 12:58 AM
TheAllusionist TheAllusionist is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Geek Advertising Banner License Holder 
Default

Thanks, it appears that the "<td align="center"> is the key in that with some help from someone at vBulletin.org we worked out earlier that:

<div style="text-align: center;">
$GAB_ads[1]
</div>

Does the trick and it is centered in both Firefox and IE, so I imagine yours would work as well.

I will look around for the function, it use to be that there was a "Globals" input box in vBgallery that you entered the tags into, but seems to have disappered once PhotoPost took possesion. I will dig deeper. Thank you for your help on this, I really hate dealing with the multiple browsers and their little quirks!
Reply With Quote
Reply

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
The place of banners ? f4vn Geek Advertising Banner System 1 04-02-2008 05:46 PM
Design Center MuGi GARS Link Directory 0 02-23-2008 07:38 AM
Reptile Forums - Herp Center Rich GARS Link Directory 0 02-17-2008 04:30 PM
Where to place this? Bridges Geek Advertising Banner System 2 02-07-2007 02:42 PM
Is there a place to report bugs? Southpaw Geek Article and Review System 2 04-13-2006 11:28 AM


All times are GMT. The time now is 12:08 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.