Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th April 2007, 15:12
Hotwire Hotwire is offline
Junior Member
 
Join Date: Sep 2006
Location: Petawawa Ontario Canada
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hotwire
Default Top Of the Page Advertising?

Is it possibel to have a script setup that will display a full width banner across the top of a customers webpage. I would like to impliment this feature for select hosting plans, mainly the free, and affiliate plans I offer.
Reply With Quote
Sponsored Links
  #2  
Old 13th April 2007, 15:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I'm not sure, but maybe you can pipe the pages through some kind of proxy and then add your ads.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th April 2007, 16:35
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 172 Times in 77 Posts
Default

I once saw an apache module who was doing this, but this was more than 5 years ago, and I don't recall the name.
Reply With Quote
  #4  
Old 13th April 2007, 17:04
edge edge is online now
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,034
Thanks: 265
Thanked 152 Times in 132 Posts
Default

I tested this some time ago with Apache's mod_rewrite.

Not sure if this is the code I used (I can not access my test server at the momen)

Code:
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME}!add.php 
RewriteRule ^(.*) /add.php 
</IfModule>
You will need to code "add.php" to handle the banners.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
The Following User Says Thank You to edge For This Useful Post:
createch (25th April 2011)
  #5  
Old 4th April 2011, 14:37
fisherofer fisherofer is offline
Senior Member
 
Join Date: Sep 2009
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

Please check the code
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Default Holding Page mphayesuk General 13 7th July 2007 16:25
not seeing shared IP page andyreynolds Installation/Configuration 2 21st February 2007 23:24
The page cannot be displayed on Port: 81 nysprite Installation/Configuration 1 21st June 2006 11:42
Frequent blank page when first opening site? minezamac Installation/Configuration 3 1st May 2006 19:55
Accessing the ISPConfig Web Page nformosa Installation/Configuration 1 9th September 2005 14:13


All times are GMT +2. The time now is 21:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.