Ads on multipel websites

Discussion in 'PHP' started by Jaspworld, Jul 8, 2011.

  1. #1
    Hey guys,

    I'm not sure if this is the right place to post. I own multiple websites and to sell advertisement on all of them simultaneously from one place. So I don't want to manually put the code for banner on all the websites but just do from one place from the admin area.

    Can this be done in PHP. Is there some free script already available?


    Thank you.
     
    Jaspworld, Jul 8, 2011 IP
  2. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #2
    Try OpenX.org
     
    MyVodaFone, Jul 8, 2011 IP
  3. Jaspworld

    Jaspworld Well-Known Member

    Messages:
    169
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Jaspworld, Jul 8, 2011 IP
  4. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #4
    MyVodaFone, Jul 8, 2011 IP
    Jaspworld likes this.
  5. SiJz

    SiJz Peon

    Messages:
    51
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    basically, you just want to replicate what the theme guys do when putting ad's in footers.

    You just have a piece of javascript that point to a central site and fetches a link/banner/image etc - just like calling a javascript js file
    - you can fancy it up using cookies, user tokens etc
    - you can also add management menus to rotate ads, serve ads to certain sites etc.
    but I'd go for a simple mechanism first, then build up

    on your central site, when the remote site calls in, you serve back the links.


    This could be done simply with PHP also, having file(s) on the remote sites, to which your admin site writes to.
    Just include this local file in the page where needed and have it push out the required html


    The third option, which I've used a number of times is to have the remote sites have
    <a href="http://adminsite.com/clickthruscript.php?site=siteref&adv=advnum"><img src="http://adminsite.com/imageserverscript.php?site=siteref&adv=advnum" border=0 width= height= alt=""></a>
    Code (markup):
    where:
    clickthruscript basically redirect the click to the required target
    imageserver simply looks up the requires image and spits it out

    you can personalise the system to site and advert position with the optional passed parameters siteref and advnum

    This works best with fixed width/height images per site/position
    You can have a sql based admin system or simple hardcoded server/click-redirect scripts - it's up to you


    Si
     
    SiJz, Jul 8, 2011 IP
    Jaspworld likes this.
  6. Jaspworld

    Jaspworld Well-Known Member

    Messages:
    169
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Thanks MyVodaFone for that link. I downloaded it and ran it but I realized that it was perhaps it a bit too complicated and not suiting my needs too well.
    SiJz, thanks for the great reply. I've realized that I'll have to code this myself to suit it to my needs. I'll be doing this using javascript but my coding skills are a little weak. I've gotten though the basic step of displaying links on all websites from one place. Can you tell me how to add cookies and stuff to record views and clicks etc.

    Thank you.
     
    Jaspworld, Jul 8, 2011 IP
  7. SiJz

    SiJz Peon

    Messages:
    51
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi,

    Sure - I'll dig out what I used and send it over via pm later (maybe tomorrow worst case)

    Si
     
    SiJz, Jul 9, 2011 IP
  8. frye.nora

    frye.nora Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi SiJz, mind to send one to me too? will really appreciate the remote php version, javascript hates me and i hate it more lol
     
    frye.nora, Jul 9, 2011 IP
  9. SiJz

    SiJz Peon

    Messages:
    51
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No problem,

    Si
     
    SiJz, Jul 9, 2011 IP
  10. frye.nora

    frye.nora Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    cool.. looking forward for the scripts.

    God bless you Si. Thx.
     
    frye.nora, Jul 9, 2011 IP
  11. yusuyi

    yusuyi Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    search "phpmyads" at google, this scripts are working good with you
     
    yusuyi, Jul 9, 2011 IP
  12. SiJz

    SiJz Peon

    Messages:
    51
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Hi,

    Quick update, I've not forgotten to sort the scripts, I've had a few unexpected chaotic days, so will try to find and post this evening.

    Si
     
    SiJz, Jul 11, 2011 IP