Need to Rotate ad's but confused..

8 replies
I picked up a nice new theme, it has some pretty cool features including, the banner in the header of the them and 3X125 ad's in the sidebar.

Problem is I've just become completely confused how I can incorporate the rotating ad's code..

Here is what I have in my header.php, where the ad's are generated from.
<div id="ads"><a href="aff link"><img src="Image url" width="468" height="60" alt="" border="0"/></a></div>
Here is waht I'm expected to do, if i want ad's to rotate.

First create a rotating ad's php file.

Then to insert this code, when I want the ad's to be generated.

<?php include("/home/yourname/public_html/rotateads.php"); ?>
Now because of the piece of code <div id="ads"> I'm left pretty confused as to how I'm going to get this to work, I think it'll work fine for my 125X125 but not for this one?

Any thoughts on how I make it possible? Thanks.
#confused #rotate
  • Profile picture of the author ChrisJamesG
    The <div id="ads"> refers to a piece of code in the css (style sheet)...does the page have a separate stylesheet of does it have the css code in the header?
    Signature
    *** 10,000+ Private Label Rights Niche Articles
    *** 90+ Private Label Rights Internet Marketing Articles
    *** 50+ Private Label Rights eBooks

    [ALL FREE] Private Label Rights - CLICK HERE
    {{ DiscussionBoard.errors[750681].message }}
    • Profile picture of the author Intrepreneur
      Originally Posted by ChrisJamesG View Post

      The <div id="ads"> refers to a piece of code in the css (style sheet)...does the page have a separate stylesheet of does it have the css code in the header?
      I'm about to backup my theme and then test until I get it right, as I've no got an idea of what's going on, the div is calling a piece of the style sheet, so if I add in the php include code it should work.. Fingers crossed.
      {{ DiscussionBoard.errors[750823].message }}
  • Profile picture of the author jensrsa
    Try it without the <div></div>

    <a href="aff link"><img src="Image url" width="468" height="60" alt="" border="0"/></a>

    Jens
    {{ DiscussionBoard.errors[750887].message }}
    • Profile picture of the author Intrepreneur
      Originally Posted by jensrsa View Post

      Try it without the <div></div>

      <a href="aff link"><img src="Image url" width="468" height="60" alt="" border="0"/></a>

      Jens
      Um this works pefect, as I've already done this but it's to rotate, the Syntax error has now disappeared and the theme is now working fine but the ad's are now not displaying at all.
      {{ DiscussionBoard.errors[752880].message }}
  • Profile picture of the author edhan
    Originally Posted by Intrepreneur View Post

    I picked up a nice new theme, it has some pretty cool features including, the banner in the header of the them and 3X125 ad's in the sidebar.

    Problem is I've just become completely confused how I can incorporate the rotating ad's code..

    Here is what I have in my header.php, where the ad's are generated from.
    Here is waht I'm expected to do, if i want ad's to rotate.

    First create a rotating ad's php file.

    Then to insert this code, when I want the ad's to be generated.



    Now because of the piece of code <div id="ads"> I'm left pretty confused as to how I'm going to get this to work, I think it'll work fine for my 125X125 but not for this one?

    Any thoughts on how I make it possible? Thanks.
    Code:
    <div id="ads"><?php include("/home/yourname/public_html/rotateads.php"); ?> </div>
    I think you add the rotateads.php this way, it will run the ads rotation.
    Signature

    Be blessed with Thai Buddha Amulets & Tibetan dZi to accumulate wealth, health & good fortune
    Build your own community business
    Article Directory Source Code with blog & Classified Ads
    Understanding the cycle of Karma & Merits

    {{ DiscussionBoard.errors[752920].message }}
    • Profile picture of the author Intrepreneur
      Originally Posted by edhan View Post

      Code:
      <div id="ads"><?php include("/home/yourname/public_html/rotateads.php"); ?> </div>
      I think you add the rotateads.php this way, it will run the ads rotation.
      Yup, I've done it, now there is no ad's at all.. I can't figure out why it's not picking this up, quite strange for me.

      Any ideas why it would cause nothing to happen and the area for advertisement to dissapear?

      Maybe I should give up, but I don't want to until it's complete. :-)
      {{ DiscussionBoard.errors[752929].message }}
      • Profile picture of the author edhan
        Originally Posted by Intrepreneur View Post

        Yup, I've done it, now there is no ad's at all.. I can't figure out why it's not picking this up, quite strange for me.

        Any ideas why it would cause nothing to happen and the area for advertisement to dissapear?

        Maybe I should give up, but I don't want to until it's complete. :-)
        Make sure the path is correct. Check and see if you have typed in the correct path for this:

        /home/yourname/public_html/rotateads.php

        As for me, my path will be: /rotateads.php

        Double check on this and you should be having the ads.

        If you need me to check, you can PM me.
        Signature

        Be blessed with Thai Buddha Amulets & Tibetan dZi to accumulate wealth, health & good fortune
        Build your own community business
        Article Directory Source Code with blog & Classified Ads
        Understanding the cycle of Karma & Merits

        {{ DiscussionBoard.errors[752937].message }}
        • Profile picture of the author Intrepreneur
          Originally Posted by edhan View Post



          If you need me to check, you can PM me.
          I'm out of the office at the moment, when I get home, I'll give it another go and if unsuccesful I'll happily take your offer :-)

          Speak soon.

          Cheers.
          {{ DiscussionBoard.errors[752959].message }}

Trending Topics