User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,897 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,347 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 176 | Replies: 3
Reply
Join Date: May 2006
Posts: 9
Reputation: JNathanson is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
JNathanson JNathanson is offline Offline
Newbie Poster

Forcing ads on certain pages

  #1  
Apr 16th, 2008
Hi there,

Is there any way, maybe using mod_layout, to force certain subdomains to have ads forced on their pages? I.e. for a free hosting company.

Thanks,
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 554
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 57
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Posting Pro

Re: Forcing ads on certain pages

  #2  
Apr 16th, 2008
i have seen a lot of places like that use frames to force ads. I am not sure of the method they use to do this for their sites but that might get you in the right direction.
Last edited by kkeith29 : Apr 16th, 2008 at 2:12 pm.
Reply With Quote  
Join Date: May 2006
Posts: 9
Reputation: JNathanson is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
JNathanson JNathanson is offline Offline
Newbie Poster

Re: Forcing ads on certain pages

  #3  
Apr 16th, 2008
Thanks for that, I'll keep looking. I don't know how to force it on all pages that they use though.

I want to automate it if possible.

Thanks,
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 554
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 57
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Posting Pro

Re: Forcing ads on certain pages

  #4  
Apr 16th, 2008
what i think i would do is maybe a mod_rewrite ??? not sure if that would do it, but it would redirect to a php page

ex.
http://mysite.freehost.com

to

http://freehost.com/show.php?site=mysite

then the show.php would load a ad into the top frame and the site in the bottom.

i have seen one or two do it this way.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 10:53 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC