Empty entry in the admin menu (I_feel_dirty_V) Empty entry in the admin menu (I_feel_dirty_V)
 

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

Empty entry in the admin menu (I_feel_dirty_V)

Started by collector, December 17, 2015, 10:01:54 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

collector

Hi,

I am new to Coppermine Gallery. I would like to use the theme I_feel_dirty_v and everything looks fine (I think) but the admin menu. There is an empty entry in the first place. If I remember correctly, I first installed theme version 1.0. A week ago or so I discovered version 1.1. I installed. Then the footer was left and not in the middle anymore. I fixed this. Since the version change I also see this empty first pullet point in the admin menu and I cannot find the solution.

I redownloaded the theme version 1.1 again and used the original template. The mistake is in there. I also went to the developer websites and filled the contact form. Did not get any answer so far. (On this three credit links I couldn't not find any hint to the theme).

Can anyone help me?

My website: http://gif4free.com/

ron4mac

In the template.html file, replace:
                  <li>{ADMIN_MENU}</li>
with:
                   {ADMIN_MENU}

I think it inappropriate, though, that the Admin Menu header still shows when an admin is not logged in.

collector

Thank you so much for this hint. I didn't want to delete this li-tags, because the other menus have them also.

The title of the admin menu is still visible also for not logged in users. Do you have any idea to patch that?

ron4mac

#3
Quote from: collector on December 17, 2015, 05:40:12 PM
Do you have any idea to patch that?

Without using some tricky javascript to hide that section, the only way I see is to move all the html for that section into the theme.php file.

In theme.php, add the middle line in each of the two spots listed below.
$template_gallery_admin_menu = <<<EOT
<div class="bloque1"><h3>Admin Menu</h3><ul>
<!-- BEGIN admin_approval -->

And at the end of the same section:
<!-- END documentation -->
</ul></div>
EOT;


And in the template.html file, replace:
<div class="bloque1">
<h3>Admin Menu</h3>
<ul>
{ADMIN_MENU}
</ul>
</div>

with just:
                   {ADMIN_MENU}

collector

Heureka! Neat and clean.

Your the best! Thank you sooooo much.  :-*

It seems I decided for a not clean created theme. Bad luck.

collector

I found out, that the page editpics.php is to large (width). When I want to edit files, I can see and use the entry fields, but everything what is right of them is under the sidebar. How can I change this? Do I have to change something in the editpics.php? I could not find something that matches in the normal settings.

ron4mac

#6
We really can't provide extensive help with getting contributed themes to work the way that you would like them. They will generally be starting points for someone who is knowledgeable in PHP, HTML and CSS to tweak it to their liking. I think you can contend with this 'editpics' issue just by temporarily using a supported theme: http://gif4free.com/?theme=curve
This method sets a cookie, so to switch your browser back to your normal theme use: http://gif4free.com/?theme=xx

collector


Joe Carver

@ ron4mac - thanks for the fixes here...
(time is a short resource for me)

@ collector
The width change for admin was intended to show all
items across the width of the table(s) in the fixed width theme.

Edit theme.php as follows:

Find:
if (GALLERY_ADMIN_MODE)  {
$admin_width = <<<EOT

<style type="text/css">
.cnt {
width: 1080px;
}
.header {
width: 1080px;
}
.main {
width: 1080px;
}
</style>
EOT;

}  else  {
$admin_width = '';
}


Remove / delete it, or edit the values to fit your needs.


collector

If I had this code, I probably would have found it.  ;D But in the theme.php is no such code. I will add it and try. Thank you! If it is not working, I will change to the curve theme. I don't like to patch that much.

Thank you all anyway. I've learned something, that's cool.  :P