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 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.