1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

4images gallery and the COOP

Discussion in 'Co-op Advertising Network' started by Gede, May 17, 2005.

  1. #1
    Maybe some of you use the 4images gallery, I do use it a lot, and made some templates for it.

    for instance: Free 4images Templates
    SEMrush
    To include the COOP code in the template system you can use
    this code:

    Open the the [installed directory]/includes/page_header.php
    and find:

    $site_template->register_vars(array(
      "media_url" => MEDIA_PATH,
      "thumb_url" => THUMB_PATH,
      "icon_url" => ICON_PATH,
    Code (markup):
    Replace it with:


    
     include ('../ad_network_XXX.php');
     $site_template->register_vars(array(
      "coop_ad" => $ad_network, 
      "media_url" => MEDIA_PATH,
      "thumb_url" => THUMB_PATH,
      "icon_url" => ICON_PATH,
    Code (markup):
    (If your gallery is in a subdirectory, else leave out the ../)

    Now you can use in your template this {coop_ad} variable to
    show the adds, usually the footer.html

    The standard version of 4images is not SE friendly because of the session id's
    so not a lot of pages get indexed.

    You can read here about making 4images Search Engine Friendly

    Hope its usefull.
     
    Gede, May 17, 2005 IP
    digitalpoint likes this.
    SEMrush