From cc8eefd5ff64da3a593afc082c17236cf8ee2ded Mon Sep 17 00:00:00 2001 From: Cameron <cameron@e107coders.org> Date: Thu, 7 Feb 2013 09:49:48 -0800 Subject: [PATCH] Minor GUI improvements to signup page --- e107_core/shortcodes/batch/signup_shortcodes.php | 5 +++++ e107_themes/templates/signup_template.php | 2 +- signup.php | 6 ++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/e107_core/shortcodes/batch/signup_shortcodes.php b/e107_core/shortcodes/batch/signup_shortcodes.php index c3cca68d2..c282daabb 100755 --- a/e107_core/shortcodes/batch/signup_shortcodes.php +++ b/e107_core/shortcodes/batch/signup_shortcodes.php @@ -318,6 +318,11 @@ class signup_shortcodes extends e_shortcode $done_heading = FALSE; + if(!count($extList)) + { + continue; + } + foreach($extList as $ext) { if($ext['user_extended_struct_required'] == 1 || $ext['user_extended_struct_required'] == 2) diff --git a/e107_themes/templates/signup_template.php b/e107_themes/templates/signup_template.php index 2a2b44b43..2be315671 100755 --- a/e107_themes/templates/signup_template.php +++ b/e107_themes/templates/signup_template.php @@ -236,7 +236,7 @@ if(!defined($SIGNUP_BODY)) {SIGNUP_IMAGECODE} <tr style='vertical-align:top'> <td class='forumheader' colspan='2' style='text-align:center'> - <input class='button btn' type='submit' name='register' value=\"".LAN_SIGNUP_79."\" /> + <input class='button btn btn-success' type='submit' name='register' value=\"".LAN_SIGNUP_79."\" /> <br /> </td> </tr> diff --git a/signup.php b/signup.php index 93aa974ef..f6f977ab2 100644 --- a/signup.php +++ b/signup.php @@ -177,7 +177,7 @@ if((e_QUERY == 'resend') && !USER && ($pref['user_reg_veri'] == 1)) $text .="<tr style='vertical-align:top'> <td colspan='2' style='text-align:center' class='forumheader'>"; - $text .= "<input class='button' type='submit' name='submit_resend' value=\"".LAN_SIGNUP_47."\" />"; // resend activation email. + $text .= "<input class='btn button' type='submit' name='submit_resend' value=\"".LAN_SIGNUP_47."\" />"; // resend activation email. $text .= "</td> </tr> </table> @@ -287,9 +287,7 @@ if(getperms('0')) // allow main admin to view signup page for design/testing. { //$mes = e107::getMessage(); //$mes->debug("You are currently logged in."); - $SIGNUP_BEGIN = "<div class='s-message'> - <div class='error'> You are currently logged in. - </div></div>". $SIGNUP_BEGIN; + $SIGNUP_BEGIN = "<div class='alert alert-block alert-error'> You are currently logged in.</div>". $SIGNUP_BEGIN; }