Get Paid to Participate     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?


Reply


Old
  Post #1 (permalink)   02-14-2006, 04:05 PM
HD Amateur
 
Join Date: Nov 2005
Posts: 67

Status: Matt Midgley is offline
Hello,

I have a server with quite a few sites on it and I'd like it to be AD supported. I'd rather not have each and every site with ADs on it (I would like a few exceptions), it would be better if I could choose but if I can't, I could live with it. What I need to know is if anyone knows of some software that will do this for me. I will most likely be using Google ADWords for this. Just some initial ideas would be great.

The code needs inserting at a convenient place that's no too in the way but where it would get clicks. I'm sure their Terms and Conditions say no popups which I wouldn't want anyway.

Thanks,
Matt
 
 
 


Old
  Post #2 (permalink)   02-15-2006, 04:24 AM
HD Guru
 
Join Date: Sep 2005
Location: England
Posts: 753
Send a message via Skype™ to Matthew

Status: Matthew is offline
I think this shouldnt be too difficult. I have a few ideas how to make this work but am not sure yet. I am going to do some searching around and try a few things and let you know how it works out.
__________________
Matthew
 
 
 


Old
  Post #3 (permalink)   02-15-2006, 04:45 AM
HD Guru
 
Join Date: Sep 2005
Location: England
Posts: 753
Send a message via Skype™ to Matthew

Status: Matthew is offline
It seems that the easiest option is to remove all the document types except for index.htm (for example)

Make this file so it cannot be replaced and that their FTP user does not have any rights to it.

Then add a frame on this where you want their home page to appear. You can tell them to use home.htm only.

It then loads their site up in the frame.

However, this isnt a great example because they could just redirect to home.htm and all pages wouldnt have a banner... just the home page.

The better way would probably use mod_rewrite (available as a download) and a .htaccess file and tell it to redirect all traffic to a page with the banners and filter out images and such so that everything doesnt get a banner on the page.

How you do that is another story I am not familer with PHP. Have a search around and see if there are any examples of code. I am sure someone has a free sample of code you could use in IIS.
__________________
Matthew
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: