Having Admin-removing-problem Having Admin-removing-problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Having Admin-removing-problem

Started by fotovanderwulp, July 04, 2006, 08:17:29 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

fotovanderwulp

Hello,

I am sorry if my English is bad but I am from the Netherlands.

First of all I want to say that I think that Coppermine is an awsome script!

But now my problem:

I have tried almost everything (changing the codes in the theme.php, template.html, plugins, etc....)
I have read many topics on this form about the problem of removing the admin link, I also tried several suggestions but nothing worked.

My problem is that I want to remove the admin (text) where the submenu appears (when logged in), but I can't.
I wan't to login through login.php and then see the index.php + admin menu. But when I am not logged in I don't want to see 'admin'.

My site is: http://www.fotovanderwulp.nl/

Hopefully you can help me, because I am almost losing hope.

Sami

this is theme issue
you are using custom theme and it has a admin as a text
please zip your theme and post it here to check it
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

#2
The "Admin" text is in your template.html. Look in the menu list and right above {ADMIN_MENU}, you will find the text "Admin". Remove this text and all will be well. You may get a bullet at that position as it's holding the menu position and may be difficult to remove but shouldn't distract from the layout.

Gizmo
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Gizmo

I've been thinking about this bullet issue and here's a solution if you so desire (I dislike sloppy solutions.  ;)). This looks like a modified Reynolds theme so hopefully this will be straight forward for you.

In your template.html file, delete these lines:

        <li>
            Admin
            {ADMIN_MENU}
        </li>


and add the {ADMIN_MENU} tag above the {GALLERY} tag such as:

<div id="content">
    <div class="innerdiv">
        {ADMIN_MENU}
        {GALLERY}
    </div>
</div>


Now in your theme.php file, delete these lines:

// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT

                    <ul>
<!-- BEGIN admin_approval -->
                            <li id="admin_menu_anim"><a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}" class="navmenu">{UPL_APP_LNK}</a></li>
<!-- END admin_approval -->
                            <li><a href="admin.php" title="{ADMIN_TITLE}" class="navmenu">{ADMIN_LNK}</a></li>
                            <li><a href="catmgr.php" title="{CATEGORIES_TITLE}" class="navmenu">{CATEGORIES_LNK}</a></li>
                            <li><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}" class="navmenu">{ALBUMS_LNK}</a></li>
                            <li><a href="groupmgr.php" title="{GROUPS_TITLE}" class="navmenu">{GROUPS_LNK}</a></li>
                            <li><a href="usermgr.php" title="{USERS_TITLE}" class="navmenu">{USERS_LNK}</a></li>
                            <li><a href="banning.php" title="{BAN_TITLE}" class="navmenu">{BAN_LNK}</a></li>
                            <li><a href="reviewcom.php" title="{COMMENTS_TITLE}" class="navmenu">{COMMENTS_LNK}</a></li>
<!-- BEGIN log_ecards -->
                            <li><a href="db_ecard.php" title="{DB_ECARD_TITLE}" class="navmenu">{DB_ECARD_LNK}</a></li>
<!-- END log_ecards -->
                            <li><a href="picmgr.php" title="{PICTURES_TITLE}" class="navmenu">{PICTURES_LNK}</a></li>
                            <li><a href="searchnew.php" title="{SEARCHNEW_TITLE}" class="navmenu">{SEARCHNEW_LNK}</a></li>
                            <li><a href="util.php" title="{UTIL_TITLE}" class="navmenu">{UTIL_LNK}</a></li>
                            <li><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}" class="navmenu">{MY_PROF_LNK}</a></li>
<!-- BEGIN documentation -->
                            <li><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation" class="navmenu">{DOCUMENTATION_LNK}</a></li>
<!-- END documentation -->
                    </ul>

EOT;


Now instead of having an empty bullet in the menu list and the admin menu being so long, it will appear at the top of the gallery when you're logged in and be hidden when you're not. Something like the attached screenshot.

Hope this helps.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

fotovanderwulp

Thank you so much!

I changed the settings and it worked.
I don't know how to thank you.

I appreciate your help!