forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: irving on October 01, 2003, 09:20:05 am

Title: Fix for nuke theme
Post by: irving on October 01, 2003, 09:20:05 am
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
Title: Fix for nuke theme
Post by: kegobeer on October 01, 2003, 07:41:35 pm
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.
Title: Fix for nuke theme
Post by: gtroll on October 01, 2003, 09:24:40 pm
I have been rewriting the nuke theme,  it will work better in CPG1.2-nuke...
Title: Fix for nuke theme
Post by: gtroll on October 16, 2003, 03:40:20 am
For nuke 6.5 package:
In modules/themes/nuke/theme.php find:
Code: [Select]
/*        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
Code: [Select]
       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...
Title: Fix for nuke theme
Post by: viper on November 01, 2003, 01:12:30 pm
i tried to download it from cvs but the login does not work for me ...
Code: [Select]

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

gives me
Code: [Select]

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