News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Fix for nuke theme

Started by gtroll, October 01, 2003, 09:20:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

irving

I just downloaded the "new" 1.1D file and install it. I try to use the "Nuke" theme, but then the screen seems wierd. Both [Login] and [Logout] menu is shown. It still happens even though I have login. [Admin Mode] and [User Mode] also shown at the same time.

If you want to try:
http://www.irvingevajoan.com/iej/gallery.html

kegobeer

The Nuke theme, imho, leaves a lot to be desired.  Lots of coding errors.  The way to fix it is to dive into the code and change what's screwed up.  Or switch to a better designed theme.

If you really want to make it work, take a look at the default theme and borrow the menu code, minus the style references.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots


gtroll

For nuke 6.5 package:
In modules/themes/nuke/theme.php find:/*        if (USER_ID) {
                template_extract_block($template_main_menu, 'login');
        } else {
               
                template_extract_block($template_main_menu, 'logout');
                template_extract_block($template_main_menu, 'my_profile');
        }

        if (GALLERY_ADMIN_MODE || USER_ADMIN_MODE) {
                template_extract_block($template_main_menu, 'enter_admin_mode');
        } elseif (USER_CAN_CREATE_ALBUMS || USER_IS_ADMIN) {
                template_extract_block($template_main_menu, 'leave_admin_mode');
        }

        if (!USER_CAN_CREATE_ALBUMS && !USER_IS_ADMIN) {
                template_extract_block($template_main_menu, 'enter_admin_mode');
                template_extract_block($template_main_menu, 'leave_admin_mode');
        }

        if (!USER_CAN_CREATE_ALBUMS) {
                template_extract_block($template_main_menu, 'my_gallery');
        }

        if (USER_CAN_CREATE_ALBUMS) {
                template_extract_block($template_main_menu, 'my_profile');
        }
       
        if (!USER_CAN_UPLOAD_PICTURES) {
                template_extract_block($template_main_menu, 'upload_pic');
        }

        if (USER_ID || !$CONFIG['allow_user_registration']) {
                template_extract_block($template_main_menu, 'register');
        }
*/

delete the /* and */ or replace with
       if (USER_ID) {
                template_extract_block($template_main_menu, 'login');
        } else {
               
                template_extract_block($template_main_menu, 'logout');
                template_extract_block($template_main_menu, 'my_profile');
        }

        if (GALLERY_ADMIN_MODE || USER_ADMIN_MODE) {
                template_extract_block($template_main_menu, 'enter_admin_mode');
        } elseif (USER_CAN_CREATE_ALBUMS || USER_IS_ADMIN) {
                template_extract_block($template_main_menu, 'leave_admin_mode');
        }

        if (!USER_CAN_CREATE_ALBUMS && !USER_IS_ADMIN) {
                template_extract_block($template_main_menu, 'enter_admin_mode');
                template_extract_block($template_main_menu, 'leave_admin_mode');
        }

        if (!USER_CAN_CREATE_ALBUMS) {
                template_extract_block($template_main_menu, 'my_gallery');
        }

        if (USER_CAN_CREATE_ALBUMS) {
                template_extract_block($template_main_menu, 'my_profile');
        }
       
        if (!USER_CAN_UPLOAD_PICTURES) {
                template_extract_block($template_main_menu, 'upload_pic');
        }

        if (USER_ID || !$CONFIG['allow_user_registration']) {
                template_extract_block($template_main_menu, 'register');
        }

let me know if you have any problems...

viper

i tried to download it from cvs but the login does not work for me ...

cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/coppermine/ login

gives me

Logging in to :pserver:anonymous@cvs.sf.net:2401/cvsroot/coppermine/
CVS password:
cvs [login aborted]: unrecognized auth response from cvs.sf.net: M -!- Project map lookup failed ()


could you help me? i want to try your changes