ALTER TABLE `bb_forums` ADD `forum_url` TEXT NOT NULL AFTER `forum_desc`
$cat_title_html = $forums['cat_title_html'];
$forum_name_html = $forums['forum_name_html'];
$forum_url = $forums['forum_url'];
if (!$fname_html =& $forum_name_html[$fid])
{
continue;
}
$furl =& $forum_url[$fid];
'FORUM_ID' => $fid,
'FORUM_NAME' => $fname_html,
'FORUM_URL' => $furl,
<h4 class="forumlink"><a href="{FORUM_URL}{c.f.FORUM_ID}">{c.f.FORUM_NAME}</a></h4>
<!-- IF c.f.FORUM_URL -->
<h4 class="forumlink"><a href="{c.f.FORUM_URL}">{c.f.FORUM_NAME}</a></h4>
<!-- ELSE -->
<h4 class="forumlink"><a href="{FORUM_URL}{c.f.FORUM_ID}">{c.f.FORUM_NAME}</a></h4>
<!-- ENDIF -->
'cat_title_html' => array(),
'forum_name_html' => array(),
'forum_url' => array(),
$data['f'][$fid] = array_intersect_key($row, $forum_store_fields);
$data['forum_name_html'][$fid] = htmlCHR($row['forum_name']);
$data['forum_url'][$fid] = htmlCHR($row['forum_url']);
$lang['FORUM_DESC'] = 'Описание';
$lang['FORUM_URL'] = 'Внешняя ссылка';
<tr>
<td class="row1">{L_FORUM_DESC}</td>
<td class="row2"><textarea style="width: 96%;" rows="2" wrap="virtual" name="forumdesc" class="post">{DESCRIPTION}</textarea></td>
</tr>
<tr>
<td class="row1">{L_FORUM_URL}</td>
<td class="row2"><textarea style="width: 96%;" rows="2" wrap="virtual" name="forumurl" class="post">{FORUMURL}</textarea></td>
</tr>
$forumname = $row['forum_name'];
$forumdesc = $row['forum_desc'];
$forumurl = $row['forum_url'];
'FORUM_NAME' => htmlCHR($forumname),
'DESCRIPTION' => htmlCHR($forumdesc),
'FORUMURL' => htmlCHR($forumurl),
$forum_name = DB()->escape(trim($_POST['forumname']));
$forum_desc = DB()->escape(trim($_POST['forumdesc']));
$forum_url = DB()->escape(trim($_POST['forumurl']));
$columns = ' forum_name, cat_id, forum_desc, forum_order, forum_status, prune_days, forum_parent, show_on_index, forum_display_sort, forum_display_order, forum_tpl_id, allow_reg_tracker, allow_porno_topic, self_moderated'. $field_sql;
$values = "'$forum_name', $cat_id, '$forum_desc', $forum_order, $forum_status, $prune_days, $forum_parent, $show_on_index, $forum_display_sort, $forum_display_order, $forum_tpl_id, $allow_reg_tracker, $allow_porno_topic, $self_moderated". $value_sql;
$columns = ' forum_name, cat_id, forum_desc, forum_url, forum_order, forum_status, prune_days, forum_parent, show_on_index, forum_display_sort, forum_display_order, forum_tpl_id, allow_reg_tracker, allow_porno_topic, self_moderated'. $field_sql;
$values = "'$forum_name', $cat_id, '$forum_desc', '$forum_url', $forum_order, $forum_status, $prune_days, $forum_parent, $show_on_index, $forum_display_sort, $forum_display_order, $forum_tpl_id, $allow_reg_tracker, $allow_porno_topic, $self_moderated". $value_sql;
<h4 class="forumlink"><a href="{c.f.FORUM_URL}">{c.f.FORUM_NAME}</a></h4>
<h4 class="forumlink"><a target="_blank" href="{c.f.FORUM_URL}">{c.f.FORUM_NAME}</a></h4>