vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do i center adsense in my footer? (https://vborg.vbsupport.ru/showthread.php?t=151116)

imk 07-01-2007 03:31 PM

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.

imk 07-01-2007 03:37 PM

HTML Code:

<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+7409048393";
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+7409048393";
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>

?????????

imk 07-03-2007 04:25 PM

?????????

deezelpope 07-03-2007 04:33 PM

<center> before your Google codes...</center> after...

imk 07-03-2007 08:11 PM

doesnt work.

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

Quote:

Originally Posted by Paul M (Post 1282206)
Just enclose the script in a centered Div.

<div align="center">
---- code -----
</div>

And for the W3C preferred way ;)
HTML Code:

<div style="text-align: center;">
CODE
</div>


imk 07-04-2007 07:40 AM

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+74090 48393";
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+74090 48393";
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.

imk 07-04-2007 10:34 AM

well they didnt.

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:

Quote:


<td align="$stylevar[right]" valign="center" height="62">


PLACE CODE HERE


&nbsp;


</td>

:)

Dave Hawley 07-04-2007 11:37 PM

Quote:

Originally Posted by imk (Post 1282548)
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

Quote:

Originally Posted by imk (Post 1280655)
HTML Code:

<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+7409048393";
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+7409048393";
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

Quote:

Originally Posted by Censtudios (Post 1290944)
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.


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01373 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete