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 fix the width of my adsense ad post after the 1st post (https://vborg.vbsupport.ru/showthread.php?t=151692)

David Lama 07-08-2007 02:54 PM

how do I fix the width of my adsense ad post after the 1st post
 
i want the post with my adsense code to match the other posts. same size. how do i do that

my site

^check it there. post after the first post

Brandon Sheley 07-08-2007 02:58 PM

did you add the code for "ads randomly in post" hack ?

David Lama 07-08-2007 03:01 PM

no. i only added this

https://vborg.vbsupport.ru/showthrea...t=adsense+post

Brandon Sheley 07-08-2007 03:04 PM

ah, well I would ask in that thread then ;)
That will give you the quickest results.

cheers

David Lama 07-08-2007 05:42 PM

someone already asked the same thing in that thread but never got a response :(

i asked it too. doesnt seem like that mod is active these days though :(. hopefully someone responds there or here. I am patient. just felt like updating and upping one last time to see if someone can save me :)

snakes1100 07-08-2007 06:48 PM

Here, spiffed it up a bit, added the icon and border to more resemble a real post.

The added br tag will give all the posts more spacing between each post, but it will also break the ad off from the post.

Code:

<br />
<!-- START ADSENSE REVENUE -->
<if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrlastpostid']) AND (!in_array($forum[forumid], array(2,6,7)))">
    <table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
    <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"  width="175">
           
            <div id="postmenu_$post[postid]">
                <if condition="$show['profile']">
                <a class="bigusername" href="#">Focused.ORG</a>
                <else />
                Focused.ORG
                </if>
                <br><br><script type="text/javascript"><!--
google_ad_client = "YOUR ADSENSE ID HERE!";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQ8OCIlAIaCP1TkEVpn_IYKITHrYMB";
google_ad_channel = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
            </div>
               
    </td>
    <if condition="$show['moderated']">
    <td class="alt2" id="">
    <else />
    <td class="alt1" id="">
    </if>
   
        <if condition="$show['messageicon'] OR $post['title']">
            <div class="smallfont">
<img class="inlineimg" src="images/icons/icon1.gif" alt="GoogleAds" border="0" />
                <if condition="$post['title']"><strong>Sponsored links</strong></if>
            </div>
            <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
        </if>
       
        <!-- message -->
        <div id="post_message_$post[postid]">
<if condition="$show['spacer']">
</if>
    <div align="left">
<script type="text/javascript"><!--
google_ad_client = "YOUR ADSENSE ID GOES HERE!";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "D0DFE4";
google_color_bg = "E2ECEF";
google_color_link = "85868F";
google_color_text = "85868F";
google_color_url = "85868F";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

    </div>

<if condition="$show['spacer']">

</if> 

</div>
        <!-- / message -->
   
    </td>
</tr>
</table><br>
<!-- / post $post[postid] popup menu -->
    </div>
</if>


David Lama 07-08-2007 07:00 PM

all you added to the code was the <br />?

cause that didnt help all it did was make a space in between. like you said. but it didnt make it look like a regular post. just made it stand out even more =/ thanks for trying to help though. but not what i was looking for =/

snakes1100 07-08-2007 07:05 PM

1 Attachment(s)
It works fine on my site and does EXACTLY as i stated in my post.

David Lama 07-08-2007 07:15 PM

wow. so what am i doing wrong? i didnt do anything wrong im pretty sure. did you add anything other than the <br /> tag?

oh seems like you did. nevermind. let me see if i can get this to work. thanks man!

yea thanks a ton man. that did the job. i took the <br /> at the top and bottom off though to eliminate the extra space. but i like how its looking now :), THANKS!!!!!!!!!

snakes1100 07-08-2007 08:04 PM

Your Welcome...

I didn't add the break at the bottom, only the one at the top.


All times are GMT. The time now is 04:32 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.01455 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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