Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New coder needs help !!!

    Hi i am new to coding and new to forum too.
    I am pulling my hairs over loop.php file in wordpress.
    It is a self hosted wordpress blog of mine and i ant to add google adsense after the first post of blog.
    "I Want To Show Adsense After The First Post".
    I once added it using a div structure but every other thing mess3ed up.
    help me i am new.
    Sorry if i have posted it in the wrong section, please move it to the html/css.
    Last edited by hugbusiness77; 08-24-2011 at 04:36 PM. Reason: Sorry

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Not sure of what your question is but if by "messed up" you mean it is not displaying correctly on the page then it is likely an HTML/CSS issue.

    I'll can move your topic to that forum.

    Also please read the rules and posting guidelines before posting.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Spookster View Post
    Not sure of what your question is but if by "messed up" you mean it is not displaying correctly on the page then it is likely an HTML/CSS issue.

    I'll can move your topic to that forum.

    Also please read the rules and posting guidelines before posting.
    I have used this code in php today . . . And it did not worked too

    <?php if(!$show_ads){ ?>
    Insert Adsense Code Here
    <?php $show_ads = 1; } ?>

    If anybody could help me.
    Sorry if it is in wrong section.

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by hugbusiness77 View Post
    I have used this code in php today . . . And it did not worked too

    <?php if(!$show_ads){ ?>
    Insert Adsense Code Here
    <?php $show_ads = 1; } ?>

    If anybody could help me.
    Sorry if it is in wrong section.
    What is $show_ads and who is setting this and where? That boolean variable would have to be set somewhere prior to you using it if you are depending upon it being a TRUE value in order to display your adsense stuff.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try adding google adsense code in post.php...it might help....


  •  

    Posting Permissions

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