forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: collector on December 17, 2015, 10:01:54 am

Title: Empty entry in the admin menu (I_feel_dirty_V)
Post by: collector on December 17, 2015, 10:01:54 am
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/
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: ron4mac on December 17, 2015, 04:49:43 pm
In the template.html file, replace:
Code: [Select]
                  <li>{ADMIN_MENU}</li>with:
Code: [Select]
                   {ADMIN_MENU}
I think it inappropriate, though, that the Admin Menu header still shows when an admin is not logged in.
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: collector on December 17, 2015, 05:40:12 pm
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?
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: ron4mac on December 17, 2015, 06:22:21 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.
Code: [Select]
$template_gallery_admin_menu = <<<EOT
<div class="bloque1"><h3>Admin Menu</h3><ul>
<!-- BEGIN admin_approval -->
And at the end of the same section:
Code: [Select]
<!-- END documentation -->
</ul></div>
EOT;

And in the template.html file, replace:
Code: [Select]
<div class="bloque1">
<h3>Admin Menu</h3>
<ul>
{ADMIN_MENU}
</ul>
</div>
with just:
Code: [Select]
                   {ADMIN_MENU}
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: collector on December 18, 2015, 05:38:12 pm
Heureka! Neat and clean.

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

It seems I decided for a not clean created theme. Bad luck.
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: collector on December 18, 2015, 07:09:15 pm
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.
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: ron4mac on December 18, 2015, 07:55:39 pm
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
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: collector on December 19, 2015, 03:54:25 pm
I understand that. Thanks for your help.
Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: Joe Carver on December 19, 2015, 04:50:43 pm
@ 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:
Code: [Select]
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.

Title: Re: Empty entry in the admin menu (I_feel_dirty_V)
Post by: collector on December 19, 2015, 07:03:24 pm
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