1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 23:26:41 +02:00

Possible forum upgrade fix

This commit is contained in:
Cameron
2013-03-23 04:16:05 -07:00
parent 6188edd013
commit 82e912bfac

View File

@@ -167,19 +167,21 @@ function step2()
} }
else else
{ {
$text = "<form method='post' action='".e_SELF."?step=4'> $text = "<form method='post' action='".e_SELF."?step=3'>
<input class='btn button' type='submit' name='nextStep[4]' value='Proceed to step 3' /> <input class='btn button' type='submit' name='nextStep[3]' value='Proceed to step 3' />
</form>"; </form>";
} }
$ns->tablerender('Step 2: Forum table creation', $mes->render(). $text); $ns->tablerender('Step 2: Forum table creation', $mes->render(). $text);
} }
// DEPRECATED - Done automatically via plugin-class. // FIXME - use e107::getPlugin()->manage_extended_field('add', $name, $attrib, $source)
/*
function step3() function step3()
{ {
$e107 = e107::getInstance(); $e107 = e107::getInstance();
$ns = e107::getRender();
$stepCaption = 'Step 3: Extended user field creation'; $stepCaption = 'Step 3: Extended user field creation';
if(!isset($_POST['create_extended'])) if(!isset($_POST['create_extended']))
{ {
@@ -192,15 +194,19 @@ function step3()
<input class='btn button' type='submit' name='create_extended' value='Proceed with field creation' /> <input class='btn button' type='submit' name='create_extended' value='Proceed with field creation' />
</form> </form>
"; ";
$e107->ns->tablerender($stepCaption, $text);
$ns->tablerender($stepCaption, $text);
return; return;
} }
require_once(e_HANDLER.'user_extended_class.php'); require_once(e_HANDLER.'user_extended_class.php');
$ue = new e107_user_extended; $ue = new e107_user_extended;
$fieldList = array( $fieldList = array(
'plugin_forum_posts' => EUF_INTEGER, 'plugin_forum_posts' => EUF_INTEGER,
'plugin_forum_viewed' => EUF_TEXTAREA 'plugin_forum_viewed' => EUF_TEXTAREA
); );
$failed = false; $failed = false;
foreach($fieldList as $fieldName => $fieldType) foreach($fieldList as $fieldName => $fieldType)
{ {
@@ -216,6 +222,7 @@ function step3()
$failed = true; $failed = true;
} }
} }
if($failed) if($failed)
{ {
$text .= ' $text .= '
@@ -227,15 +234,16 @@ function step3()
{ {
$text .= " $text .= "
<br /><br /> <br /><br />
<form method='post'> <form method='post' action='".e_SELF."?step=4'>
<input class='btn button' type='submit' name='nextStep[4]' value='Proceed to step 4' /> <input class='btn button' type='submit' name='nextStep[4]' value='Proceed to step 4' />
</form> </form>
"; ";
} }
$e107->ns->tablerender($stepCaption, $text);
$ns->tablerender($stepCaption, $text);
} }
*/
function step4() function step4()
{ {
global $pref; global $pref;