Location: PHPKode > projects > Content*Builder > contentbuilder/plugins/forum/settings.inc.php
<?php
$myMedia   = new MediaManagement();
$myMedia->userID = $HTTP_SESSION_VARS[user];
$myMedia->setOptionObject($forumOption);

$forumError = false;
if(!(ADMIN & $cbPerms)) {
	$forumError = true;
}

if(isset($forumSettingEdit) && !$forumError) {
	/* 
	* Forum Einstellungen Update
	*/
	$_allowTLPosting = 0;
	if($forumAllowTLPosting == 1) {
		$_allowTLPosting = 1;
	}
	$_allowHTML = 0;
	if($forumAllowHTML == 1) {
		$_allowHTML = 1;
	}
	$_allowBBCodes = 0;
	if($forumAllowBBCodes == 1) {
		$_allowBBCodes = 1;
	}
	
	$forumOption->updateOption("isAllowedHTML", $_allowHTML);
	$forumOption->updateOption("isAllowedBBCode", $_allowBBCodes);
	$forumOption->updateOption("allow_top_level_posting", $_allowTLPosting);
	
	if(preg_match("/^([0-9]*)$/i", $forumThreadsPerPage)) {
		$forumOption->updateOption("threads_per_page", $forumThreadsPerPage);
	}
	
	$forumOption->getOptionList();
}

if(!$forumError) {
	$_displayMethod  = array();
	if($forumOption->getSingleOption("display_method") != "") {
		$_displayMethod[$forumOption->getSingleOption("display_method")] = "selected";
	}

	$tpl->assign( "forumOptions", 
		array (
			"allowTLPosting" => $forumOption->getSingleOption('allow_top_level_posting'),
			"allowBBCodes"   => $forumOption->getSingleOption('isAllowedBBCode'),
			"allowHTML"      => $forumOption->getSingleOption('isAllowedHTML'),
			"threadsPerPage" => $forumOption->getSingleOption('threads_per_page'),
			"displayMethodSelected" => $_displayMethod
		)
	);
	$tpl->assign("forumSettingForm_set", "1");
}

$mainPluginContent[]  = $tpl->fetch($config['templates']."forum.template", null, "pluginForum".$cbUserID);
$mainMessageContent[] = $tpl->fetch($config['templates']."messages.template", null, "pluginForum".$cbUserID);
?>
Return current item: Content*Builder