Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    25

    Default Permanent advertise banner

    I run a very large free webhosting company which makes all its money off small banner/google advertisments. What I'm looking to do is make it so apache applies some code to the top of each page under a certain reseller account. I need it so this code can not be removed or altered. Does anyone know of a way to do this?


    Thanks.

  2. #2
    Registered User
    Join Date
    Aug 2004
    Posts
    4

    Default

    maybe mod_layout will be suitable for you.
    For more info visit: http://freshmeat.net/projects/mod_layout/

  3. #3
    Member
    Join Date
    May 2006
    Posts
    8

    Default

    add a .htaccess file in the skeleton directory of the reseller with the following information in:-

    php_value output_buffering 4098
    AddType application/x-httpd-php htm
    AddType application/x-httpd-php html
    php_value auto_append_file 'http://www.xxxxxxx.co.uk/footertest.htm'

    footertest.htm being your file with google adverts on

    this will then include the adverts at the bottom of each page made on that reseller account, but they wont be able to amend it on the page code itself, only way someone can change it is to alter the .htaccess file (which are normally hidden anyway)

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by kwhs
    this will then include the adverts at the bottom of each page made on that reseller account, but they wont be able to amend it on the page code itself, only way someone can change it is to alter the .htaccess file (which are normally hidden anyway)
    However many users do use .htaccess files for settings as trivially common as custom HTTP error pages.

    Using mod_layout on a per account basis would probably be more suitable.

  5. #5
    Member
    Join Date
    Jun 2004
    Posts
    25

    Default

    I have installed mod_layout and got the header working partly the way i want, php wouldnt load what so ever so I made a iframe for the header. The bad part is it breaks the rest of the page, some php pages were completly broken with just a { where the page should be, others the css files were broke, not to mention the mod it self is massivly unstable. Out of all the options for page inserts, half didnt work and gave seg faults, etc etc. I guess since it hasnt been updated in so long its just breaking down.

    Do you all know a mod that is more recent that will do what I need?

Similar Threads & Tags
Similar threads

  1. What are requirements to advertise
    By cloudvpshosting in forum cPGS Discussions
    Replies: 1
    Last Post: 02-22-2010, 02:09 PM
  2. how to show an advertise top of all html pages on my site?
    By iranshops in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-28-2004, 06:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube