Activity Stream
48,167 MEMBERS
61992 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1.     
    #1
    Banned
    Website's:
    GFXFire.com Max-Share.org WarezShares.com

    Default Ad Placement

    Hello,

    I wanted to place ads in my board but only in the first post (below all the content) and only in certain sections?

    Anyone know how to get this done?

    Would be grateful if someone could help.
    ItsmYarD Reviewed by ItsmYarD on . Ad Placement Hello, I wanted to place ads in my board but only in the first post (below all the content) and only in certain sections? Anyone know how to get this done? Would be grateful if someone could help. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    In the admin panel System Settings > System > Ad Code Integration

    topic view - Code to display after first post

    You will have to edit the template topic view > post to check for forums.

    find:
    Code: 
    		<if test="adCodeCheck:|:$post['post']['_adCode']">
    			{$post['post']['_adCode']}
    		</if>
    change to:
    Code: 
    		<if test="adCodeCheck:|:$post['post']['_adCode']&&in_array( $this->request['f'],array(1,12,15) )">">
    			{$post['post']['_adCode']}
    		</if>
    he 1,12,15 are the forum numbers you want ads displayed in.

  4.     
    #3
    Banned
    Website's:
    GFXFire.com Max-Share.org WarezShares.com
    Thanks so much for the help, I just realised my affiliate actually requires me to have a variable.


    2. http://***/torrent.php*****YOU_REFF&...LE&f=NAME_FILE - everywhere where these links

    a. Replace in HTML code YOU_REFF with the name of your site without www.

    b. Replace in HTML code NAME_FILE with a variable which is responsible for a name of file


    That's from the email from the affiliate. How do I go about that?

  5.     
    #4
    Respected Member
    You are welcome. Not to sure what they want there but if it is the topic title you can use this:
    Code: 
    {$topic['title']}

  6.     
    #5
    Banned
    Website's:
    GFXFire.com Max-Share.org WarezShares.com
    Yup topic title but how do I place it in their affiliate link o_O

  7.     
    #6
    Respected Member
    So I am guessing you are placing this code in the ads box :
    Code: 
    http://***/torrent.php*****YOU_REFF&...LE&f={$topic['title']}

  8.     
    #7
    Banned
    Website's:
    GFXFire.com Max-Share.org WarezShares.com
    Trying it now.

    Edit: Topic title thing is not working.

  9.     
    #8
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    Quote Originally Posted by Lock Down View Post
    In the admin panel System Settings > System > Ad Code Integration

    topic view - Code to display after first post

    You will have to edit the template topic view > post to check for forums.

    find:
    Code: 
            <if test="adCodeCheck:|:$post['post']['_adCode']">
                {$post['post']['_adCode']}
            </if>
    change to:
    Code: 
            <if test="adCodeCheck:|:$post['post']['_adCode']&&in_array( $this->request['f'],array(1,12,15) )">">
                {$post['post']['_adCode']}
            </if>
    he 1,12,15 are the forum numbers you want ads displayed in.

    Nice

    Is there any way to control after what posts to show it instead of just the 1st one? lets say i wanted to show it after the 1st post, 5th post and last post.

  10.     
    #9
    Respected Member
    Do you mean the
    Code: 
    $topic['title']}
    does not work or the ref thing does not work?

  11.     
    #10
    Respected Member
    Quote Originally Posted by bxflow View Post
    Nice

    Is there any way to control after what posts to show it instead of just the 1st one? lets say i wanted to show it after the 1st post, 5th post and last post.
    Alittle more complicated but yes.

    First you have to edit file admin\applications\forums\modules_public\forums\to pics.php

    find around line 1795:
    Code: 
    	$adCodeSet = true;
    change to:
    Code: 
    //	$adCodeSet = true;
    next in the template change to:
    Code: 
     <if test="adCodeCheck:|:in_array($post['post']['post_count'],array(1,5,count($post))&&in_array( $this->request['f'],array(1,12,15) ) ">
                {$post['post']['_adCode']}
            </if>

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. CPM ads placement doubts
    By johnpeter123 in forum Webmasters, Money Making
    Replies: 0
    Last Post: 18th Oct 2012, 05:29 AM
  2. Google Ads Placement
    By todaydownload in forum Webmasters, Money Making
    Replies: 14
    Last Post: 15th Jul 2012, 11:23 PM
  3. Logo Placement Problem.
    By CammyD in forum vBulletin
    Replies: 1
    Last Post: 13th May 2011, 03:56 PM
  4. AD placement
    By praveer in forum Webmaster Discussion
    Replies: 0
    Last Post: 13th Nov 2010, 06:48 AM
  5. My ads placement
    By pankaj in forum Webmaster Discussion
    Replies: 4
    Last Post: 4th Feb 2010, 06:18 AM

Tags for this Thread

BE SOCIAL