• fosef

    (@fosef)


    I would like to have a different ad display on the sidebar depending on what page is loaded. I’m a dumby when it comes to PHP but I do understand programming, so even a general idea on the code I would use to do this would help.

    To understand what I mean…My site is https://www.gamebunny.com, if you see there is a worlds list. Depending on what game page is loaded from that list, I would like the proper ad to be displayed.

    I have no problem with it being a huge if/else statement. I just need help in knowing what the code would be.

    Thanks for any help

Viewing 2 replies - 1 through 2 (of 2 total)
  • articles

    (@articles)

    Do you really want to implement an ad for every add?

    The programming is easy, but the ad-writing and maintaining will take time…

    idea:
    use an extra db-table, ask for every post-id for a special ad-html to be inserted.

    Thread Starter fosef

    (@fosef)

    The way I plan to go with the ads, it will basically be a 1 time setting, so the maintaining shouldn’t be a pain.

    I understand you idea of the db table, but that would almost seem like more work, cause if I did it that way, I would like to be able to set it in the admin while making the post.

    Like I say, I don’t much about PHP, but seems to me I could just call a function, pass the page id in and return the html string for the ad

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ads based on page’ is closed to new replies.