Results 1 to 5 of 5
  1. #1

    Question Placing Forced Ads

    I am running a free web hosting and i want to put ads on my customers web sites,
    Do you know how to do that ?

    Thank you

  2. #2
    Using mod_layout you can create a single look for your site by placing information at both the beginning and the end of a document (header and footer). It is useful for adding banners at the top or end of all web pages. Also if wish you can insert layouts in documents at any place dynamically.
    Below are the steps to install mod_layout on your cPanel server.
    Download tar file for installtion
    A. wget
    B. tar xvfz mod_layout-3.2.tar.gz
    C. cd mod_layout-3.2
    D. vi Makefile
    and find following
    # the used tools
    CC=`apxs -q CC`
    Replace the values with the following details :
    # the used tools
    CC=`/usr/local/apache/bin/apxs -q CC`
    INC=-I`/usr/local/apache/bin/apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
    LD_SHLIB=`/usr/local/apache/bin/apxs -q LDFLAGS_SHLIB`
    save the file Makefile and then
    E. make
    F. make install
    G. edit httpd.conf

    And added LayoutHeader and LayoutFooter Directive as below.
    LayoutHeader “<P> This is the beginning of things<P>”
    LayoutFooter “<P> This is the tail end of things<P>”
    You are done….
    Apps for Small Businesses

  3. #3
    Join Date
    Mar 2009
    apache mod_layout is your friend.
    it sometimes breaks badly written php code , so beware. - Managed Hosting Solutions 2004 - 2016

  4. #4
    but the mod_layout website is not running, i think that the mod is no longer supported.
    is there any alternative?

  5. #5
    The alternative is to mess around with .htaccess. However that would mean that you don't allow your users to change their .htaccess. Not sure if that's the case.
    Apps for Small Businesses

Similar Threads

  1. Placing an image in div tag(s)
    By luxx in forum Web Design and Content
    Replies: 4
    Last Post: 12-11-2008, 07:24 AM
  2. Placing ads on users' sites
    By Boballoo in forum Web Design and Content
    Replies: 1
    Last Post: 05-15-2008, 09:41 PM
  3. Placing ads on customer's pages
    By Allan87 in forum Running a Web Hosting Business
    Replies: 10
    Last Post: 05-08-2007, 04:42 PM
  4. how about placing an ad on
    By ivytony in forum Web Design and Content
    Replies: 0
    Last Post: 03-18-2005, 02:17 PM
  5. placing advertisment
    By sharkman in forum Running a Web Hosting Business
    Replies: 6
    Last Post: 08-02-2002, 04:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts