CB Login horizontal (in banner-position) problem

16 years 8 months ago #42976 by wolverton
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

Please Log in to join the conversation.

16 years 8 months ago #43157 by beat
Thanks for reporting this, we will fix in next CB version.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.209 seconds

Facebook Twitter LinkedIn