1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 22:25:31 +02:00

Fix for user profile data. Fix for default settings of newforumposts_menu.php.

This commit is contained in:
Cameron
2016-03-23 19:34:17 -07:00
parent 825ab74984
commit 12beda569d
8 changed files with 24 additions and 8 deletions

View File

@@ -13,6 +13,11 @@
.forum-attachment-file { margin-top:15px; }
.forum-user-combo { padding-bottom:5px }
ul.newforumposts-menu { padding-left: 10px; }
ul.newforumposts-menu li { margin-bottom: 15px; }
@media all and (min-height: 800px) {
#forum, #forum-stats, #forum-rules { min-height: 500px; }
}

View File

@@ -80,7 +80,7 @@ if(!deftrue('OLD_FORUMADMIN'))
'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => 'P'),
'opt2' => array('divider'=>true),
'report/list' => array('caption'=> FORLAN_116, 'perm'=>'P'),
'post/list' => array('caption'=>FORLAN_188, 'perm'=>'P'),
'post/list' => array('caption'=>LAN_PLUGIN_FORUM_LATESTPOSTS, 'perm'=>'P'),
'main/prune' => array('caption'=> LAN_PRUNE, 'perm' => 'P'),
'main/tools' => array('caption'=>FORLAN_153, 'perm'=>'p')

View File

@@ -211,6 +211,6 @@ define("FORLAN_185", "Indicates who can create new threads");
define("FORLAN_186", "Threads per page");
define("FORLAN_187", "Number of threads displayed per page");
define("FORLAN_188", "Latest Posts");
// define("FORLAN_188", "Latest Posts");
define("FORLAN_189", "Click the 'delete' button to delete the report.<br /><br />Click the 'view' button to view the topic/thread");
?>

View File

@@ -3,7 +3,8 @@
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");
define("LAN_PLUGIN_FORUM_ALLFORUMS", "All Forums");
define("LAN_PLUGIN_FORUM_LATESTPOSTS", "Latest Posts");
// Notify
// TODO - LAN cleanup (see e_notify)

View File

@@ -71,7 +71,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
if($results = $sql->gen($qry))
{
$text = "<ul>";
$text = "<ul class='newforumposts-menu'>";
while($row = $sql->fetch())
{
@@ -99,7 +99,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
}
$post = strip_tags($tp->toHTML($row['post_entry'], true, 'emotes_off, no_make_clickable', '', $pref['menu_wordwrap']));
$post = $tp->text_truncate($post, $this->menuPref['characters'], $this->menuPref['postfix']);
$post = $tp->text_truncate($post, varset($this->menuPref['characters'],120), varset($this->menuPref['postfix'],'...'));
// Count previous posts for calculating proper (topic) page number for the current post.
// $postNum = $sql2->count('forum_post', '(*)', "WHERE post_id <= " . $row['post_id'] . " AND post_thread = " . $row['thread_id'] . " ORDER BY post_id ASC");
@@ -138,7 +138,16 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
$text = LAN_FORUM_MENU_002;
}
$caption = varset($this->menuPref['caption'][e_LANGUAGE], $this->menuPref['caption']);
if(isset($this->menuPref['caption']))
{
$caption = varset($this->menuPref['caption'][e_LANGUAGE], $this->menuPref['caption']);
}
else
{
$caption = LAN_PLUGIN_FORUM_LATESTPOSTS;
}
e107::getRender()->tablerender($caption, $text, 'nfp_menu');
}