adding adsense on rainy day?? adding adsense on rainy day??
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

adding adsense on rainy day??

Started by dudegetalife, November 18, 2007, 04:54:41 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

dudegetalife

i've searched the forum and i've tried to do it with this post

http://forum.coppermine-gallery.net/index.php?topic=44115.0

but how do i add adsense underneath the pictures on rainy day theme, i've tried editing the theme and template.html with no luck it keeps giving me errors

just_some_guy

http://forum.coppermine-gallery.net/index.php?topic=47177.0

If the section you are looking for does not exist i theme.php, copy the required function or variable definition from themes/sample/theme.php
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

dudegetalife

i keep getting errors anytime i paste any of the codes into the rainy day theme.php, i got adsense to work in the igames theme but it turned out too dark for some of the pictures.

Joachim Müller

Zip your custom theme and attach it to your posting using "additional options".

dudegetalife

here it is , thx for your help btw.

Joachim Müller

Where's the adsense code? An unmodified copy of your theme doesn't help. I need to see your modifications to correct them. Zip your custom theme folder and attach it.

dudegetalife

here's the whole folder once it's modified.


Here's the gallery when it is just normal with no trying to modify it.

I'm trying to get it so when someone looks at the image it is right underneath it.

www.cellulargeniuses.com

Joachim Müller

That's just wihsfull thinking: you can not simply add <!-- Begin: AdBrite --> and <!-- End: AdBrite --> tags anywhere and hope that it will work.

This is the code of theme.php you attached (which is nonsense)
<?php

/*************************

  Coppermine Photo Gallery

  ************************

  Copyright (c) 2003-2007 Coppermine Dev Team

  v1.1 originally written by Gregory DEMAR



  This program is free software; you can redistribute it and/or modify

  it under the terms of the GNU General Public License version 3

  as published by the Free Software Foundation.

  

  ********************************************

  Coppermine version: 1.4.13

  $Source$

  $Revision: 3837 $

  $Author: gaugau $

  $Date: 2007-08-16 18:56:06 +0200 (Do, 16 Aug 2007) $

**********************************************/



// ------------------------------------------------------------------------- //

// This theme has had all redundant CORE items removed                           //

// ------------------------------------------------------------------------- //



define('THEME_HAS_RATING_GRAPHICS'1);

define('THEME_IS_XHTML10_TRANSITIONAL',1);



// HTML template for sys_menu

$template_sys_menu = <<<EOT

  <div class="topmenu">

          <table border="0" cellpadding="0" cellspacing="0">

                  <tr>

  {BUTTONS}

                  </tr>

          </table>

  </div>

EOT;



// HTML template for template sys_menu buttons

$template_sys_menu_button = <<<EOT

<!-- BEGIN {BLOCK_ID} -->

  <td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>

  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>

  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">

          <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>

  </td>

  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>

<!-- END {BLOCK_ID} -->

EOT;

// HTML template for intermediate image display

$template_display_media = <<<EOT

        <tr>

                <td align="center" class="display_media" nowrap="nowrap">

                        <table cellspacing="2" cellpadding="0" class="imageborder">

                                <tr>

                                        <td align="center">

                                                {IMAGE}



                                        </td>

                                </tr>

                        </table>

                </td></tr>    <tr>

                <td>



                </td>

        </tr>

                <tr><td>

                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">

                                <tr>

                                        <td align="center">



                                                {ADMIN_MENU}

                                        </td>

                                </tr>

                        </table>











<!-- BEGIN img_desc -->

                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">

<!-- BEGIN title -->

                                <tr>

                                        <td class="tableb"><center><b>

                                                {TITLE}

                                        </b></center></td>

                                </tr>

<!-- END title -->

<!-- BEGIN caption -->

                                <tr>

                                        <td class="tableb"><center>

                                                {CAPTION}

                                        </center></td>

                                </tr>

<!-- END caption -->

                        </table>

<!-- END img_desc -->

                </td>

<!-- BEGIN title -->

 <!-- Begin: AdBrite -->

<style type="text/css">

   .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #000000;}

   .adText {font: normal 10pt Arial; text-decoration: none; color: #191919;}

</style>

<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=474444&br=1&col=3">

</script>

<div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=474444&afsid=1">Your Ad Here</a></div>

<!-- End: AdBrite -->



                                <tr>

                                        <td class="tableb"><center><b>

                                                {TITLE}

                                        </b></center></td>

                                </tr>

<!-- END title -->

?>


Here's what you do:
  • Undo your changes, returning theme.php to how it used to be before you started modifying it
  • edit themes/yourtheme/template.html and add reference to the JavaScript there. Find <script type="text/javascript" src="scripts.js"></script> and add after it (into a new line) <script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=474444&br=1&col=3"></script>
  • Edit themes/yourtheme/style.css, scroll to the very bottom and add (into a new line at the end) <style type="text/css">

       .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #000000;}

       .adText {font: normal 10pt Arial; text-decoration: none; color: #191919;}

    </style>
  • edit themes/yourtheme/theme.php, find // HTML template for intermediate image display and edit as suggested below. As your theme doesn't contain that piece of code, you'll have to copy the definition for the variable first from the sample theme and then modify as suggested.

Copy this section from themes/sample/theme.php into a new line before?> of the file themes/yourtheme/theme.php:// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
After copying the default variable definition it, let's start modifying it. In the code you just pasted in, find                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
and add after it (into a new line)                                <tr>
                                        <td class="tableb"><center>
                                                <div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=474444&afsid=1">Your Ad Here</a></div>
                                        </center></td>
                                </tr>
Save your changes and upload them to yur webserver. Make sure to overwrite the files on your webserver. The above mentioned code changes will make the ads appear below the intermediate images (on displayimage.php).
This has been asked many times before - it doesn't matter if you want to add adbrite ads, google adsense ads or any other type of HTML/JavaScript: the method always remains the same.

Joachim

Sidenote: you really should create a custom theme of your own to avoid future updates messing with your custom theme. Do as suggested in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_rename

dudegetalife

Parse error: syntax error, unexpected $end in /home/.wayne/dudegetalife/cellulargeniuses.com/cpg1413/themes/raindy_day22/theme.php on line 153

this is the error i get

this is the code on line 153  ?>

Joachim Müller

Post the entire content of theme.php

dudegetalife

i went over all the codes again and a > was missing in the style.css part of the file, i got it to work but is their anyway to make it so it appears between the picture and the thumbnail/filmstrip?

currently it is all the way on the top of the page

http://www.cellulargeniuses.com/displayimage.php?album=15&pos=895

Joachim Müller


dudegetalife

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2007 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  ********************************************
  Coppermine version: 1.4.13
  $Source$
  $Revision: 3837 $
  $Author: gaugau $
  $Date: 2007-08-16 18:56:06 +0200 (Do, 16 Aug 2007) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed                           //
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS'1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);

// HTML template for sys_menu
$template_sys_menu = <<<EOT
  <div class="topmenu">
          <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
  {BUTTONS}
                  </tr>
          </table>
  </div>
EOT;

// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT
<!-- BEGIN {BLOCK_ID} -->
  <td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
          <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>
  </td>
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<!-- END {BLOCK_ID} -->
EOT;
// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
   <tr>
                                        <td class="tableb"><center>
                                                <div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=474444&afsid=1">Your Ad Here</a></div>
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
?>



their you go thanks for the help.

Joachim Müller

Is the above code the one that is currently being displayed "live" on http://www.cellulargeniuses.com/ ?

dudegetalife

yes it is i copied it right off the server.

Joachim Müller

I wonder why
QuoteYour Ad Here
doesn't show through the HTML output then.

dudegetalife

before i was using igames theme and i got it to work here is how i did it:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2007 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  ********************************************
  Coppermine version: 1.4.13
  $Source$
  $Revision: 3837 $
  $Author: gaugau $
  $Date: 2007-08-16 18:56:06 +0200 (Do, 16 Aug 2007) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has had redundant CORE items removed                           //
// ------------------------------------------------------------------------- //
define('THEME_HAS_RATING_GRAPHICS'1);
define('THEME_HAS_NO_SUB_MENU_BUTTONS',1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);  // Remove this if you edit this template until
                                            // you have validated it. See docs/theme.htm.

// HTML template for sys_menu
$template_sys_menu = <<<EOT
         |{BUTTONS}|
EOT;

// HTML template for template sys_menu spacer
$template_sys_menu_spacer ="|";


// HTML template for template sub_menu
// special note: I left the JavaScript 'hide' off of the first and third buttons to help avoid trouble keeping sys_menu open. :Donnoman
if ($CONFIG['custom_lnk_url'] != '') {
$template_sub_menu = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
<!-- BEGIN custom_link -->
                                                                                <td class="top_menu_left_bttn">
                                                <a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
<!-- END custom_link -->
                                        <td class="top_menu_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onmouseover="MM_showHideLayers('SYS_MENU','','show')">@</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
                                        <td class="top_menu_bttn">
                                                <a href="Http://www.cellulartxt.com" title="Txt messages jokes poems love notes">Txt messages</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
</td>
<td class="top_menu_bttn">
                                                <a href="Http://www.girls4urcell.com" title="XXX">Phone XXX</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                        <td width="100%">&nbsp;</td>
                                </tr>
                        </table>
EOT;

} else {

$template_sub_menu = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                 
<!-- BEGIN custom_link -->
<!-- END custom_link -->
                                        <td class="top_menu_left_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onmouseover="MM_showHideLayers('SYS_MENU','','show')">@</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
<td class="top_menu_bttn">
                                                <a href="Http://www.cellulartxt.com" title="Txt messages jokes poems love notes">Txt messages</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
<td class="top_menu_bttn">
                                                <a href="Http://www.girls4urcell.com" title="Phone wallpapers XXX">Phone XXX</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                        <td width="100%">&nbsp;</td>
                                </tr>
                        </table>
EOT;
}
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink">{ALBUM_NAME}</td>
                                <td class="sortorder_options" style="font-size: 100%;">{TITLE}</td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>
                                <td>&nbsp;&nbsp;</td>
                                <td class="sortorder_options" style="font-size: 100%;">{NAME}</td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>
                                <td>&nbsp;&nbsp;</td>
                                <td class="sortorder_options" style="font-size: 100%;">{DATE}</td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>
                                <td>&nbsp;&nbsp;</td>
                                <td class="sortorder_options" style="font-size: 100%;">{POSITION}</td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>
                                <td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>
                        </tr>
                        </table>

EOT;




// Function to start a 'standard' table
function starttable($width '-1'$title ''$title_colspan '1')
{
    global 
$CONFIG;

    if (
$width == '-1'$width $CONFIG['picture_table_width'];
    if (
$width == '100%'$width $CONFIG['main_table_width'];
    if (
$title) {
        echo <<<EOT
<!-- Start standard table title -->
<table align="center" width="
$width" cellspacing="0" cellpadding="0" class="maintablea">
        <tr>
                <td>
                        <table width="100%" cellspacing="0" cellpadding="0" class="tableh1a">
                                <tr>
                                        <td><img src='themes/igames/images/box_left_icon.gif' hspace="5" alt="" /> </td>
                                        <td  class="tableh1a" width="95%">
$title</td>
                                        <td width="5%"> &nbsp; </td>
                                </tr>
                        </table>
                </td>
        </tr>
</table>
<!-- Start standard table -->
<table align="center" width="
$width" cellspacing="1" cellpadding="0" class="maintableb">

EOT;
    } else {
        echo <<<EOT

<!-- Start standard table -->
<table align="center" width="
$width" cellspacing="1" cellpadding="0" class="maintable">

EOT;
    }
}



// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>[b]<!-- Begin: AdBrite -->[/b]
<style type="text/css">
   .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #000000;}
   .adText {font: normal 10pt Arial; text-decoration: none; color: #191919;}
</style>
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=474444&br=1&col=3">
</script>
<div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=474444&afsid=1">Your Ad Here</a></div>
[b]<!-- End: AdBrite -->[/b]
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
?>


ignore the bold adbrite text i just thought it would be easier to find it.

i had it setup so that it was between the image and the filmstrip.

i need to change the theme since some of the pictures are so dark it doesn't work that good in the igames theme.