Error code UberCMS Frontpage

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jun 9, 2011
Messages
30
Reaction score
7
Step 1: Go to inc/tpl/page-fp.tpl
Search for:
PHP:
<form id="loginformitem" name="loginformitem" action="%www%/account/submit"          method="post">
Or something like that.

Step 2:
Add below it:
PHP:
 %login_result%

Step 3:
Go to index.php
Add this code(or change the code that's similar to this):

PHP:
if (count($errors) > 0)
	{
		$loginResult = '<div id="site-header"><div id="loginerrorfield"><div id="loginerrorfieldtest" class="hint">';

		foreach ($errors as $err)
		{
			$loginResult .= $err;
		}

		$loginResult .= '</div></div></div>';

		$frontpage->SetParam('login_result', $loginResult);
	}

Credits:
Me - Creating code
Sulake Webdevelopers - For creating the error div's
Meth0d - The great uberemu god :)
 
Status
Not open for further replies.
Back