coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: santosh_iit32 on January 03, 2007, 03:33:14 PM

Title: remove 'My profile and Logout [username]'
Post by: santosh_iit32 on January 03, 2007, 03:33:14 PM
I know this has been made sticky but that doesn't seem to solve my problem!!

I have installed Final Extract and using it succesfully but the menus "My profile :: Logout [username]" remains and there's no option to remove it from the final extract plugin?

I uses the classic theme and there's nothing to edit in the theme.php! and as mentioned earlier in the sticky that we must not edit include/theme.nic.php! what shall I do to remove this 2 menus? thank you.
Title: Re: remove 'My profile and Logout [username]'
Post by: Gizmo on January 04, 2007, 03:03:25 AM
Do not edit themes.inc.php for any reason. Now I'm a bit confused as to why you want to remove the "logout" button since it only shows when you're logged in. Do you not want to have a button to log you out or do you wish to stay logged in at all times?

To remove the "My Profile" button, if you don't have $template_gallery_admin_menu in your theme.php, copy if from the sample theme.php and paste it into yours. Remove the line <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td> then upload to your site.


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

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

EOT;
Title: Re: remove 'My profile and Logout [username]'
Post by: santosh_iit32 on January 04, 2007, 02:57:31 PM
my theme has nothing but this!! where shall I put those codes?
<?php
define
('THEME_IS_XHTML10_TRANSITIONAL',1);
?>
Title: Re: remove 'My profile and Logout [username]'
Post by: Gizmo on January 05, 2007, 12:59:19 AM
Before the ?>. Maybe check out this sticky before editing or creating themes - http://forum.coppermine-gallery.net/index.php?topic=24056.0 (http://forum.coppermine-gallery.net/index.php?topic=24056.0).