The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Permanent advertise banner

Discussion in 'General Discussion' started by BlackDemon, Jun 17, 2006.

  1. BlackDemon

    BlackDemon Active Member

    Joined:
    Jun 5, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    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. userQ

    userQ Registered

    Joined:
    Aug 22, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
  3. kwhs

    kwhs Member

    Joined:
    May 21, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    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. BlackDemon

    BlackDemon Active Member

    Joined:
    Jun 5, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page