Hello. I just upgraded from version 1.3.5 to 1.4.4.
I used to have buttons for all the menu links (Home, Login etc etc) but now I only see text. It is unclear to me how to go back to the situation where menu buttons are displayed instead of links.
I do have this:
define('THEME_HAS_NAVBAR_GRAPHICS', 1);
in my theme...
I also don't see the stars of the rating system anymore...
does anybody have a suggestion for this?
Try providing more information - a link to your gallery, your theme.php etc.
the gallery is at www.socmail.com/gallery
the theme is as follows (I broke it into multiple posts because it was too long for one post):
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.4
$Source:
$Revision:
$Author:
$Date:
**********************************************/
define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_HAS_NAVBAR_GRAPHICS', 1);
define('THEME_HAS_FILM_STRIP_GRAPHIC', 1);
define('THEME_HAS_FILM_STRIP_GRAPHICS', 1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);
// HTML template for template sys_menu spacer
$template_sys_menu_spacer ="::";
// 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 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;
define('THEME_HAS_NO_SYS_MENU_BUTTONS', 1);
// HTML template for sys menu
$template_sys_menu = <<<EOT
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<!-- BEGIN home -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleftmy" src="themes/socmail/images/buttonleftmy.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END home -->
<!-- BEGIN my_gallery -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleftmy" src="themes/socmail/images/buttonleftmy.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft" src="themes/socmail/images/buttonleftmemb.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft" src="themes/socmail/images/buttonleft.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{MY_PROF_TGT}" title="{MY_PROF_LNK}">{MY_PROF_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END my_profile -->
<!-- BEGIN faq -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft" src="themes/socmail/images/buttonleftfaq.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleftad" src="themes/socmail/images/buttonleftad.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleftad" src="themes/socmail/images/buttonleftad.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleftup" src="themes/socmail/images/buttonleftup.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END upload_pic -->
<!-- BEGIN register -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft" src="themes/socmail/images/buttonleft.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END register -->
<!-- BEGIN login -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft" src="themes/socmail/images/buttonleft.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{LOGIN_TGT}" title="{LOGIN_LNK}">{LOGIN_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END login -->
<!-- BEGIN logout -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleftout" src="themes/socmail/images/buttonleftout.gif" width="17" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{LOGOUT_TGT}" title="{LOGOUT_LNK}">{LOGOUT_LNK}</a>
</td>
<td><img name="buttonright" src="themes/socmail/images/buttonright.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END logout -->
</tr>
</table>
EOT;
define('THEME_HAS_NO_SUB_MENU_BUTTONS', 1);
<?php
// HTML template for sub menu
$template_sub_menu = <<<EOT
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<!-- BEGIN custom_link -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END custom_link -->
<!-- BEGIN album_list -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END album_list -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{FAV_TGT}" title="{FAV_LNK}">{FAV_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/socmail/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/socmail/images/buttoncenter.gif);">
<a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/socmail/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></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 class="tableh1a"></td>
<td class="tableh1a" style="background-color:#58984E;font-style:bold;color:#FFFFFF;" width="100%">$title</td>
<td class="tableh1a"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Start standard table -->
<table align="center" width="$width" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"></td>
<td width="100%"><table width="100%" cellspacing="1" cellpadding="0" class="maintableb">
EOT;
} else {
echo <<<EOT
<!-- Start standard table -->
<table align="center" width="$width" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"></td>
<td width="100%"><table width="100%" cellspacing="1" cellpadding="0" class="maintable">
EOT;
}
}
function endtable()
{
echo <<<EOT
</table>
</td>
<td valign="top"></td>
</tr>
</table>
<!-- End standard 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}&page={PAGE}&sort=ta" title="{SORT_TA}"> + </a></span></td>
<td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=td" title="{SORT_TD}"> - </a></span></td>
<td> </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}&page={PAGE}&sort=na" title="{SORT_NA}"> + </a></span></td>
<td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=nd" title="{SORT_ND}"> - </a></span></td>
<td> </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}&page={PAGE}&sort=da" title="{SORT_DA}"> + </a></span></td>
<td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=dd" title="{SORT_DD}"> - </a></span></td>
<td> </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}&page={PAGE}&sort=pa" title="{SORT_PA}"> + </a></span></td>
<td class="sortorder_options" style="font-size: 100%;"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=pd" title="{SORT_PD}"> - </a></span></td>
</tr>
</table>
EOT;
?>
eg. http://www.socmail.com/gallery/themes/socmail/images/buttonleftmy.gif is a 404
upload your images in the appropriate dir and all should be fine
Since I had a hole bunch of customized images and none of them are appearing, yet all of them are in gallery/themes/socmail/images, I was wondering if the name of the images have changed and what the new names are...