Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fix for nuke theme  (Read 11146 times)

0 Members and 1 Guest are viewing this topic.

irving

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Fix for nuke theme
« 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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Fix for nuke theme
« Reply #1 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.
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Fix for nuke theme
« Reply #2 on: October 01, 2003, 09:24:40 pm »

I have been rewriting the nuke theme,  it will work better in CPG1.2-nuke...

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Fix for nuke theme
« Reply #3 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...

viper

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Fix for nuke theme
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.