mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Forum language-file cleanup.
This commit is contained in:
parent
552d113ce0
commit
05637a4422
@ -780,7 +780,7 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
$array_sub_functions = array();
|
||||
$array_sub_functions[17][] = array(e_ADMIN.'newspost.php', LAN_MANAGE, ADLAN_3, 'H', 3, E_16_MANAGE, E_32_MANAGE);
|
||||
$array_sub_functions[17][] = array(e_ADMIN.'newspost.php?create', LAN_CREATE, ADLAN_2, 'H', 3, E_16_CREATE, E_32_CREATE);
|
||||
$array_sub_functions[17][] = array(e_ADMIN.'newspost.php?pref', LAN_PREFS, ADLAN_4, 'H', 3, E_16_SETTINGS, E_32_SETTINGS);
|
||||
$array_sub_functions[17][] = array(e_ADMIN.'newspost.php?pref', LAN_PREFS, LAN_PREFS, 'H', 3, E_16_SETTINGS, E_32_SETTINGS);
|
||||
|
||||
return $array_sub_functions;
|
||||
}
|
||||
@ -810,8 +810,8 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
16 => array(e_ADMIN_ABS.'meta.php', ADLAN_66, ADLAN_67, 'T', 1, E_16_META, E_32_META),
|
||||
17 => array(e_ADMIN_ABS.'newspost.php', ADLAN_0, ADLAN_1, 'H|N|7', 3, E_16_NEWS, E_32_NEWS),
|
||||
18 => array(e_ADMIN_ABS.'phpinfo.php', ADLAN_68, ADLAN_69, '0', 20, E_16_PHP, E_32_PHP),
|
||||
19 => array(e_ADMIN_ABS.'prefs.php', ADLAN_4, ADLAN_5, '1', 1, E_16_PREFS, E_32_PREFS),
|
||||
20 => array(e_ADMIN_ABS.'search.php', ADLAN_142, ADLAN_143, 'X', 1, E_16_SEARCH, E_32_SEARCH),
|
||||
19 => array(e_ADMIN_ABS.'prefs.php', LAN_PREFS, ADLAN_5, '1', 1, E_16_PREFS, E_32_PREFS),
|
||||
20 => array(e_ADMIN_ABS.'search.php', LAN_SEARCH, ADLAN_143, 'X', 1, E_16_SEARCH, E_32_SEARCH),
|
||||
21 => array(e_ADMIN_ABS.'admin_log.php', ADLAN_155, ADLAN_156, 'S', 4, E_16_ADMINLOG, E_32_ADMINLOG),
|
||||
22 => array(e_ADMIN_ABS.'theme.php', ADLAN_140, ADLAN_141, '1', 5, E_16_THEMEMANAGER, E_32_THEMEMANAGER),
|
||||
23 => array(e_ADMIN_ABS.'upload.php', ADLAN_72, ADLAN_73, 'V', 3, E_16_UPLOADS, E_32_UPLOADS),
|
||||
|
@ -46,6 +46,8 @@ define("EMESSLAN_TITLE_SUCCESS", "Success");
|
||||
define("EMESSLAN_TITLE_WARNING", "Warning");
|
||||
define("EMESSLAN_TITLE_DEBUG", "System Debug");
|
||||
|
||||
define("LAN_EDIT","Edit");
|
||||
define("LAN_DELETE","Delete");
|
||||
define("LAN_MORE", "More..");
|
||||
define("LAN_READ_MORE", "Read more..");
|
||||
define("LAN_GOPAGE", "Go to page");
|
||||
@ -65,6 +67,10 @@ define("LAN_INVALID_CODE", "Incorrect code entered.");
|
||||
define("LAN_SEARCH", "Search");
|
||||
define("LAN_SHARE", "Share");
|
||||
define("LAN_BACK", "Back");
|
||||
define("LAN_NAME", "Name");
|
||||
define("LAN_CANCEL","Cancel");
|
||||
define("LAN_DATE","Date");
|
||||
define("LAN_JSCONFIRM","Are you sure?");
|
||||
|
||||
|
||||
?>
|
@ -11,7 +11,7 @@ define("ADLAN_1", "Manage news items");
|
||||
define("ADLAN_2", "Create news item");
|
||||
define("ADLAN_3", "News items List");
|
||||
define("ADLAN_3a", "News Settings");
|
||||
define("ADLAN_4", "Preferences");
|
||||
// define("ADLAN_4", "Preferences");
|
||||
define("ADLAN_5", "Edit Site Preferences");
|
||||
define("ADLAN_6", "Menu Manager");
|
||||
define("ADLAN_7", "Alter the order of your menus");
|
||||
@ -115,7 +115,7 @@ define("ADLAN_106", "Image Settings");
|
||||
define("ADLAN_110", "Registered members");
|
||||
define("ADLAN_111", "Unverified members");
|
||||
define("ADLAN_112", "Banned users");
|
||||
define("ADLAN_113", "Forum posts");
|
||||
// define("ADLAN_113", "Forum posts"); // should already be loaded from forum global language file.
|
||||
define("ADLAN_114", "Comments");
|
||||
define("ADLAN_115", "Chatbox posts");
|
||||
define("ADLAN_116", "Admin log ...");
|
||||
@ -154,7 +154,7 @@ define("ADLAN_139", "Add/edit/delete links");
|
||||
define("ADLAN_140", "Theme Manager");
|
||||
define("ADLAN_141", "Install / set themes etc");
|
||||
|
||||
define("ADLAN_142", "Search");
|
||||
// define("ADLAN_142", "Search");
|
||||
define("ADLAN_143", "Search Configuration");
|
||||
define("ADLAN_144", "You are in simple-view mode, to switch to advanced-view");
|
||||
define("ADLAN_145", "click here");
|
||||
@ -216,8 +216,7 @@ define("ADLAN_ERR_3", "There are one or more files in your public upload directo
|
||||
|
||||
|
||||
// Common Terms
|
||||
define("LAN_EDIT","Edit");
|
||||
define("LAN_DELETE","Delete");
|
||||
|
||||
define("LAN_CREATE","Create");
|
||||
define("LAN_MANAGE","Manage");
|
||||
define("LAN_UPDATE","Update");
|
||||
@ -227,7 +226,7 @@ define("LAN_SAVED","Saved");
|
||||
define("LAN_SETSAVED","Your settings have been saved");
|
||||
define("LAN_NOCHANGE_NOTSAVED", "Nothing changed - not saved");
|
||||
define("LAN_CONFIRMDEL","Please confirm you wish to delete");
|
||||
define("LAN_JSCONFIRM","Are you sure?");
|
||||
|
||||
define("LAN_OPTIONS","Options");
|
||||
define("LAN_PREFS","Preferences");
|
||||
define("LAN_DELETED","Successfully deleted");
|
||||
@ -245,20 +244,20 @@ define("LAN_RESET","Reset");
|
||||
define("LAN_CLEAR","Clear");
|
||||
// define("LAN_OK","OK"); // defined in e107_languages/English/English.php
|
||||
|
||||
define("LAN_PRESET","Preset");
|
||||
define("LAN_PRESET_SAVED","Preset saved successfully");
|
||||
// define("LAN_PRESET","Preset");
|
||||
// define("LAN_PRESET_SAVED","Preset saved successfully");
|
||||
|
||||
define("LAN_PRESET_DELETED","Preset successfully deleted");
|
||||
define("LAN_PRESET_CONFIRMDEL","Are you sure you want to delete this preset?");
|
||||
// define("LAN_PRESET_DELETED","Preset successfully deleted");
|
||||
// define("LAN_PRESET_CONFIRMDEL","Are you sure you want to delete this preset?");
|
||||
define("LAN_NOTWRITABLE"," is not writable, you need to CHMOD 777 the file or folder first.");
|
||||
define("LAN_DATE","Date");
|
||||
|
||||
define("LAN_TIME","Time");
|
||||
// define("LAN_YES","Yes");
|
||||
// define("LAN_NO","No"); // defined in e107_languages/English/English.php
|
||||
define("LAN_EMPTY","There are no entries in the database yet");
|
||||
define("LAN_EXISTING","Existing Entries");
|
||||
|
||||
define("LAN_CANCEL","Cancel");
|
||||
|
||||
define("LAN_CONFDELETE","Confirm Delete");
|
||||
define("LAN_PLUGIN","Plugin");
|
||||
define("LAN_ORDER","Order");
|
||||
@ -320,7 +319,7 @@ define("LAN_STATUS", "Status");
|
||||
define("LAN_URL", "URL");
|
||||
define("LAN_USER", "User");
|
||||
define("LAN_OWNER", "Owner");
|
||||
define("LAN_NAME", "Name");
|
||||
|
||||
define("LAN_EMAIL","Email address");
|
||||
define("LAN_ID", "ID");
|
||||
define("LAN_IP", "IP Address");
|
||||
|
@ -17,7 +17,7 @@ class forum_dashboard // include plugin-folder in the name.
|
||||
$forum_posts = $sql->count('forum_post');
|
||||
|
||||
$var[0]['icon'] = E_16_FORUM;
|
||||
$var[0]['title'] = ADLAN_113;
|
||||
$var[0]['title'] = LAN_PLUGIN_FORUM_POSTS;
|
||||
$var[0]['url'] = e_PLUGIN."forum/forum_admin.php";
|
||||
$var[0]['total'] = $forum_posts;
|
||||
|
||||
|
@ -7,6 +7,6 @@ e107::lan('forum', 'English_front');
|
||||
/**
|
||||
* @todo - extend array to allow selection of any main forum, as well as the forum front page
|
||||
*/
|
||||
$front_page['forum'] = array('page' => $PLUGINS_DIRECTORY.'forum/forum.php', 'title' => LAN_FORUM_0001);
|
||||
$front_page['forum'] = array('page' => $PLUGINS_DIRECTORY.'forum/forum.php', 'title' => LAN_PLUGIN_FORUM_NAME);
|
||||
|
||||
?>
|
@ -64,7 +64,7 @@ class forum_notify extends notify
|
||||
function forum_nt($data)
|
||||
{
|
||||
$message = 'todo';
|
||||
$this->send('forum_nt', FORUM_NT_6, $message);
|
||||
$this->send('forum_nt', LAN_PLUGIN_FORUM_NAME, $message);
|
||||
}
|
||||
|
||||
function forum_ntp($data)
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
if (!defined('e107_INIT')) { exit(); }
|
||||
|
||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_search.php'); // FIXME needs changing after forum lan rewrite
|
||||
//include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_search.php'); // FIXME needs changing after forum lan rewrite
|
||||
|
||||
$search_info[] = array(
|
||||
'sfile' => e_PLUGIN.'forum/search/search_parser.php',
|
||||
'qtype' => FOR_SCH_LAN_1,
|
||||
'qtype' => LAN_PLUGIN_FORUM_NAME,
|
||||
'refpage' => 'forum',
|
||||
'advanced' => e_PLUGIN.'forum/search/search_advanced.php',
|
||||
'id' => 'forum'
|
||||
|
@ -62,7 +62,7 @@ if(isset($_GET['f']))
|
||||
$fVars = new e_vars;
|
||||
$gen = new convert;
|
||||
|
||||
$fVars->FORUMTITLE = LAN_FORUM_0001;
|
||||
$fVars->FORUMTITLE = LAN_PLUGIN_FORUM_NAME;
|
||||
$fVars->THREADTITLE = LAN_FORUM_0002;
|
||||
$fVars->REPLYTITLE = LAN_FORUM_0003;
|
||||
$fVars->LASTPOSTITLE = LAN_FORUM_0004;
|
||||
@ -251,7 +251,7 @@ $newflag_list = $forum->forumGetUnreadForums();
|
||||
|
||||
if (!$forumList)
|
||||
{
|
||||
$ns->tablerender(LAN_FORUM_0001, "<div style='text-align:center'>".LAN_FORUM_0067.'</div>', array('forum', '51'));
|
||||
$ns->tablerender(LAN_PLUGIN_FORUM_NAME, "<div style='text-align:center'>".LAN_FORUM_0067.'</div>', array('forum', '51'));
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
}
|
||||
@ -552,7 +552,7 @@ function forum_rules($action = 'check')
|
||||
{
|
||||
$rules_text = LAN_FORUM_0072;
|
||||
}
|
||||
e107::getRender()->tablerender(LAN_FORUM_0071, "<div style='text-align:center'>{$rules_text}</div>", array('forum', 'forum_rules'));
|
||||
e107::getRender()->tablerender(LAN_FORUM_0016, "<div style='text-align:center'>{$rules_text}</div>", array('forum', 'forum_rules'));
|
||||
}
|
||||
|
||||
?>
|
@ -11,6 +11,7 @@
|
||||
$eplug_admin = true;
|
||||
require_once('../../class2.php');
|
||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_admin.php');
|
||||
e107::lan('forum','front');
|
||||
|
||||
if (!getperms('P'))
|
||||
{
|
||||
@ -157,7 +158,7 @@ if(isset($_POST['update_subs']))
|
||||
{
|
||||
if ($sql->delete("forum", "forum_id='$id' "))
|
||||
{
|
||||
$msg .= FORLAN_150." ". LAN_ID.":"." ".$id." ".LAN_DELETED."<br />";
|
||||
$msg .= LAN_FORUM_1002." ". LAN_ID.":"." ".$id." ".LAN_DELETED."<br />";
|
||||
$cnt = $sql->delete("forum_thread", "thread_forum_id = {$id}");
|
||||
$msg .= $cnt." ".FORLAN_152." ".LAN_DELETED."<br />";
|
||||
}
|
||||
@ -169,7 +170,7 @@ if(isset($_POST['update_subs']))
|
||||
$_order = (int)$_POST['suborder'][$id];
|
||||
if($sql->update('forum', "forum_name='{$_name}', forum_description='{$_desc}', forum_order='{$_order}' WHERE forum_id = {$id}"))
|
||||
{
|
||||
$msg .= FORLAN_150 ." ". LAN_ID.":"." ".$id." ".LAN_UPDATED."<br />";
|
||||
$msg .= LAN_FORUM_1002 ." ". LAN_ID.":"." ".$id." ".LAN_UPDATED."<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -503,15 +504,15 @@ class forumAdmin
|
||||
}
|
||||
$var['order']['text'] = FORLAN_78;
|
||||
$var['order']['link'] = e_SELF.'?order';
|
||||
$var['opt']['text'] = FORLAN_79;
|
||||
$var['opt']['text'] = LAN_PREFS;
|
||||
$var['opt']['link'] = e_SELF.'?opt';
|
||||
$var['prune']['text'] = LAN_PRUNE;
|
||||
$var['prune']['link'] = e_SELF.'?prune';
|
||||
$var['rules']['text'] = FORLAN_123;
|
||||
$var['rules']['text'] = LAN_FORUM_0016;
|
||||
$var['rules']['link'] = e_SELF.'?rules';
|
||||
$var['sr']['text'] = FORLAN_116;
|
||||
$var['sr']['link'] = e_SELF.'?sr';
|
||||
$var['mods']['text'] = FORLAN_33;
|
||||
$var['mods']['text'] = LAN_FORUM_2003;
|
||||
$var['mods']['link'] = e_SELF.'?mods';
|
||||
$var['tools']['text'] = FORLAN_153;
|
||||
$var['tools']['link'] = e_SELF.'?tools';
|
||||
@ -716,8 +717,8 @@ class forumAdmin
|
||||
<td>".LAN_ID."</td>
|
||||
<td>".LAN_NAME."</td>
|
||||
<td>".LAN_DESCRIPTION."</td>
|
||||
<td>".FORLAN_37."</td>
|
||||
<td>".FORLAN_20."</td>
|
||||
<td>".LAN_ORDER."</td>
|
||||
<td>".LAN_DELETE."</td>
|
||||
</tr>
|
||||
";
|
||||
if($sql->select('forum', 'forum_id, forum_name, forum_description, forum_order', "forum_sub = {$id} ORDER by forum_order ASC"))
|
||||
@ -757,7 +758,7 @@ class forumAdmin
|
||||
<td>".LAN_ID."</td>
|
||||
<td>".LAN_NAME."</td>
|
||||
<td>".LAN_DESCRIPTION."</td>
|
||||
<td>".FORLAN_37."</td>
|
||||
<td>".LAN_ORDER."</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -771,9 +772,9 @@ class forumAdmin
|
||||
<td colspan='5' style='text-align:center'>".$frm->admin_button('create_sub', LAN_CREATE, 'submit')."</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
";
|
||||
$ns->tablerender(FORLAN_149, $txt); // TODO LAN
|
||||
</form>";
|
||||
|
||||
$ns->tablerender(LAN_FORUM_0069, $txt);
|
||||
}
|
||||
|
||||
function show_existing_forums($sub_action, $id, $mode = false)
|
||||
@ -806,7 +807,7 @@ class forumAdmin
|
||||
$text .= "
|
||||
<table class='table adminlist'>
|
||||
<tr>
|
||||
<th colspan='2'>".FORLAN_28."</th>
|
||||
<th colspan='2'>".LAN_FORUM_1001."</th>
|
||||
<th>".LAN_OPTIONS."</th>
|
||||
</tr>";
|
||||
while ($row = $sql->fetch(MYSQL_ASSOC))
|
||||
@ -818,7 +819,7 @@ class forumAdmin
|
||||
$text .= "
|
||||
<tr>
|
||||
<td colspan='2'>".$parent['forum_name']."
|
||||
<br /><b>".FORLAN_140.":</b> ".e107::getUserClass()->uc_get_classname($parent['forum_class'])." <b>".FORLAN_141.":</b> ".e107::getUserClass()->uc_get_classname($parent['forum_postclass'])."
|
||||
<br /><b>".FORLAN_140.":</b> ".e107::getUserClass()->uc_get_classname($parent['forum_class'])." <b>".LAN_FORUM_2015.":</b> ".e107::getUserClass()->uc_get_classname($parent['forum_postclass'])."
|
||||
</td>";
|
||||
|
||||
$text .= "<td style='text-align:center'>";
|
||||
@ -864,7 +865,7 @@ class forumAdmin
|
||||
|
||||
$text .= "
|
||||
<br /><span class='smallblacktext'>".$tp->toHTML($forum['forum_description'])." </span>
|
||||
<br /><b>".FORLAN_140.":</b> ".e107::getUserClass()->uc_get_classname($forum['forum_class'])." <b>".FORLAN_141.":</b> ".e107::getUserClass()->uc_get_classname($forum['forum_postclass'])."
|
||||
<br /><b>".FORLAN_140.":</b> ".e107::getUserClass()->uc_get_classname($forum['forum_class'])." <b>".LAN_FORUM_2015.":</b> ".e107::getUserClass()->uc_get_classname($forum['forum_postclass'])."
|
||||
|
||||
</td>
|
||||
|
||||
@ -907,7 +908,7 @@ class forumAdmin
|
||||
else
|
||||
{
|
||||
$text .= "</table><div class='buttons-bar center'>".$frm->admin_button('update_order', LAN_UPDATE, 'update')."</div></form>";
|
||||
$ns->tablerender(FORLAN_37, $mes->render() . $text);
|
||||
$ns->tablerender(LAN_ORDER, $mes->render() . $text);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1012,7 +1013,7 @@ class forumAdmin
|
||||
<col class='col-control' />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td>".FORLAN_22.":</td>
|
||||
<td>".LAN_FORUM_0004.":</td>
|
||||
<td>";
|
||||
|
||||
$sql->select('forum', '*', 'forum_parent=0');
|
||||
@ -1036,7 +1037,7 @@ class forumAdmin
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>".FORLAN_33.":</td>
|
||||
<td>".LAN_FORUM_2003.":</td>
|
||||
<td>";
|
||||
$text .= e107::getUserClass()->uc_dropdown('forum_moderators', $fInfo['forum_moderators'], 'admin,classes')."<span class='field-help'>".FORLAN_34."</span>";
|
||||
$text .= "</td>
|
||||
@ -1071,7 +1072,7 @@ class forumAdmin
|
||||
</div>
|
||||
</form>
|
||||
";
|
||||
$ns->tablerender(FORLAN_28, $text);
|
||||
$ns->tablerender(LAN_FORUM_1001, $text);
|
||||
}
|
||||
|
||||
|
||||
@ -1109,7 +1110,7 @@ class forumAdmin
|
||||
{
|
||||
$txt .= "<input type='checkbox' name='forumlist[{$f['forum_id']}]' value='1' /> ".$tp->toHTML($f['forum_name'])."<br />";
|
||||
}
|
||||
$txt .= "<input type='checkbox' name='forum_all' value='1' /> <strong>".FORLAN_157."</strong>";
|
||||
$txt .= "<input type='checkbox' name='forum_all' value='1' /> <strong>".LAN_PLUGIN_FORUM_ALLFORUMS."</strong>";
|
||||
}
|
||||
$txt .= "
|
||||
</td>
|
||||
@ -1334,7 +1335,7 @@ class forumAdmin
|
||||
<td>".e107::getDate()->convert_date($row['gen_datestamp'], "long")."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".FORLAN_176.":</td>
|
||||
<td>".LAN_FORUM_2046.":</td>
|
||||
<td>".$row['gen_chardata']."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1492,7 +1493,7 @@ class forumAdmin
|
||||
".$frm->admin_button('setMods', LAN_UPDATE, 'update')."
|
||||
</div>
|
||||
</form>";
|
||||
$ns->tablerender(FORLAN_33, $txt); // FIX: LAN button update was WMGLAN_4." ".FORLAN_33)
|
||||
$ns->tablerender(LAN_FORUM_2003, $txt);
|
||||
}
|
||||
|
||||
// TODO: check media category on $frm->bbarea()
|
||||
|
@ -377,7 +377,7 @@ class e107forum
|
||||
case 'lock':
|
||||
if(e107::getDb()->update('forum_thread', 'thread_active=0 WHERE thread_id='.$id))
|
||||
{
|
||||
$ret['msg'] = LAN_FORUM_CLOSE; // FORLAN_CLOSE;
|
||||
$ret['msg'] = LAN_FORUM_CLOSE;
|
||||
$ret['status'] = 'ok';
|
||||
}
|
||||
else
|
||||
@ -390,7 +390,7 @@ class e107forum
|
||||
case 'unlock':
|
||||
if(e107::getDb()->update('forum_thread', 'thread_active=1 WHERE thread_id='.$id))
|
||||
{
|
||||
$ret['msg'] = LAN_FORUM_OPEN; // FORLAN_OPEN;
|
||||
$ret['msg'] = LAN_FORUM_OPEN;
|
||||
$ret['status'] = 'ok';
|
||||
}
|
||||
else
|
||||
@ -403,7 +403,7 @@ class e107forum
|
||||
case 'stick':
|
||||
if(e107::getDb()->update('forum_thread', 'thread_sticky=1 WHERE thread_id='.$id))
|
||||
{
|
||||
$ret['msg'] = LAN_FORUM_STICK; // FORLAN_STICK;
|
||||
$ret['msg'] = LAN_FORUM_STICK;
|
||||
$ret['status'] = 'ok';
|
||||
}
|
||||
else
|
||||
@ -416,7 +416,7 @@ class e107forum
|
||||
case 'unstick':
|
||||
if(e107::getDb()->update('forum_thread', 'thread_sticky=0 WHERE thread_id='.$id))
|
||||
{
|
||||
$ret['msg'] = LAN_FORUM_UNSTICK; // FORLAN_UNSTICK;
|
||||
$ret['msg'] = LAN_FORUM_UNSTICK;
|
||||
$ret['status'] = 'ok';
|
||||
}
|
||||
else
|
||||
@ -1736,7 +1736,7 @@ class e107forum
|
||||
$FORUM_CRUMB['sitename']['value'] = str_replace($search, $replace, $FORUM_CRUMB['sitename']['value']);
|
||||
|
||||
$search = array('{FORUMS_TITLE}', '{FORUMS_HREF}');
|
||||
$replace = array(LAN_FORUM_0001, e107::getUrl()->create('forum/forum/main'));
|
||||
$replace = array(LAN_PLUGIN_FORUM_NAME, e107::getUrl()->create('forum/forum/main'));
|
||||
$FORUM_CRUMB['forums']['value'] = str_replace($search, $replace, $FORUM_CRUMB['forums']['value']);
|
||||
|
||||
$search = array('{PARENT_TITLE}', '{PARENT_HREF}');
|
||||
@ -1771,7 +1771,7 @@ class e107forum
|
||||
else
|
||||
{
|
||||
$dfltsep = ' :: ';
|
||||
$BREADCRUMB = "<a class='forumlink' href='".e_BASE."index.php'>".SITENAME."</a>".$dfltsep."<a class='forumlink' href='".e_PLUGIN."forum/forum.php'>".LAN_FORUM_0001."</a>".$dfltsep;
|
||||
$BREADCRUMB = "<a class='forumlink' href='".e_BASE."index.php'>".SITENAME."</a>".$dfltsep."<a class='forumlink' href='".e_PLUGIN."forum/forum.php'>".LAN_PLUGIN_FORUM_NAME."</a>".$dfltsep;
|
||||
if($forumInfo['sub_parent'])
|
||||
{
|
||||
$forum_sub_parent = (substr($forumInfo['sub_parent'], 0, 1) == '*' ? substr($forumInfo['sub_parent'], 1) : $forumInfo['sub_parent']);
|
||||
@ -1800,7 +1800,7 @@ class e107forum
|
||||
|
||||
$breadcrumb = array();
|
||||
|
||||
$breadcrumb[] = array('text'=> LAN_FORUM_0001 , 'url'=> e107::getUrl()->create('forum/forum/main'));
|
||||
$breadcrumb[] = array('text'=> LAN_PLUGIN_FORUM_NAME , 'url'=> e107::getUrl()->create('forum/forum/main'));
|
||||
|
||||
if($forumInfo['sub_parent'])
|
||||
{
|
||||
@ -1970,16 +1970,12 @@ class e107forum
|
||||
* @return string path to and filename of forum icon image
|
||||
*
|
||||
* @param string $filename filename of forum image
|
||||
* @param string $eMLANG_folder if specified, indicates its a multilanguage image being processed and
|
||||
* gives the subfolder of the image path to the eMLANG_path() function,
|
||||
* default = FALSE
|
||||
* @param string $eMLANG_pref if specified, indicates that $filename may be overridden by the
|
||||
* $pref with $eMLANG_pref as its key if that pref is TRUE, default = FALSE
|
||||
|
||||
*
|
||||
* @desc checks for the existence of a forum icon image in the themes forum folder and if it is found
|
||||
* returns the path and filename of that file, otherwise it returns the path and filename of the
|
||||
* default forum icon image in e_IMAGES. The additional $eMLANG args if specfied switch the process
|
||||
* to the sister multi-language function eMLANG_path().
|
||||
* default forum icon image in e_IMAGES. The additional args if specfied switch the process
|
||||
* to the sister multi-language function
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
|
@ -124,11 +124,11 @@ if ($action == "delete_poll")
|
||||
".FORCONF_13."
|
||||
<br /><br />
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
||||
<input class='btn btn-default button' type='submit' name='deletecancel' value='".FORCONF_14."' />
|
||||
<input class='btn btn-default button' type='submit' name='deletecancel' value='".LAN_CANCEL."' />
|
||||
<input class='btn btn-default button' type='submit' name='deletepollconfirm' value='".FORCONF_15."' />
|
||||
</form>
|
||||
</div>";
|
||||
$ns->tablerender(FORCONF_16, $text);
|
||||
$ns->tablerender(LAN_UI_DELETE_LABEL, $text);
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
}
|
||||
@ -199,7 +199,7 @@ if ($action == 'move')
|
||||
</table>
|
||||
<div class='center'>
|
||||
<input class='btn btn-primary button' type='submit' name='move' value='".FORCONF_25."' />
|
||||
<input class='btn btn-default button' type='submit' name='movecancel' value='".FORCONF_14."' />
|
||||
<input class='btn btn-default button' type='submit' name='movecancel' value='".LAN_CANCEL."' />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -26,22 +26,22 @@ function forum_thread_moderate($p)
|
||||
{
|
||||
case 'lock':
|
||||
$sql->update('forum_thread', 'thread_active=0 WHERE thread_id='.$id);
|
||||
return FORLAN_CLOSE;
|
||||
return LAN_FORUM_CLOSE;
|
||||
break;
|
||||
|
||||
case 'unlock':
|
||||
$sql->update('forum_thread', 'thread_active=1 WHERE thread_id='.$id);
|
||||
return FORLAN_OPEN;
|
||||
return LAN_FORUM_OPEN;
|
||||
break;
|
||||
|
||||
case 'stick':
|
||||
$sql->update('forum_thread', 'thread_sticky=1 WHERE thread_id='.$id);
|
||||
return FORLAN_STICK;
|
||||
return LAN_FORUM_STICK;
|
||||
break;
|
||||
|
||||
case 'unstick':
|
||||
$sql->update('forum_thread', 'thread_sticky=0 WHERE thread_id='.$id);
|
||||
return FORLAN_UNSTICK;
|
||||
return LAN_FORUM_UNSTICK;
|
||||
break;
|
||||
|
||||
case 'deleteThread':
|
||||
@ -62,7 +62,7 @@ function forumDeleteThread($threadId)
|
||||
require_once (e_PLUGIN.'forum/forum_class.php');
|
||||
$f = new e107forum;
|
||||
$ret = $f->threadDelete($threadId);
|
||||
return FORLAN_6.' and '.$ret.' '.FORLAN_7.'.';
|
||||
return LAN_CANCEL.' and '.$ret.' '.FORLAN_7.'.';
|
||||
}
|
||||
|
||||
function forumDeletePost($postId)
|
||||
@ -70,7 +70,7 @@ function forumDeletePost($postId)
|
||||
require_once (e_PLUGIN.'forum/forum_class.php');
|
||||
$f = new e107forum;
|
||||
$ret = $f->postDelete($postId);
|
||||
return FORLAN_6.' and '.$ret.' '.FORLAN_7.'.';
|
||||
return LAN_CANCEL.' and '.$ret.' '.FORLAN_7.'.';
|
||||
}
|
||||
|
||||
?>
|
@ -148,7 +148,7 @@ if (isset($_POST['fpreview']))
|
||||
}
|
||||
else
|
||||
{
|
||||
$poster = ($_POST['anonname']) ? $_POST['anonname'] : LAN_FORUM_3004;
|
||||
$poster = ($_POST['anonname']) ? $_POST['anonname'] : LAN_ANONYMOUS;
|
||||
}
|
||||
$postdate = $gen->convert_date(time(), "forum");
|
||||
$tsubject = $tp->post_toHTML($_POST['subject'], true);
|
||||
|
@ -22,6 +22,9 @@ if (!$e107->isInstalled('forum'))
|
||||
//TODO: Investigate the queries used here
|
||||
|
||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_stats.php');
|
||||
e107::lan('forum','front');
|
||||
|
||||
|
||||
require_once(e_PLUGIN.'forum/forum_class.php');
|
||||
$gen = new convert;
|
||||
$forum = new e107forum;
|
||||
@ -219,7 +222,7 @@ $text = "
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".FSLAN_2.":</b> </td><td style='width: 50%;'>{$open_date}</td></tr>
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".FSLAN_3.":</b> </td><td style='width: 50%;'>{$open_since}</td></tr>
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".FSLAN_4.":</b> </td><td style='width: 50%;'>{$total_posts}</td></tr>
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".FSLAN_5.":</b> </td><td style='width: 50%;'>{$total_topics}</td></tr>
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".LAN_FORUM_1007.":</b> </td><td style='width: 50%;'>{$total_topics}</td></tr>
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".FSLAN_6.":</b> </td><td style='width: 50%;'>{$total_replies}</td></tr>
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".FSLAN_7.":</b> </td><td style='width: 50%;'>{$total_views}</td></tr>
|
||||
<tr><td style='width: 50%; text-align: right;'><b>".FSLAN_24.":</b> </td><td style='width: 50%;'>{$postsperday}</td></tr>
|
||||
@ -231,14 +234,14 @@ $text = "
|
||||
<div class='spacer'>
|
||||
<table style='width: 100%;' class='fborder table'>
|
||||
<tr>
|
||||
<td class='forumheader' colspan='5'>".FSLAN_10."</td>
|
||||
<td class='forumheader' colspan='5'>".LAN_FORUM_0011."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_11."</th>
|
||||
<th style='width: 40%;' class='fcaption'>".FSLAN_12."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_13."</th>
|
||||
<th style='width: 40%;' class='fcaption'>".LAN_FORUM_1003."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".LAN_FORUM_0003."</th>
|
||||
<th style='width: 20%; text-align: center;' class='fcaption'>".FSLAN_14."</th>
|
||||
<th style='width: 20%; text-align: center;' class='fcaption'>".FSLAN_15."</th>
|
||||
<th style='width: 20%; text-align: center;' class='fcaption'>".LAN_DATE."</th>
|
||||
</tr>
|
||||
";
|
||||
|
||||
@ -276,10 +279,10 @@ $text .= "</table>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_11."</th>
|
||||
<th style='width: 40%;' class='fcaption'>".FSLAN_12."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_17."</th>
|
||||
<th style='width: 40%;' class='fcaption'>".LAN_FORUM_1003."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".LAN_FORUM_1005."</th>
|
||||
<th style='width: 20%; text-align: center;' class='fcaption'>".FSLAN_14."</th>
|
||||
<th style='width: 20%; text-align: center;' class='fcaption'>".FSLAN_15."</th>
|
||||
<th style='width: 20%; text-align: center;' class='fcaption'>".LAN_DATE."</th>
|
||||
</tr>
|
||||
";
|
||||
|
||||
@ -313,13 +316,13 @@ $text .= "</table>
|
||||
<div class='spacer'>
|
||||
<table style='width: 100%;' class='fborder table'>
|
||||
<tr>
|
||||
<td class='forumheader' colspan='5'>".FSLAN_18."</td>
|
||||
<td class='forumheader' colspan='5'>".LAN_FORUM_0010."</td>
|
||||
</tr>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_11."</th>
|
||||
<th style='width: 20%;' class='fcaption'>".FSLAN_19."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_20."</th>
|
||||
<th style='width: 20%;' class='fcaption'>".LAN_NAME."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".LAN_FORUM_2032."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>%</th>
|
||||
<th style='width: 50%; text-align: center;' class='fcaption'> </th>
|
||||
</tr>
|
||||
@ -353,8 +356,8 @@ $text .= "</tbody>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_11."</th>
|
||||
<th style='width: 20%;' class='fcaption'>".FSLAN_19."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_20."</th>
|
||||
<th style='width: 20%;' class='fcaption'>".LAN_NAME."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".LAN_FORUM_2032."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>%</th>
|
||||
<th style='width: 50%; text-align: center;' class='fcaption'> </th>
|
||||
</tr>
|
||||
@ -385,8 +388,8 @@ $text .= "</table>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_11."</th>
|
||||
<th style='width: 20%;' class='fcaption'>".FSLAN_19."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".FSLAN_20."</th>
|
||||
<th style='width: 20%;' class='fcaption'>".LAN_NAME."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>".LAN_FORUM_2032."</th>
|
||||
<th style='width: 10%; text-align: center;' class='fcaption'>%</th>
|
||||
<th style='width: 50%; text-align: center;' class='fcaption'> </th>
|
||||
</tr>
|
||||
|
@ -24,6 +24,8 @@ if(!USER)
|
||||
|
||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_uploads.php');
|
||||
|
||||
e107::lan('forum','front');
|
||||
|
||||
if(is_array($_POST['delete']))
|
||||
{
|
||||
foreach(array_keys($_POST['delete']) as $fname)
|
||||
@ -101,7 +103,7 @@ if(is_array($fileList))
|
||||
}
|
||||
else
|
||||
{
|
||||
$txt .= "<td class='forumheader3'>".FRMUP_8." <input class='btn btn-default button' type='submit' name='delete[{$finfo['fname']}]' value='".FRMUP_10."' /></td>";
|
||||
$txt .= "<td class='forumheader3'>".FRMUP_8." <input class='btn btn-default button' type='submit' name='delete[{$finfo['fname']}]' value='".LAN_DELETE."' /></td>";
|
||||
}
|
||||
$txt .= "</tr>";
|
||||
}
|
||||
|
@ -365,7 +365,7 @@ else
|
||||
echo "<script type=\"text/javascript\">
|
||||
function confirm_(thread_id)
|
||||
{
|
||||
return confirm(\"".$tp->toJS(LAN_FORUM_1019)."\");
|
||||
return confirm(\"".$tp->toJS(LAN_JSCONFIRM)."\");
|
||||
}
|
||||
</script>";
|
||||
|
||||
|
@ -24,7 +24,7 @@ vf = viewforum, vt = viewtopic, p = post, etc.
|
||||
define("e_PAGETITLE", "Forum");
|
||||
|
||||
// forum.php (forum_template)
|
||||
define("LAN_FORUM_0001", "Forum"); // LAN_46
|
||||
// define("LAN_FORUM_0001", "Forum"); // LAN_46
|
||||
define("LAN_FORUM_0002", "Topics"); // LAN_47 / FORLAN_21
|
||||
define("LAN_FORUM_0003", "Replies"); // LAN_48 / LAN_55
|
||||
define("LAN_FORUM_0004", "Last Post"); // LAN_49 / FORLAN_22 / LAN_57
|
||||
@ -109,7 +109,7 @@ define("LAN_FORUM_0068", "No forums in this section yet, please check back soon.
|
||||
define('LAN_FORUM_0069', 'Sub-forums'); // FORLAN_444
|
||||
|
||||
define("LAN_FORUM_0070", "Cancel Topic Tracking"); // LAN_392
|
||||
define("LAN_FORUM_0071", "Forum Rules"); // LAN_433
|
||||
//define("LAN_FORUM_0071", "Forum Rules"); // LAN_433
|
||||
define("LAN_FORUM_0072", "No rules defined."); // FORLAN_441
|
||||
define("LAN_FORUM_0073", "Tracked topics"); // LAN_397
|
||||
define("LAN_FORUM_0074", "Posted by"); // LAN_423
|
||||
@ -137,7 +137,7 @@ define("LAN_FORUM_1016", "Poll"); // FORLAN_23
|
||||
|
||||
define("LAN_FORUM_1017", "Go to"); // LAN_401 (p?)
|
||||
define("LAN_FORUM_1018", "New topic");
|
||||
define("LAN_FORUM_1019", "Are you sure?"); // new
|
||||
// define("LAN_FORUM_1019", "Are you sure?"); // new
|
||||
|
||||
// starting at LAN_FORUM_2xxx => forum_viewtopic.php
|
||||
define("LAN_FORUM_2001", "Previous topic"); // LAN_389
|
||||
@ -190,8 +190,8 @@ define("LAN_FORUM_2036", "Send Private Message"); // new / LAN_399
|
||||
define("LAN_FORUM_2037", "Post deleted on"); // new
|
||||
define("LAN_FORUM_2038", "Reason"); // new
|
||||
|
||||
define("LAN_FORUM_2039", "Edit"); // LAN_400
|
||||
define("LAN_FORUM_2040", "Delete"); // LAN_435 (vf)?
|
||||
// define("LAN_FORUM_2039", "Edit"); // LAN_400
|
||||
// define("LAN_FORUM_2040", "Delete"); // LAN_435 (vf)?
|
||||
define("LAN_FORUM_2041", "Quote"); // LAN_401
|
||||
define("LAN_FORUM_2042", "Move"); // FORCONF_25 ?
|
||||
define("LAN_FORUM_2043", "Split"); // new
|
||||
@ -204,9 +204,9 @@ define("LAN_FORUM_3001", "You are not authorized to post to this forum."); // LA
|
||||
define("LAN_FORUM_3002", "This topic is locked."); // LAN_397
|
||||
define("LAN_FORUM_3003", "Replying to"); // LAN_02 (p)
|
||||
|
||||
define("LAN_FORUM_3004", "Anonymous"); // LAN_311
|
||||
// define("LAN_FORUM_3004", "Anonymous"); // LAN_311
|
||||
define("LAN_FORUM_3005", "Preview"); // LAN_323
|
||||
define("LAN_FORUM_3006", "Duplicate post"); // LAN_FORUM_2
|
||||
// define("LAN_FORUM_3006", "Duplicate post"); // LAN_FORUM_2
|
||||
define("LAN_FORUM_3007", "You left required field(s) blank"); // LAN_27
|
||||
define("LAN_FORUM_3008", "Unauthorised"); // LAN_95
|
||||
define("LAN_FORUM_3009", "You are not authorised to edit this forum post."); //LAN_96
|
||||
@ -234,15 +234,6 @@ define("LAN_FORUM_3026", "Post topic as"); // LAN_400 (p)
|
||||
|
||||
// poll - partly in e107_plugins/poll/poll_class.php
|
||||
define("LAN_FORUM_3028", "Add Poll"); // new
|
||||
define("LAN_FORUM_3029", "If you do not wish to add a poll to your topic, leave the fields blank."); // LAN_386
|
||||
define("LAN_FORUM_3030", "Poll question"); // LAN_5
|
||||
define("LAN_FORUM_3031", "Poll answer"); // LAN_391
|
||||
define("LAN_FORUM_3032", "Add another answer"); // LAN_6
|
||||
define("LAN_FORUM_3033", "Allow multiple choices?"); // LAN_506
|
||||
define("LAN_FORUM_3034", "Vote storage method"); // POLLAN_16
|
||||
define("LAN_FORUM_3035", "Cookie"); // POLLAN_17
|
||||
define("LAN_FORUM_3036", "IP address"); // POLLAN_18
|
||||
define("LAN_FORUM_3037", "User ID (only members can vote)"); // POLLAN_19
|
||||
|
||||
define("LAN_FORUM_3038", "Normal"); // LAN_1
|
||||
define("LAN_FORUM_3039", "Deactivate emoticons for this post"); // LAN_FORUMPOST_EMOTES
|
||||
@ -277,11 +268,45 @@ define("LAN_FORUM_4012", "Unstick thread"); // LAN_398
|
||||
define("LAN_FORUM_4013", "Lock thread"); // LAN_399
|
||||
define("LAN_FORUM_4014", "Unlock thread"); // LAN_400
|
||||
|
||||
|
||||
// Ajax and actions
|
||||
define("LAN_FORUM_CLOSE", "Thread closed.");
|
||||
define("LAN_FORUM_OPEN", "Thread reopened.");
|
||||
define("LAN_FORUM_STICK", "Thread made sticky.");
|
||||
define("LAN_FORUM_UNSTICK", "Thread unstuck.");
|
||||
|
||||
// Config -TO BE RENAMED
|
||||
|
||||
define("FORCONF_5", "Poll deleted."); // FORCONF_5
|
||||
define("FORCONF_6", "Thread deleted"); // FORCONF_6
|
||||
define("FORCONF_7", "replies deleted"); // FORCONF_7
|
||||
define("FORCONF_8", "Delete cancelled."); // FORCONF_8
|
||||
define("FORCONF_9", "Thread moved."); // FORCONF_9
|
||||
define("FORCONF_10", "Move cancelled."); // FORCONF_10
|
||||
define("FORCONF_11", "Back To Forums"); // FORCONF_11
|
||||
define("FORCONF_12", "Forum Configuration"); // FORCONF_12
|
||||
define("FORCONF_13", "Are you absolutely certain you want to delete this poll?<br />Once deleted it <b><u>cannot</u></b> be retrieved.");
|
||||
// define("FORCONF_14", "Cancel");
|
||||
define("FORCONF_15", "Confirm Delete Forum Post"); // FORCONF_15
|
||||
// define("FORCONF_16", "Confirm Delete Poll"); // FORCONF_16
|
||||
define("FORCONF_17", "posted by"); // FORCONF_17
|
||||
define("FORCONF_18", "Are you absolutely certain you want to delete this forum");
|
||||
define("FORCONF_19", "thread and it's related posts?");
|
||||
define("FORCONF_20", "the poll will also be deleted");
|
||||
define("FORCONF_21", "Once deleted they");
|
||||
define("FORCONF_22", "post?<br />Once deleted it");
|
||||
define("FORCONF_23", "cannot</u></b> be retrieved");
|
||||
define("FORCONF_24", "Move thread to forum");
|
||||
define("FORCONF_25", "Move Thread");
|
||||
define("FORCONF_26", "Reply deleted");
|
||||
|
||||
define("FORCONF_27", "moved");
|
||||
|
||||
define("FORCONF_28", "Do not rename thread title");
|
||||
define("FORCONF_29", "Add");
|
||||
define("FORCONF_30", "to title");
|
||||
define("FORCONF_31", "Rename to:");
|
||||
define("FORCONF_32", "Rename thread options:");
|
||||
|
||||
/* THIS WILL BE DELETED ONCE THE REWRITE IS DONE
|
||||
==================================================
|
||||
|
@ -3,6 +3,7 @@
|
||||
define("LAN_PLUGIN_FORUM_NAME", "Forum");
|
||||
define("LAN_PLUGIN_FORUM_DESC", "This plugin is a fully featured forum system.");
|
||||
define("LAN_PLUGIN_FORUM_POSTS", "Forum posts");
|
||||
define("LAN_PLUGIN_FORUM_ALLFORUMS", "All Forums");
|
||||
// Notify
|
||||
// TODO - LAN cleanup (see e_notify)
|
||||
|
||||
@ -11,7 +12,7 @@ define("LAN_PLUGIN_FORUM_POSTS", "Forum posts");
|
||||
//define('FORUM_NT_3', 'Post');
|
||||
//define('FORUM_NT_4', 'added by');
|
||||
//define('FORUM_NT_5', 'moved by');
|
||||
define('FORUM_NT_6', 'Forum - Thread created');
|
||||
// define('FORUM_NT_6', 'Forum - Thread created');
|
||||
define('FORUM_NT_7', 'Forum - Thread created by new user');
|
||||
define('FORUM_NT_8', 'Forum - Thread deleted');
|
||||
define('FORUM_NT_9', 'Forum - Thread split');
|
||||
|
@ -9,12 +9,12 @@
|
||||
| $Author$
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
define("FORLAN_1", "You must enter the number of days you wish to prune.");
|
||||
//define("FORLAN_1", "You must enter the number of days you wish to prune.");
|
||||
define("FORLAN_2", "Please select to either delete pruned posts completely, or make them inactive (not deleted but not visible in forums)");
|
||||
define("FORLAN_3", "delete");
|
||||
define("FORLAN_4", "Make inactive");
|
||||
define("FORLAN_5", "Carry Out Prune");
|
||||
define("FORLAN_6", "Cancel");
|
||||
// define("FORLAN_3", "delete");
|
||||
// define("FORLAN_4", "Make inactive");
|
||||
// define("FORLAN_5", "Carry Out Prune");
|
||||
// define("FORLAN_6", "Cancel");
|
||||
define("FORLAN_7", "Forum Options");
|
||||
define("FORLAN_8", "Forums pruned.");
|
||||
define("FORLAN_9", "Prune not required.");
|
||||
@ -23,38 +23,38 @@ define("FORLAN_9", "Prune not required.");
|
||||
//define("FORLAN_12", "Forum updated");
|
||||
//define("FORLAN_13", "Parent created");
|
||||
//define("FORLAN_14", "Forum parent updated");
|
||||
define("FORLAN_15", "Please tick the confirm box to delete the forum");
|
||||
define("FORLAN_16", "Forums");
|
||||
define("FORLAN_17", "No parents yet.");
|
||||
define("FORLAN_18", "Existing Parents");
|
||||
define("FORLAN_19", "Edit");
|
||||
define("FORLAN_20", "Delete");
|
||||
define("FORLAN_21", "tick to confirm");
|
||||
define("FORLAN_22", "Parent");
|
||||
//define("FORLAN_15", "Please tick the confirm box to delete the forum");
|
||||
// define("FORLAN_16", "Forums");
|
||||
//define("FORLAN_17", "No parents yet.");
|
||||
//define("FORLAN_18", "Existing Parents");
|
||||
// define("FORLAN_19", "Edit");
|
||||
// define("FORLAN_20", "Delete");
|
||||
//define("FORLAN_21", "tick to confirm");
|
||||
//define("FORLAN_22", "Parent");
|
||||
define("FORLAN_23", "Viewable by");
|
||||
define("FORLAN_24", "Indicates who can view the forum");
|
||||
//define("FORLAN_25", "Update Parent");
|
||||
//define("FORLAN_26", "Create Parent");
|
||||
define("FORLAN_27", "You need to define at least one forum parent before creating a forum.");
|
||||
define("FORLAN_28", "Forums");
|
||||
//define("FORLAN_27", "You need to define at least one forum parent before creating a forum.");
|
||||
// define("FORLAN_28", "Forums");
|
||||
define("FORLAN_29", "No forums yet.");
|
||||
define("FORLAN_30", "Existing Forums");
|
||||
//define("FORLAN_31", "Name");
|
||||
//define("FORLAN_32", "Description");
|
||||
define("FORLAN_33", "Moderators");
|
||||
// define("FORLAN_33", "Moderators");
|
||||
define("FORLAN_34", "Choose userclass for moderators of this forum");
|
||||
//define("FORLAN_35", "Update Forum");
|
||||
//define("FORLAN_36", "Create Forum");
|
||||
define("FORLAN_37", "Order");
|
||||
define("FORLAN_38", "Closed");
|
||||
define("FORLAN_39", "Members Only");
|
||||
define("FORLAN_40", "Restricted");
|
||||
define("FORLAN_41", "move up");
|
||||
define("FORLAN_42", "move down");
|
||||
define("FORLAN_43", "Preview / Forum Order");
|
||||
define("FORLAN_44", "Enclose tables");
|
||||
define("FORLAN_45", "Tick this to render the forum within theme table");
|
||||
define("FORLAN_46", "Title displayed in caption if enclose tables is ticked");
|
||||
// define("FORLAN_37", "Order");
|
||||
// define("FORLAN_38", "Closed");
|
||||
// define("FORLAN_39", "Members Only");
|
||||
// define("FORLAN_40", "Restricted");
|
||||
// define("FORLAN_41", "move up");
|
||||
// define("FORLAN_42", "move down");
|
||||
// define("FORLAN_43", "Preview / Forum Order");
|
||||
define("FORLAN_44", "Enclose tables");
|
||||
define("FORLAN_45", "Tick this to render the forum within theme table");
|
||||
// define("FORLAN_46", "Title displayed in caption if enclose tables is ticked");
|
||||
define("FORLAN_47", "Enable email notification");
|
||||
define("FORLAN_48", "Tick this to allow your users to have the option of receiving an email when somebody replies to their post");
|
||||
define("FORLAN_49", "Enable polls for");
|
||||
@ -71,8 +71,8 @@ define("FORLAN_58", "Number of posts displayed per page");
|
||||
define("FORLAN_60", "This will delete all threads that have not received a reply in the number of days you enter. <br /><b>Please be careful using this function!</b>");
|
||||
//define("FORLAN_61", "Update Options");
|
||||
define("FORLAN_62", "Forum Options");
|
||||
define("FORLAN_63", "Ranks");
|
||||
define("FORLAN_64", "Enter your levels here, if left blank generic stars will be used to denote level. Separate levels with comma. Maximum of 10 levels, lowest first.");
|
||||
// define("FORLAN_63", "Ranks");
|
||||
// define("FORLAN_64", "Enter your levels here, if left blank generic stars will be used to denote level. Separate levels with comma. Maximum of 10 levels, lowest first.");
|
||||
define("FORLAN_65", "Forum Title");
|
||||
define('FORLAN_66', 'Not installed');
|
||||
|
||||
@ -85,17 +85,17 @@ define("FORLAN_75", "Parents");
|
||||
define("FORLAN_76", "Forums Front Page");
|
||||
define("FORLAN_77", "Create Forums");
|
||||
define("FORLAN_78", "Forum Order");
|
||||
define("FORLAN_79", "Preferences");
|
||||
// define("FORLAN_79", "Preferences");
|
||||
//define("FORLAN_80", "Options");
|
||||
define("FORLAN_81", "Are you sure you want to delete this parent? - forums of this parent will also be deleted");
|
||||
define("FORLAN_82", "Are you sure you want to delete this forum?");
|
||||
// define("FORLAN_81", "Are you sure you want to delete this parent? - forums of this parent will also be deleted");
|
||||
// define("FORLAN_82", "Are you sure you want to delete this forum?");
|
||||
define("FORLAN_83", "Create Parents");
|
||||
define("FORLAN_84", "Members Only");
|
||||
define("FORLAN_85", "Read Only");
|
||||
define("FORLAN_86", "Admin Only");
|
||||
// define("FORLAN_84", "Members Only");
|
||||
// define("FORLAN_85", "Read Only");
|
||||
// define("FORLAN_86", "Admin Only");
|
||||
define("FORLAN_87", "Prune topics with no replies in this many days:");
|
||||
|
||||
define("FORLAN_88", "Prune topics with no replies in this many days:");
|
||||
// define("FORLAN_88", "Prune topics with no replies in this many days:");
|
||||
|
||||
define("FORLAN_89", "Delete posts completely");
|
||||
define("FORLAN_90", "Make posts inactive");
|
||||
@ -104,40 +104,40 @@ define("FORLAN_91", "post(s) made inactive");
|
||||
define("FORLAN_92", "thread(s) deleted");
|
||||
define("FORLAN_93", "reply (replies) deleted");
|
||||
|
||||
define("FORLAN_94", "Set Ranks");
|
||||
define("FORLAN_95", "Ranks saved");
|
||||
// define("FORLAN_94", "Set Ranks");
|
||||
// define("FORLAN_95", "Ranks saved");
|
||||
//define("FORLAN_96", "Forum deleted");
|
||||
//define("FORLAN_97", "Parent deleted");
|
||||
|
||||
define("FORLAN_98", "Rank Name");
|
||||
define("FORLAN_99", "number of points before level change");
|
||||
define("FORLAN_100", "upload images to e107_themes/Your_Theme/forum/");
|
||||
define("FORLAN_101", "Main Site Admin");
|
||||
define("FORLAN_102", "Threshold");
|
||||
define("FORLAN_103", "Site Admin");
|
||||
define("FORLAN_104", "Rank Image");
|
||||
define("FORLAN_105", "Forum Moderator");
|
||||
// define("FORLAN_98", "Rank Name");
|
||||
// define("FORLAN_99", "number of points before level change");
|
||||
// define("FORLAN_100", "upload images to e107_themes/Your_Theme/forum/");
|
||||
// define("FORLAN_101", "Main Site Admin");
|
||||
// define("FORLAN_102", "Threshold");
|
||||
// define("FORLAN_103", "Site Admin");
|
||||
// define("FORLAN_104", "Rank Image");
|
||||
// define("FORLAN_105", "Forum Moderator");
|
||||
|
||||
|
||||
define("FORLAN_106", "Prune Type:");
|
||||
define("FORLAN_107", "Forum");
|
||||
define("FORLAN_108", " deleted");
|
||||
define("FORLAN_109", "days:");
|
||||
define("FORLAN_110", "Prune");
|
||||
define("FORLAN_111", "deactivate");
|
||||
// define("FORLAN_106", "Prune Type:");
|
||||
// define("FORLAN_107", "Forum");
|
||||
// define("FORLAN_108", " deleted");
|
||||
// define("FORLAN_109", "days:");
|
||||
// define("FORLAN_110", "Prune");
|
||||
// define("FORLAN_111", "deactivate");
|
||||
|
||||
define("FORLAN_112", "Enable Redirect");
|
||||
define("FORLAN_113", "Tick this to make browser redirect to forum page after replying");
|
||||
//define("FORLAN_114", "User Custom Title");
|
||||
//define("FORLAN_115", "Tick this to allow users to change their Custom Title");
|
||||
define("FORLAN_116", "Reported Posts");
|
||||
define("FORLAN_117", "This will delete the record of the reported post. Not the post itself.");
|
||||
// define("FORLAN_117", "This will delete the record of the reported post. Not the post itself.");
|
||||
// define("FORLAN_118", "Reported post deleted");
|
||||
// define("FORLAN_119", "Clicking links will open forum in a new window.");
|
||||
define("FORLAN_120", "Tick this to allow users to change their Custom Title");
|
||||
// define("FORLAN_120", "Tick this to allow users to change their Custom Title");
|
||||
define("FORLAN_121", "No reported posts");
|
||||
define("FORLAN_122", "Click here to email admin when someone reports a forum post");
|
||||
define("FORLAN_123", "Forum Rules");
|
||||
// define("FORLAN_123", "Forum Rules");
|
||||
define("WMGLAN_1", "Rules for Guests");
|
||||
define("WMGLAN_2", "Rules for Members");
|
||||
define("WMGLAN_3", "Rules for Administrators");
|
||||
@ -159,7 +159,7 @@ define("FORLAN_137", "Enabling this will resize larger images and also create a
|
||||
define("FORLAN_138", "Prune these forums");
|
||||
define("FORLAN_139", "To use this setting you also need to tick 'Enable image posting' on the <a href='".e_ADMIN."image.php'>images</a> page"); // FIX html in LAN
|
||||
define("FORLAN_140", "View");
|
||||
define("FORLAN_141", "Post");
|
||||
// define("FORLAN_141", "Post");
|
||||
define("FORLAN_142", "Post permission");
|
||||
define("FORLAN_143", "Indicates who can post to the forum");
|
||||
//define("FORLAN_144", "Moderators set");
|
||||
@ -167,16 +167,16 @@ define("FORLAN_145", "Configure sub-forums");
|
||||
define("FORLAN_146", "No sub-forums yet");
|
||||
//define("FORLAN_147", "Update sub-forums");
|
||||
//define("FORLAN_148", "Create sub-forums");
|
||||
define("FORLAN_149", "sub-forums");
|
||||
define("FORLAN_150", "sub-forum");
|
||||
// define("FORLAN_149", "sub-forums");
|
||||
// define("FORLAN_150", "sub-forum");
|
||||
//define("FORLAN_151", "ID");
|
||||
define("FORLAN_152", "posts");
|
||||
define("FORLAN_153", "Tools");
|
||||
define("FORLAN_154", "Reply Deleted");
|
||||
// define("FORLAN_154", "Reply Deleted");
|
||||
define("FORLAN_155", "Forum Categories");
|
||||
|
||||
define("FORLAN_156", "Select forum(s) to perform action on");
|
||||
define("FORLAN_157", "All Forums");
|
||||
// define("FORLAN_157", "All Forums");
|
||||
define("FORLAN_158", "Recalculate forum lastpost info");
|
||||
define("FORLAN_159", "Select to recalculate lastpost info");
|
||||
define("FORLAN_160", "Select to perform this on forums only, not threads");
|
||||
@ -184,7 +184,7 @@ define("FORLAN_161", "Recalculate post / reply counts");
|
||||
define("FORLAN_162", "Select to recalculate forum thread/reply counts");
|
||||
define("FORLAN_163", "Recalculate user forum posts counts");
|
||||
define("FORLAN_164", "Select to recalculate user forum counts");
|
||||
define("FORLAN_165", "Execute functions");
|
||||
// define("FORLAN_165", "Execute functions");
|
||||
define("FORLAN_166", "Forum Tools");
|
||||
define("FORLAN_167", "Counts updated for forum");
|
||||
define("FORLAN_168", "Lastpost info updated for forum");
|
||||
@ -195,13 +195,13 @@ define("FORLAN_172", "Delete This Report");
|
||||
define("FORLAN_173", "Thread title");
|
||||
define("FORLAN_174", "Reported by user");
|
||||
define("FORLAN_175", "Report submitted");
|
||||
define("FORLAN_176", "Report");
|
||||
// define("FORLAN_176", "Report");
|
||||
|
||||
define("FORLAN_177", "email notification ON by default");
|
||||
define("FORLAN_178", "Tick this to allow make the email notification checkbox be on by default");
|
||||
|
||||
define("FORLAN_179", "Adding a * to the beginning of the forum name will make this forum a container for sub-forums only. The forum theme must support this option also.");
|
||||
define("FORLAN_180", "Confirm delete operation");
|
||||
// define("FORLAN_180", "Confirm delete operation");
|
||||
//define("FORLAN_181", "Confirm Delete");
|
||||
define("FORLAN_182", "also recalculate replies for all threads in selected forum");
|
||||
define("FORLAN_183", "(this function is not allowed when selecting 'all forums' due to the number of queries it will generate)");
|
||||
|
@ -12,36 +12,7 @@
|
||||
// DEPRECATED, SUBJECT TO REMOVAL
|
||||
|
||||
|
||||
define("FORCONF_5", "Poll deleted.");
|
||||
define("FORCONF_6", "Thread deleted");
|
||||
define("FORCONF_7", "replies deleted");
|
||||
define("FORCONF_8", "Delete cancelled.");
|
||||
define("FORCONF_9", "Thread moved.");
|
||||
define("FORCONF_10", "Move cancelled.");
|
||||
define("FORCONF_11", "Back To Forums");
|
||||
define("FORCONF_12", "Forum Configuration");
|
||||
define("FORCONF_13", "Are you absolutely certain you want to delete this poll?<br />Once deleted it <b><u>cannot</u></b> be retrieved.");
|
||||
define("FORCONF_14", "Cancel");
|
||||
define("FORCONF_15", "Confirm Delete Forum Post");
|
||||
define("FORCONF_16", "Confirm Delete Poll");
|
||||
define("FORCONF_17", "posted by");
|
||||
define("FORCONF_18", "Are you absolutely certain you want to delete this forum");
|
||||
define("FORCONF_19", "thread and it's related posts?");
|
||||
define("FORCONF_20", "the poll will also be deleted");
|
||||
define("FORCONF_21", "Once deleted they");
|
||||
define("FORCONF_22", "post?<br />Once deleted it");
|
||||
define("FORCONF_23", "cannot</u></b> be retrieved");
|
||||
define("FORCONF_24", "Move thread to forum");
|
||||
define("FORCONF_25", "Move Thread");
|
||||
define("FORCONF_26", "Reply deleted");
|
||||
|
||||
define("FORCONF_27", "moved");
|
||||
|
||||
define("FORCONF_28", "Do not rename thread title");
|
||||
define("FORCONF_29", "Add");
|
||||
define("FORCONF_30", "to title");
|
||||
define("FORCONF_31", "Rename to:");
|
||||
define("FORCONF_32", "Rename thread options:");
|
||||
|
||||
|
||||
|
||||
|
@ -17,7 +17,8 @@
|
||||
|
||||
// DEPRECATED FILE - NOTIFY LAN ARE NOW IN GLOBAL
|
||||
|
||||
/*define('FORUM_NT_1', 'Forum Events');
|
||||
/*
|
||||
define('FORUM_NT_1', 'Forum Events');
|
||||
define('FORUM_NT_2', 'Thread');
|
||||
define('FORUM_NT_3', 'Post');
|
||||
define('FORUM_NT_4', 'added by');
|
||||
@ -34,4 +35,5 @@ define('FORUM_NT_NEWTHREAD_PROB', 'New thread created by probationary member');
|
||||
define('FORUM_NT_THREAD_DELETED', 'Thread deleted');
|
||||
define('FORUM_NT_THREAD_SPLIT', 'Thread split');
|
||||
define('FORUM_NT_POST_DELETED', 'Post deleted');
|
||||
define('FORUM_NT_POST_REPORTED', 'Post reported');*/
|
||||
define('FORUM_NT_POST_REPORTED', 'Post reported');
|
||||
*/
|
||||
|
@ -10,9 +10,9 @@
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("FOR_SCH_LAN_1", "Forum");
|
||||
// define("FOR_SCH_LAN_1", "Forum");
|
||||
define("FOR_SCH_LAN_2", "Select forum");
|
||||
define("FOR_SCH_LAN_3", "All Forums");
|
||||
// define("FOR_SCH_LAN_3", "All Forums");
|
||||
define("FOR_SCH_LAN_4", "Whole post");
|
||||
define("FOR_SCH_LAN_5", "As part of thread");
|
||||
|
||||
|
@ -15,22 +15,22 @@ define("FSLAN_1", "General");
|
||||
define("FSLAN_2", "Forum opened");
|
||||
define("FSLAN_3", "Open for");
|
||||
define("FSLAN_4", "Total posts");
|
||||
define("FSLAN_5", "Forum topics");
|
||||
// define("FSLAN_5", "Forum topics");
|
||||
define("FSLAN_6", "Forum replies");
|
||||
define("FSLAN_7", "Forum thread views");
|
||||
define("FSLAN_8", "Database size (forum tables only)");
|
||||
define("FSLAN_9", "Average row length in forum table");
|
||||
define("FSLAN_10", "Most active topics");
|
||||
// define("FSLAN_10", "Most active topics");
|
||||
define("FSLAN_11", "Rank");
|
||||
define("FSLAN_12", "Topic");
|
||||
define("FSLAN_13", "Replies");
|
||||
// define("FSLAN_12", "Topic");
|
||||
// define("FSLAN_13", "Replies");
|
||||
define("FSLAN_14", "Started by");
|
||||
define("FSLAN_15", "Date");
|
||||
// define("FSLAN_15", "Date");
|
||||
define("FSLAN_16", "Most viewed topics");
|
||||
define("FSLAN_17", "Views");
|
||||
define("FSLAN_18", "Top posters");
|
||||
define("FSLAN_19", "Name");
|
||||
define("FSLAN_20", "Posts");
|
||||
// define("FSLAN_17", "Views");
|
||||
// define("FSLAN_18", "Top posters");
|
||||
// define("FSLAN_19", "Name");
|
||||
// define("FSLAN_20", "Posts");
|
||||
define("FSLAN_21", "Top topic starters");
|
||||
define("FSLAN_22", "Top repliers");
|
||||
define("FSLAN_23", "Forum Statistics");
|
||||
|
@ -20,6 +20,6 @@ define('FRMUP_6','Result');
|
||||
define('FRMUP_7','Found in thread');
|
||||
define('FRMUP_8','NOT FOUND');
|
||||
define('FRMUP_9','No uploaded files found');
|
||||
define('FRMUP_10','Delete');
|
||||
// define('FRMUP_10','Delete');
|
||||
|
||||
?>
|
@ -5,7 +5,7 @@
|
||||
*
|
||||
* URL configuration language file (adminsitration)
|
||||
*/
|
||||
define("FORUM_LAN_URL_NAME", "Forum");
|
||||
// define("FORUM_LAN_URL_NAME", "Forum");
|
||||
define("FORUM_LAN_URL_DEFAULT_LABEL", "Default Forum URLs");
|
||||
define("FORUM_LAN_URL_DEFAULT_DESCR", "URLs of 'GET type' with no single entry point. Examples:<br />http://yoursite.com/e107_plugins/forum/forum.php (forum index)<br />http://yoursite.com/e107_plugins/forum/forum_viewtopic.php?id=2 (thread view)");
|
||||
|
||||
|
@ -24,7 +24,7 @@ define("NFP_7", "Postfix for too long posts?");
|
||||
define("NFP_8", "Show original topics in menu?");
|
||||
define("NFP_9", "Update menu Settings");
|
||||
define("NFP_10", "New Forum Posts Menu Configuration");
|
||||
define("NFP_11", "Posted by");
|
||||
// define("NFP_11", "Posted by");
|
||||
define("NFP_12", "Maximum age of displayed posts");
|
||||
define("NFP_13", "Use zero on a quiet site; setting a value in days will reduce database time on a busy site");
|
||||
|
||||
|
@ -17,6 +17,7 @@ $tp = e107::getParser();
|
||||
$sql = e107::getDb();
|
||||
$gen = new convert;
|
||||
$pref = e107::getPref();
|
||||
e107::lan('forum','front');
|
||||
|
||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_newforumposts_menu.php');
|
||||
include_once(e_PLUGIN.'forum/forum_class.php');
|
||||
@ -76,11 +77,11 @@ if($results = $sql->gen($qry))
|
||||
|
||||
if ($menu_pref['newforumposts_title'])
|
||||
{
|
||||
$text .= "<a href='{$url}'>{$topic}</a><br />{$post}<br /><small class='muted'>".NFP_11." {$poster} {$datestamp}</small>";
|
||||
$text .= "<a href='{$url}'>{$topic}</a><br />{$post}<br /><small class='muted'>".LAN_FORUM_0074." {$poster} {$datestamp}</small>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= "<a href='{$url}'>".NFP_11."</a> {$poster} <small class='muted'>{$datestamp}</small><br />{$post}<br />";
|
||||
$text .= "<a href='{$url}'>".LAN_FORUM_0074."</a> {$poster} <small class='muted'>{$datestamp}</small><br />{$post}<br />";
|
||||
}
|
||||
|
||||
$text .= "</li>";
|
||||
|
@ -18,15 +18,15 @@ if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$advanced['forum']['type'] = 'dropdown';
|
||||
$advanced['forum']['text'] = FOR_SCH_LAN_2.':';
|
||||
$advanced['forum']['list'][] = array('id' => 'all', 'title' => FOR_SCH_LAN_3);
|
||||
$advanced['forum']['list'][] = array('id' => 'all', 'title' => LAN_PLUGIN_FORUM_ALLFORUMS);
|
||||
|
||||
$advanced_caption['id'] = 'forum';
|
||||
$advanced_caption['title']['all'] = FOR_SCH_LAN_3;
|
||||
$advanced_caption['title']['all'] = LAN_PLUGIN_FORUM_ALLFORUMS;
|
||||
|
||||
if ($sql -> db_Select_gen("SELECT f.forum_id, f.forum_name FROM #forum AS f LEFT JOIN #forum AS fp ON fp.forum_id = f.forum_parent WHERE f.forum_parent != 0 AND fp.forum_class IN (".USERCLASS_LIST.") AND f.forum_class IN (".USERCLASS_LIST.")")) {
|
||||
while ($row = $sql -> db_Fetch()) {
|
||||
$advanced['forum']['list'][] = array('id' => $row['forum_id'], 'title' => $row['forum_name']);
|
||||
$advanced_caption['title'][$row['forum_id']] = FOR_SCH_LAN_1.' -> '.$row['forum_name'];
|
||||
$advanced_caption['title'][$row['forum_id']] = LAN_PLUGIN_FORUM_NAME.' -> '.$row['forum_name'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ function search_forum($row)
|
||||
$res['link'] = e_PLUGIN."forum/forum_viewtopic.php?".$link_id.".post";
|
||||
$res['pre_title'] = $title ? FOR_SCH_LAN_5.": " : "";
|
||||
$res['title'] = $title ? $title : LAN_SEARCH_9;
|
||||
$res['pre_summary'] = "<div class='smalltext' style='padding: 2px 0px'><a href='".e_PLUGIN."forum/forum.php'>".FOR_SCH_LAN_1."</a> -> <a href='".e_PLUGIN."forum/forum_viewforum.php?".$row['forum_id']."'>".$row['forum_name']."</a></div>";
|
||||
$res['pre_summary'] = "<div class='smalltext' style='padding: 2px 0px'><a href='".e_PLUGIN."forum/forum.php'>".LAN_PLUGIN_FORUM_NAME."</a> -> <a href='".e_PLUGIN."forum/forum_viewforum.php?".$row['forum_id']."'>".$row['forum_name']."</a></div>";
|
||||
$res['summary'] = $row['post_entry'];
|
||||
$res['detail'] = LAN_SEARCH_7."<a href='user.php?id.".$row['user_id']."'>".$row['user_name']."</a>".LAN_SEARCH_8.$datestamp;
|
||||
|
||||
|
@ -492,7 +492,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
// Edit
|
||||
if ( (USER && $this->postInfo['post_user'] == USERID && $this->thread->threadInfo['thread_active']))
|
||||
{
|
||||
$text .= "<li class='text-right'><a href='".e107::getUrl()->create('forum/thread/edit', array('id' => $this->postInfo['post_id']))."'>".LAN_FORUM_2039." ".$tp->toGlyph('edit')."</a></li>";
|
||||
$text .= "<li class='text-right'><a href='".e107::getUrl()->create('forum/thread/edit', array('id' => $this->postInfo['post_id']))."'>".LAN_EDIT." ".$tp->toGlyph('edit')."</a></li>";
|
||||
|
||||
}
|
||||
|
||||
@ -509,13 +509,13 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
|
||||
if ((USER && $this->postInfo['post_user'] != USERID && $this->thread->threadInfo['thread_active']))
|
||||
{
|
||||
$text .= "<li class='text-right'><a href='".e107::getUrl()->create('forum/thread/edit', array('id' => $this->postInfo['post_id']))."'>".LAN_FORUM_2039." ".$tp->toGlyph('edit')."</a></li>";
|
||||
$text .= "<li class='text-right'><a href='".e107::getUrl()->create('forum/thread/edit', array('id' => $this->postInfo['post_id']))."'>".LAN_EDIT." ".$tp->toGlyph('edit')."</a></li>";
|
||||
}
|
||||
|
||||
// only show delete button when post is not the initial post of the topic
|
||||
if(!$this->forum->threadDetermineInitialPost($this->postInfo['post_id']))
|
||||
{
|
||||
$text .= "<li class='text-right'><a href='".e_REQUEST_URI."' data-forum-action='deletepost' data-forum-post='".$this->postInfo['post_id']."'>".LAN_FORUM_2040." ".$tp->toGlyph('trash')."</a></li>";
|
||||
$text .= "<li class='text-right'><a href='".e_REQUEST_URI."' data-forum-action='deletepost' data-forum-post='".$this->postInfo['post_id']."'>".LAN_DELETE." ".$tp->toGlyph('trash')."</a></li>";
|
||||
}
|
||||
|
||||
if ($type == 'thread')
|
||||
|
@ -38,11 +38,11 @@ define('IMAGE_profile', '<img src="'.img_path('profile.png').'" alt="'.LAN_FORUM
|
||||
|
||||
// action
|
||||
define('IMAGE_pm', '<img src="'.img_path('pm.png').'" alt="'.LAN_FORUM_4008.'" title="'.LAN_FORUM_4008.'" class="icon S16 action" />');
|
||||
define('IMAGE_edit', '<img src="'.img_path('edit.png').'" alt="'.LAN_FORUM_2039.'" title="'.LAN_FORUM_2039.'" class="icon S16 action" />');
|
||||
define('IMAGE_edit', '<img src="'.img_path('edit.png').'" alt="'.LAN_EDIT.'" title="'.LAN_EDIT.'" class="icon S16 action" />');
|
||||
define('IMAGE_quote', '<img src="'.img_path('quote.png').'" alt="'.LAN_FORUM_2041.'" title="'.LAN_FORUM_2041.'" class="icon S16 action" />');
|
||||
define('IMAGE_track', '<img src="'.img_path('track.png').'" alt="'.LAN_FORUM_4009.'" title="'.LAN_FORUM_4009.'" class="icon S16 action" />');
|
||||
define('IMAGE_untrack', '<img src="'.img_path('untrack.png').'" alt="'.LAN_FORUM_4010.'" title="'.LAN_FORUM_4010.'" class="icon S16 action" />');
|
||||
define('IMAGE_admin_edit', '<img src="'.img_path('admin_edit.png').'" alt="'.LAN_FORUM_2039.'" title="'.LAN_FORUM_2039.'" class="icon S16 action" />');
|
||||
define('IMAGE_admin_edit', '<img src="'.img_path('admin_edit.png').'" alt="'.LAN_EDIT.'" title="'.LAN_EDIT.'" class="icon S16 action" />');
|
||||
define('IMAGE_admin_move', '<img src="'.img_path('admin_move.png').'" alt="'.LAN_FORUM_2042.'" title="'.LAN_FORUM_2042.'" class="icon S16 action" />');
|
||||
define('IMAGE_admin_split', '<img src="'.img_path('admin_split.png').'" alt="'.LAN_FORUM_2043.'" title="'.LAN_FORUM_2043.'" class="icon S16 action" />');
|
||||
define('IMAGE_admin_move2', '<img src="'.img_path('admin_move.png').'" alt="'.LAN_FORUM_2042.'" title="'.LAN_FORUM_2042.'" class="icon S16 action" />');
|
||||
@ -52,7 +52,7 @@ define('IMAGE_post', '<img src="'.img_path('post.png').'" alt="" title="" />');
|
||||
define('IMAGE_post2', '<img src="'.img_path('post2.png').'" alt="" title="" class="icon S16 action" />');
|
||||
|
||||
// Admin <input> Icons
|
||||
define('IMAGE_admin_delete', 'src="'.img_path('admin_delete.png').'" alt="'.LAN_FORUM_2040.'" title="'.LAN_FORUM_2040.'" ');
|
||||
define('IMAGE_admin_delete', 'src="'.img_path('admin_delete.png').'" alt="'.LAN_DELETE.'" title="'.LAN_DELETE.'" ');
|
||||
define('IMAGE_admin_stick', 'src="'.img_path('admin_stick.png').'" alt="'.LAN_FORUM_4011.'" title="'.LAN_FORUM_4011.'" ');
|
||||
define('IMAGE_admin_unstick', 'src="'.img_path('admin_unstick.png').'" alt="'.LAN_FORUM_4012.'" title="'.LAN_FORUM_4012.'" ');
|
||||
define('IMAGE_admin_lock', 'src="'.img_path('admin_lock.png').'" alt="'.LAN_FORUM_4013.'" title="'.LAN_FORUM_4013.'" ');
|
||||
|
@ -157,7 +157,7 @@ class plugin_forum_rewrite_url extends eUrlConfig
|
||||
e107::plugLan('forum', 'lan_forum_url');
|
||||
static $admin = array(
|
||||
'labels' => array(
|
||||
'name' => FORUM_LAN_URL_NAME, // Module name
|
||||
'name' => LAN_PLUGIN_FORUM_NAME, // Module name
|
||||
'label' => FORUM_LAN_URL_REWRITE_LABEL, // Current profile name
|
||||
'description' => FORUM_LAN_URL_REWRITE_DESCR, //
|
||||
'examples' => array("{e_PLUGIN_ABS}forum/forum.php")
|
||||
|
@ -158,7 +158,7 @@ class plugin_forum_url extends eUrlConfig
|
||||
e107::plugLan('forum', 'lan_forum_url');
|
||||
static $admin = array(
|
||||
'labels' => array(
|
||||
'name' => FORUM_LAN_URL_NAME, // Module name
|
||||
'name' => LAN_PLUGIN_FORUM_NAME, // Module name
|
||||
'label' => FORUM_LAN_URL_DEFAULT_LABEL, // Current profile name
|
||||
'description' => FORUM_LAN_URL_DEFAULT_DESCR, //
|
||||
'examples' => array("{e_PLUGIN_ABS}forum/forum_viewtopic.php?id=3&p=2")
|
||||
|
@ -72,3 +72,15 @@ define("POLLAN_44", "Delete this poll?");
|
||||
define("POLLAN_45", "Poll successfully updated");
|
||||
//define("POLLAN_46", "Field(s) left blank");
|
||||
|
||||
|
||||
// TODO NEED TO BE RENAMED!
|
||||
|
||||
// define("LAN_FORUM_3029", "If you do not wish to add a poll to your topic, leave the fields blank."); // LAN_386
|
||||
define("LAN_FORUM_3030", "Poll question"); // LAN_5
|
||||
define("LAN_FORUM_3031", "Poll answer"); // LAN_391
|
||||
define("LAN_FORUM_3032", "Add another answer"); // LAN_6
|
||||
define("LAN_FORUM_3033", "Allow multiple choices?"); // LAN_506
|
||||
define("LAN_FORUM_3034", "Vote storage method"); // POLLAN_16
|
||||
define("LAN_FORUM_3035", "Cookie"); // POLLAN_17
|
||||
define("LAN_FORUM_3036", "IP address"); // POLLAN_18
|
||||
define("LAN_FORUM_3037", "User ID (only members can vote)"); // POLLAN_19
|
||||
|
Loading…
x
Reference in New Issue
Block a user