Projects ⇒ Bugs ⇒ #507: Malfunctioning "Register" block in theme.inc ⇒ CPG Dragonfly™ CMS
Bug #507 Malfunctioning "Register" block in theme.inc
Project: Dragonfly 9.0.3 -> 9.3 Category: Coppermine
Submitted: Tuesday, May 17, 2005 (05:37:21) Modified: Sunday, May 22, 2005 (20:22:23)
Status: Closed Assigned to: Trevor
PHP Version: 4.3.10 HTTPD Server: Apache 1.3

View/Vote Add Comment

by: Malediction
Description:
------------
Line 144 in html > modules > coppermine > themes > default (or any theme it seems) > theme.inc

------------------------------------------------------
if (!USER_ID || !$MAIN_CFG['member']['allowuserreg']) {
template_extract_block($template_main_menu, 'register');
}
------------------------------------------------------
this results in the Register link being persistent in the top navbar links. Had a friend take a look and his suggestion of the following seemed to result in the proper function of Register being displayed when logged out, and hidden when logged in:

------------------------------------------------------
if( ! ( 0 == USER_ID && $MAIN_CFG['member']['allowuserreg'] != 0 ) ) {
template_extract_block($template_main_menu, 'register');
}
------------------------------------------------------
by: xfsunoles
if (!USER_ID && !$MAIN_CFG['member']['allowuserreg']) {
template_extract_block($template_main_menu, 'register');
}

|| = or
&& = and
by: Trevor
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make CPG-Nuke 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español