View Full Version : How do i center adsense in my footer?
<a href="http://www.whoyoureppin.com/forum/index.php" target="_blank">http://www.whoyoureppin.com/forum/index.php</a>
check it out...how do i center the adsense in my footer template?
Gio~Logist
07-01-2007, 03:33 PM
Paste the adsense code on the top of the template if you'd like.
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
<br />
$vbphrase[all_times_are_gmt_x_time_now_is_y]<br />
<br />
Design by <a href="http://www.vbmode.com/"><b>VBMode.com</b></a><br />
$vbphrase[powered_by_vbulletin]<br />
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$vboptions[copyrighttext] </div>
</div>
<br />
$spacer_close
<!-- /content area table -->
<form action="$vboptions[forumhome].php" method="get">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot"><select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot"><select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits</optgroup>
</select>
</td>
</if>
<script type="text/javascript"><!--
google_ad_client = "pub-9021484856030387";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-06-24: online poker, online casino poker, online casino gambling, online casino bonus, video slot machine
google_ad_channel = "9952263802+3639495088+5718311362+6051134613+740904 8393";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
</br>
<script type="text/javascript"><!--
google_ad_client = "pub-9021484856030387";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-06-24: online poker, online casino poker, online casino gambling, online casino bonus, video slot machine
google_ad_channel = "9952263802+3639495088+5718311362+6051134613+740904 8393";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<td class="tfoot" align="$stylevar[right]" width="100%"><div class="smallfont"> <strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a> </strong> </div></td>
</tr>
</table>
</form>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
?????????
deezelpope
07-03-2007, 04:33 PM
<center> before your Google codes...</center> after...
Paul M
07-03-2007, 08:31 PM
Just enclose the script in a centered Div.
<div align="center">
---- code -----
</div>
Dismounted
07-04-2007, 05:00 AM
Just enclose the script in a centered Div.
<div align="center">
---- code -----
</div>
And for the W3C preferred way ;)
<div style="text-align: center;">
CODE
</div>
i used
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
<br />
$vbphrase[all_times_are_gmt_x_time_now_is_y]<br />
<br />
Design by <a href="http://www.vbmode.com/"><b>VBMode.com</b></a><br />
$vbphrase[powered_by_vbulletin]<br />
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$vboptions[copyrighttext] </div>
</div>
<br />
$spacer_close
<!-- /content area table -->
<form action="$vboptions[forumhome].php" method="get">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot"><select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot"><select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits</optgroup>
</select>
</td>
</if>
<div style="text-align: center;">
<script type="text/javascript"><!--
google_ad_client = "pub-9021484856030387";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-06-24: online poker, online casino poker, online casino gambling, online casino bonus, video slot machine
google_ad_channel = "9952263802+3639495088+5718311362+6051134613+740904 8393";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
</br>
<script type="text/javascript"><!--
google_ad_client = "pub-9021484856030387";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-06-24: online poker, online casino poker, online casino gambling, online casino bonus, video slot machine
google_ad_channel = "9952263802+3639495088+5718311362+6051134613+740904 8393";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<td class="tfoot" align="$stylevar[right]" width="100%"><div class="smallfont"> <strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a> </strong> </div></td>
</tr>
</table>
</form>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
and the other and niether have worked?
Dave Hawley
07-04-2007, 08:34 AM
All suggestions to-date work.
thenewuser
07-04-2007, 10:53 AM
it's best to at least learn html when owning a site.
A very easy way to do this is, get a copy of dreamweaver or frontpage and make what you want in the "design" section, then learn what does what in the "code" section.
Shouldn't take you more than a week to get you on your way to making some nice pages.
To answer your question, download and install "Openads."
then place the invocation code in:
<td align="$stylevar[right]" valign="center" height="62">
PLACE CODE HERE
</td>
:)
Dave Hawley
07-04-2007, 11:37 PM
well they didnt.Looks centered to me.
David Lama
07-06-2007, 02:44 AM
lol all you need is
<center>
code here
</center>
Dismounted
07-06-2007, 04:41 AM
You shouldn't use <center>, even though "it gets the job done". It is deprecated and not in the specification used in the vBulletin document header (XHTML Transitional 1.0).
David Lama
07-08-2007, 03:31 AM
why is it deprecated?
Dismounted
07-08-2007, 05:13 AM
Because it is. Ask W3C....
Censtudios
07-14-2007, 05:00 PM
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
<br />
$vbphrase[all_times_are_gmt_x_time_now_is_y]<br />
<br />
Design by <a href="http://www.vbmode.com/"><b>VBMode.com</b></a><br />
$vbphrase[powered_by_vbulletin]<br />
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$vboptions[copyrighttext] </div>
</div>
<br />
$spacer_close
<!-- /content area table -->
<form action="$vboptions[forumhome].php" method="get">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot"><select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot"><select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits</optgroup>
</select>
</td>
</if>
<script type="text/javascript"><!--
google_ad_client = "pub-9021484856030387";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-06-24: online poker, online casino poker, online casino gambling, online casino bonus, video slot machine
google_ad_channel = "9952263802+3639495088+5718311362+6051134613+740904 8393";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
</br>
<script type="text/javascript"><!--
google_ad_client = "pub-9021484856030387";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-06-24: online poker, online casino poker, online casino gambling, online casino bonus, video slot machine
google_ad_channel = "9952263802+3639495088+5718311362+6051134613+740904 8393";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<td class="tfoot" align="$stylevar[right]" width="100%"><div class="smallfont"> <strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a> </strong> </div></td>
</tr>
</table>
</form>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
?????????
Why so much coding? just add the <center> code in front of ur adsense and </center> behind it......
Dismounted
07-15-2007, 05:24 AM
Why so much coding? just add the <center> code in front of ur adsense and </center> behind it......
Could you please stop with the center tags? They are deprecated and SHOULD NOT BE USED.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.