Results 1 to 8 of 8
  1. #1
    Join Date
    May 2002
    Posts
    638

    how to do those co-branded affiliate website?

    where the affiliate's logo is at the top of every page?

  2. #2
    What language do you want to use? It's pretty easy to do and I can give an example if you answer that question.

  3. #3
    Join Date
    May 2002
    Posts
    638
    language is php

  4. #4
    Can you give an example of what you want to do?

  5. #5
    Join Date
    May 2002
    Posts
    638

  6. #6
    There are two basic ways to do that. If all of your pages are .php files, you can set this option in php.ini:

    auto_prepend_file = /path/to/file/banner.php

    Then in banner.php just add the HTML for the logo and links. You can also manually add the HTML to pages that are not .php (.html, etc.)

    Another PHP option is to use include(). Placing this line at the top of every .php file will have the same effect as the option above:

    PHP Code:
    <?php include('/path/to/file/banner.php'); ?>

  7. #7
    Join Date
    May 2002
    Posts
    638
    for the second option, must i do it for all of our website pages?

    there are more than 50 pages, so it's a lot of work.

    i'm sure there is a shortcut right?

  8. #8
    If your pages are .php files you can use the auto_prepend_file setting and you won't have to change the actual files themselves for it to work. If they are not .php, or if you can't get access to php.ini, then you will have to manually add either the include() line or the actual HTML source to each file.

Posting Permissions

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