From a9dfc7811118754f4f59e84d12ad5accfcb65b6b Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 15 May 2015 13:44:19 -0700 Subject: [PATCH] Styling fixes and testing-links now available when testing signup.php as MainAdmin. --- signup.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/signup.php b/signup.php index 744e0cd62..aa6ddd1a8 100644 --- a/signup.php +++ b/signup.php @@ -235,13 +235,20 @@ if(getperms('0')) // allow main admin to view signup page for design/testing. //$mes = e107::getMessage(); //$mes->debug("You are currently logged in."); - $adminMsg = LAN_SIGNUP_112; + $adminMsg = "
".LAN_SIGNUP_112."
"; if(intval($pref['user_reg']) !== 1) { - $adminMsg .= "
User registration is currently disabled"; + $adminMsg .= "
User registration is currently disabled.
"; } + $adminMsg .= "
+ Preview Activation Email + Preview After Form Submit + Send a Test Activation +
+ "; + $SIGNUP_BEGIN = "
".$adminMsg."
". $SIGNUP_BEGIN; unset($adminMsg); } @@ -461,10 +468,12 @@ class signup function renderEmailPreview() { + $ns = e107::getRender(); + $tp = e107::getParser(); $temp = array(); - $eml = render_email($temp, TRUE); // It ignores the data, anyway - echo $eml['preview']; + $eml = render_email($temp, true); // It ignores the data, anyway + $ns->tablerender('Email Preview', $tp->replaceConstants($eml['preview'],'abs')); }