Advanced search  

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]

Pages: [1]   Go Down

Author Topic: adding adsense on rainy day??  (Read 7428 times)

0 Members and 1 Guest are viewing this topic.

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
adding adsense on rainy day??
« on: November 18, 2007, 04:54:41 am »

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
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: adding adsense on rainy day??
« Reply #1 on: November 18, 2007, 10:41:55 am »

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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #2 on: November 18, 2007, 03:49:30 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding adsense on rainy day??
« Reply #3 on: November 18, 2007, 05:45:58 pm »

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

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #4 on: November 19, 2007, 04:38:31 pm »

here it is , thx for your help btw.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding adsense on rainy day??
« Reply #5 on: November 19, 2007, 06:36:02 pm »

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

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #6 on: November 20, 2007, 04:04:59 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding adsense on rainy day??
« Reply #7 on: November 20, 2007, 08:10:00 am »

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)
Code: [Select]
<?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
Code: [Select]
?> of the file themes/yourtheme/theme.php:
Code: [Select]
// 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
Code: [Select]
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
and add after it (into a new line)
Code: [Select]
                                <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
Logged

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #8 on: November 20, 2007, 06:56:07 pm »

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  ?>
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding adsense on rainy day??
« Reply #9 on: November 21, 2007, 06:55:08 am »

Post the entire content of theme.php
Logged

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #10 on: November 21, 2007, 07:14:12 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding adsense on rainy day??
« Reply #11 on: November 21, 2007, 08:12:51 am »

Do as I suggested:
Post the entire content of theme.php
Logged

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #12 on: November 21, 2007, 05:17:21 pm »

Code: [Select]
<?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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding adsense on rainy day??
« Reply #13 on: November 21, 2007, 06:45:19 pm »

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

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #14 on: November 22, 2007, 06:00:17 am »

yes it is i copied it right off the server.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding adsense on rainy day??
« Reply #15 on: November 22, 2007, 08:26:56 am »

I wonder why
Quote
Your Ad Here
doesn't show through the HTML output then.
Logged

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding adsense on rainy day??
« Reply #16 on: November 25, 2007, 03:46:09 am »

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

Code: [Select]
<?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.
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 20 queries.