Results 1 to 10 of 10

Coding help please

This is a discussion on Coding help please within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Once again I throw myself at the mercy of you guys for some help. On my adsense block I run ...

  1. #1
    Senior Member Array Lee G's Avatar
    Real Name
    Lee
    Join Date
    Sep 2006
    Location
    Costa Blanca
    Posts
    695
    Liked
    43 times
    Blog Entries
    4

    Coding help please

    Once again I throw myself at the mercy of you guys for some help.

    On my adsense block I run two 336 X 280 advert blocks side by side. Because its only members that see them, the problems gone unnoticed by me for rather a long time.

    It looks like every other view the two advert blocks go from being side by side to one on top of the other. If the adverts are run with no box around them, there is no problem. It only occurs once they are in their box.

    This is the code I use

    Code:
     
    <if condition="$bbuserinfo[userid]==0">
    <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr>
    <td class="thead" align="center">Sponsored Links</td>
    </tr>
    <tr>
    <td class="alt1" align="center">
    &nbsp;
    <CENTER>
    <script type="text/javascript"><!--
    google_ad_client = "pub-#############";
    /* 336x280, created 7/14/08 */
    google_ad_slot = "###########";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <script type="text/javascript"><!--
    google_ad_client = "pub-##############";
    /* 336x280, created 7/14/08 */
    google_ad_slot = "############";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    &nbsp;
    </CENTER>
    </td>
    </tr>
    </table><br />
    </if>
    This is now bugging the hell out of me after a couple of hours trying to resolve the problem.

    Run the adverts with no box and they look unsightly and out of character with the style, place them in the box and they become a skyscraper every other view.

    Thanks in advance for any help
    Lee

  2. #2
    Senior Member Array woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    797
    Liked
    6 times
    I take it this is only happens on lower res screens (or when the window is minimised)?

    Personally I would wrap them in a table.

    Code:
    <table border="0" width="685"> 
    <tr> <td width="336"> 
    <!-- Ad code -->
    </td> 
    <td width="13">&nbsp;</td> 
    <td width="336"> 
    <!-- Ad code -->
    </td> </tr> 
    </table>
    2011 Average: 1 post every 5 seconds... 24/7

  3. #3
    Senior Member Array Lee G's Avatar
    Real Name
    Lee
    Join Date
    Sep 2006
    Location
    Costa Blanca
    Posts
    695
    Liked
    43 times
    Blog Entries
    4
    Thanks for that Stewart. It worked an absolute treat.

    For some reason, you got the unwanted skyscraper effect every other screen. It seemed to happen a lot on the forum home page.

    Another member Im in debt to on here for help and advice.

  4. #4
    Senior Member Array Silmarillion's Avatar
    Real Name
    Christian
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    414
    Liked
    1 times
    Hmmm...doesn't work for me!

    PHP Code:
    <if condition="$show['guest']">    
    <
    table border="0" width="685"
    <
    tr> <td width="336"
    <!-- 
    Ad code -->
    <
    script type="text/javascript"><!--
    google_ad_client "pub-XXXXXXXXXX";
    /* 300x250, Erstellt 16.02.08 */
    google_ad_slot "XXXXXXXXX";
    google_ad_width 336;
    google_ad_height 280;
    //-->
    </script>
    </td> 
    <td width="13">&nbsp;</td> 
    <td width="336"> 

    <!-- Ad code -->

    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXX";
    /* 300x250, Erstellt 16.02.08 */
    google_ad_slot = "XXXXXXXXXX";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </td> </tr> 
    </table>
    </if> 
    The Rectangles are still shown under each other. :(

    Any Ideas?
    Forum rund um das Thema Fußball: Fanlager.de
    Forum rund um das Thema Fantasy: Fantasy-Foren.de
    Forum rund um das Thema Alternative Musik: Alternative-Musik-Forum.de

  5. #5
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    Hello Christian ,

    Try changing the following
    HTML Code:
    <if condition="$show['guest']">    
    <table border="0" width="685">
    with
    HTML Code:
    <if condition="$show['guest']">    
    <table border="0" width="690" cellpadding="0" cellspacing="0">
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  6. #6
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    I noticed you have errors in code also try using the following

    HTML Code:
    <if condition="$show['guest']">    
    <table border="0" width="690" cellpadding="0" cellspacing="0">  
    	<tr>	
    		<td width="336"> 
    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXX";
    /* 300x250, Erstellt 16.02.08 */
    google_ad_slot = "XXXXXXXXX";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    		</td> 
    		<td width="13">&nbsp;</td> 
    		<td width="336"> 
    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXX";
    /* 300x250, Erstellt 16.02.08 */
    google_ad_slot = "XXXXXXXXXX";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    		</td>
    	</tr> 
    </table>
    </if>
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  7. #7
    Senior Member Array Silmarillion's Avatar
    Real Name
    Christian
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    414
    Liked
    1 times
    Hello Mert,

    that doesn't work either. Now there are shown three adsense-blocks!

    And not side by side...

    Take a look: Fussball
    Forum rund um das Thema Fußball: Fanlager.de
    Forum rund um das Thema Fantasy: Fantasy-Foren.de
    Forum rund um das Thema Alternative Musik: Alternative-Musik-Forum.de

  8. #8
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    What is the code exactly you used ?
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  9. #9
    Senior Member Array Silmarillion's Avatar
    Real Name
    Christian
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    414
    Liked
    1 times
    EDIT: wah! my fault! Now it works! Many thanks, Mert!
    Forum rund um das Thema Fußball: Fanlager.de
    Forum rund um das Thema Fantasy: Fantasy-Foren.de
    Forum rund um das Thema Alternative Musik: Alternative-Musik-Forum.de

  10. #10
    vBSEO.com Webmaster Array Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,463
    Liked
    721 times
    Blog Entries
    4
    You're welcome
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Similar Threads

  1. Custom coding for Forum before adding vbseo
    By viralmind in forum Pre-Sales Questions
    Replies: 5
    Last Post: 07-22-2008, 12:05 AM
  2. I Need a Little Help With My Header Coding
    By soletrader in forum General Discussion
    Replies: 5
    Last Post: 11-14-2006, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •