Community builder Login Module 1.0.1 (and 1.1)
When we set CbLogin horizontally/compact in the banner (yt_switch theme), Login style is correct. When a User logs in, the Welcome message and Logout button appear off the page to the left of the logo. This happens because an unwanted division is made due to 2 missing “if ( !$horizontal )" switches in \modules\mod_cblogin.php
Old Line 169(180 in 1.1): echo '<div style="width:100%; overflow: hidden; padding:0px; border-width:0px; margin:0px;">'."\n";
New Line 169(180 in 1.1): if ( !$horizontal ) { echo '<div style="width:100%; overflow: hidden; padding:0px; border-width:0px; margin:0px;">'."\n"; }
Old line 392(405 in 1.1): echo "</form></div>";
New Line 392(405 in 1.1): echo "</form>"; if ( !$horizontal ) echo "</div>";
Welcome message and Logout button will now appear where they should be.
Post edited by: wolverton, at: 2007/08/15 04:31
Post edited by: wolverton, at: 2007/08/15 04:38
Post edited by: wolverton, at: 2007/08/15 05:14