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
-
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
-
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.
-
I have been rewriting the nuke theme, it will work better in CPG1.2-nuke...
-
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...
-
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