Missing Upload menu on igames theme Missing Upload menu on igames theme
 

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

Missing Upload menu on igames theme

Started by jtothek3030, March 07, 2007, 09:51:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jtothek3030

Hi, I'm not sure what i did, but my upload photo button that was on the @ menu disappeared.  I searched relevant threads but could get none of the fixes to work correctly.  How can i put the upload image button back under @ menu? Thanks
The relevant (i think) section of my igames theme.php is:

// 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 java '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 -->
<!-- BEGIN album_list -->
<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>
<!-- END album_list -->
<!-- BEGIN sys_menu -->
<td class="top_menu_bttn">
<a href="javascript:;" onmouseover="MM_showHideLayers('SYS_MENU','','show')">Home/Upload</a>
</td>
<td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
<!-- END sys_menu -->
<!-- BEGIN lastup -->
<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>
<!-- END lastup -->
<!-- BEGIN lastcom -->
<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>
<!-- END lastcom -->
<!-- BEGIN topn -->
<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>
<!-- END topn -->
<!-- BEGIN toprated -->
<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>
<!-- END toprated -->
<!-- BEGIN favpics -->
<td class="top_menu_bttn">
<a href="{FAV_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{FAV_LNK}">{FAV_LNK}</a>
</td>
<td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
<!-- END favpics -->
<!-- BEGIN search -->
<td class="top_menu_right_bttn">
<a href="{SEARCH_TGT}" onmouseover="MM_showHideLayers('SYS_MENU','','hide')" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<!-- END search -->
<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><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;

Joachim Müller

Post a link to your coppermine-driven gallery for a start.

jtothek3030

the missing upload file button was under the @ menu (changed wording to home/upload)
at 4wiis.com

Joachim Müller


jtothek3030

no, sorry for my wording.  when i say the missing upload file button "was" under the home/upload button i mean to say that that was where it was past-tense.  I've made two changes (added capcha, changed custom link button to new page) to my gallery and during one of the changes the upload file button disappeared, and i dont know how to put it back.
thanks

Joachim Müller

Zip your custom theme and then attach it to your posting (using "additional options" when composing your message)

jtothek3030

so i hope this is ok, im attaching zip of igames theme saved as txt files. 

Joachim Müller

Your theme is OK. The upload button is only being displayed if the visitor has upload permissions. You apparently tested with a visitor/user who doesn't have upload privileges. Check your groups panel and make sure that the user you test with has upload permissions and everything should work as expected.

Another suggestion: when creating a custom theme it is recommended to change the name to something unique - keeping the theme name you based your work upon is not a good idea, as it might result in issues when upgrading. So I changed your theme name from "igames" to "4wiis" and changed reference within the files. I attached your "new" theme. Just download the zip, unpack it (preserving the folder structure), copy it into your themes folder and change to your new theme by going to your config page and choosing "4wiis" as new standard.
It wouldn't have been necessary to rename the files before zipping them, just made things harder. After having a look at what you say is your theme on my local test bed and your live site it seems that the themes differ, so I suggest reviewing the code changes.

Cheers

Joachim

P.S. Your editor appears to be cropping all leading spaces in lines, which makes the code harder to read and is not recommended.

jtothek3030

ok, that was a dumb mistake by me, i had forgot that i had taken off permissions for guests to upload after receiving a few nasty pictures, and forgot to put it back.  Thanks for all the help.
cheers