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 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Can i get the php code which allow's to put ads automatically after each post.

    Can i get the php code which allow's to put ads automatically after each post to a maximum of three in a page if you can give it to me i will be thankful to you my whole life.


    thanks in advance

    Raw_axe

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,471
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Need more info ...

    "after each post" ... with what?
    WordPress, some sort of forum? What script are you using?

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    till now i am not using any scripts but iwant to usee now to put ads on the forum i want to know the script which i can use to put ads after each reply in the thread if you can help me i will be grateful to you if you cant thank you buit i am tired of asking for help i will just quit it if i have got no answer from that forum also.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,471
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    OK ...

    So you're talking about when you post something to a forum an ad will
    appear? I'm still not clear about whether an ad appears when anyone
    posts on the forum, or just you.

    I'm assuming you're going to start your own forum and want those ads
    to appear on your forum?

    I'm just having a hard time understanding how you are looking for instructions
    on how to put ads on the forum, but you don't yet have any scripts.

  • #5
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by mlseim View Post
    OK ...

    So you're talking about when you post something to a forum an ad will
    appear? I'm still not clear about whether an ad appears when anyone
    posts on the forum, or just you.

    I'm assuming you're going to start your own forum and want those ads
    to appear on your forum?

    I'm just having a hard time understanding how you are looking for instructions
    on how to put ads on the forum, but you don't yet have any scripts.

    thats why i am looking for a script to write it on the forum


    I'm still not clear about whether an ad appears when anyone
    posts on the forum, or just you..
    let me explain it to you suppose we have a forum and you have started a new thread there and just after you have started a thread an ad will appear after it before anyone could reply to it an ad will appear next to the new thread started
    if you can do that for me i will be thankful; to you


    raw_axe

  • #6
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    I would give up on the idea of someone doing it for you, that's not the way things tend to work. First, you show something that you've written that isn't working, then people will help you.

  • #7
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,471
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Whatever forum you use, you'll have to examine the PHP scripting and
    locate the correct template file that handles displaying the posts. That's
    why we're asking you about what forum you're using. Each forum is different,
    and we can't provide any script examples without know which forum you're
    using.

    Also, we have no idea where your ads are coming from. Do you have a list
    of ads in another database? Are the ads randomly extracted from a remote
    site? Are the ads inserted using a Javascripting method?

    I could answer your question like this with the information you provided:

    Put this code in your forum where the posts are displayed:
    PHP Code:
    $count++;
    if(
    $count 4){
    echo 
    "Buy a new car!  <a href='www.ford.com'>Ford Cars</a>";

    There you go, that's how you do it.

    See what I mean?
    How is that going to help you?

  • #8
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Most forum scripts will probably have a mod you can install to do this for you. I know vB does, and I think phpBB does too.


  •  

    Posting Permissions

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