Results 1 to 1 of 1

Thread: Adsense in Job Post excerpts

  1. #1
    Thread Starter
    Newbie hiremymum's Avatar
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    Adsense in Job Post excerpts

    First of all, Jobroller is fantastic. Well done Appthemes. We are loving your system.

    We are trying to place adsense into the front page, and all the main category pages underneath the short job descriptions (excerpts).

    We had a programmer insert some code into job_loop.php in an attempt to insert ads after the first post, then again after the third post. The modifiaction is delivering ads, but it seems to bbe completely random. The ads show up in a variety of different places. Sometimes not at all.

    I think the code we used was based on the Wordpress recommendations, but obviously it doesn't fit perfectly because the Jobroller theme is a bit different.

    We installed this code towards the top of the file:

    <!-- Start Adsense Loop Edit -->


    $postnum = 1;

    $showads = 1;


    <!-- End Adsense Loop Edit -->

    then further down, this code:

    <!-- Start Adsense ad 468x60 -->

    <?php if (($postnum == 1 || $postnum == 3) && $showads == 1 ) { ?> <script type="text/javascript"><!--

    google_ad_client = "pub-8138704232109883";

    /* Hire My Mum inbetween -Job-Ads */

    google_ad_slot = "7273310101";

    google_ad_width = 468;

    google_ad_height = 60;



    <script type="text/javascript"


    </script><?php } $postnum++; ?>

    <!-- End Adsense ad 468x60 -->

    Any ideas?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Place the date of the post in front of the post imige in post block
    By dragos in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: December 5th, 2011, 07:50 AM
  2. Archive Category Pages - Show Excerpts
    By domo in forum JobRoller General Discussion
    Replies: 6
    Last Post: November 29th, 2011, 08:09 PM
  3. google adsense every ads post
    By edzelsalomon in forum ClassiPress General Discussion
    Replies: 4
    Last Post: June 9th, 2011, 11:07 PM
  4. Blog Excerpts on main blog page
    By tinnud in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 24th, 2011, 06:10 AM