mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Closes #2796 - Scrolling option added to Forum menu. newforumposts_main is no longer needed. Use newsforumposts_menu with 'main' as the template.
This commit is contained in:
parent
75fcecf23c
commit
8053319b5c
@ -32,10 +32,10 @@ class forum_menu
|
||||
$fields = array();
|
||||
$fields['caption'] = array('title'=> LAN_FORUM_MENU_004, 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'));
|
||||
$fields['display'] = array('title'=> LAN_FORUM_MENU_005, 'type'=>'text', 'writeParms'=>array('size'=>'mini','pattern'=>'[0-9]*'));
|
||||
$fields['maxage'] = array('title'=> LAN_FORUM_MENU_0012, 'type'=>'text', 'help'=>LAN_FORUM_MENU_0013, 'writeParms'=>array('size'=>'mini','pattern'=>'[0-9]*'));
|
||||
$fields['characters'] = array('title'=> LAN_FORUM_MENU_006, 'type'=>'text', 'writeParms'=>array('size'=>'mini','pattern'=>'[0-9]*'));
|
||||
$fields['maxage'] = array('title'=> LAN_FORUM_MENU_012, 'type'=>'text', 'help'=>LAN_FORUM_MENU_013, 'writeParms'=>array('size'=>'mini','pattern'=>'[0-9]*'));
|
||||
$fields['characters'] = array('title'=> LAN_FORUM_MENU_006, 'type'=>'text', 'writeParms'=>array('size'=>'mini','pattern'=>'[0-9]*'));
|
||||
$fields['postfix'] = array('title'=> LAN_FORUM_MENU_007, 'type'=>'text', 'writeParms'=>array('size'=>'mini'));
|
||||
// $fields['title'] = array('title'=> LAN_FORUM_MENU_008, 'type'=>'boolean');
|
||||
$fields['scroll'] = array('title'=> LAN_FORUM_MENU_014, 'type'=>'text', 'writeParms'=>array('size'=>'mini','pattern'=>'[0-9]*'), 'help'=>LAN_FORUM_MENU_015);
|
||||
$fields['layout'] = array('title'=> LAN_TEMPLATE, 'type'=>'dropdown', 'writeParms'=>array('optArray'=>$layouts[0]));
|
||||
|
||||
return $fields;
|
||||
|
@ -18,10 +18,12 @@ define("LAN_FORUM_MENU_006", "Number of characters to display?");
|
||||
define("LAN_FORUM_MENU_007", "Postfix for too long posts?");
|
||||
define("LAN_FORUM_MENU_008", "Show original topics in menu?");
|
||||
define("LAN_FORUM_MENU_009", "Update menu Settings");
|
||||
define("LAN_FORUM_MENU_0010", "New Forum Posts Menu Configuration");
|
||||
// define("LAN_FORUM_MENU_010", "New Forum Posts Menu Configuration");
|
||||
|
||||
define("LAN_FORUM_MENU_0012", "Maximum age of displayed posts");
|
||||
define("LAN_FORUM_MENU_0013", "Use zero on a quiet site; setting a value in days will reduce database time on a busy site");
|
||||
define("LAN_FORUM_MENU_012", "Maximum age of displayed posts");
|
||||
define("LAN_FORUM_MENU_013", "Use zero on a quiet site; setting a value in days will reduce database time on a busy site");
|
||||
|
||||
define("LAN_FORUM_MENU_014", "Scrolling layer height (in pixels)");
|
||||
define("LAN_FORUM_MENU_015", "Leave blank for no scrolling");
|
||||
|
||||
?>
|
@ -224,6 +224,10 @@ if(!class_exists('forum_newforumposts_menu'))
|
||||
$caption = LAN_PLUGIN_FORUM_LATESTPOSTS;
|
||||
}
|
||||
|
||||
if(!empty($this->menuPref['scroll']))
|
||||
{
|
||||
$text = "<div class='newforumposts-menu-scroll' style='border: 0; width: auto; height: ".intval($this->menuPref['scroll'])."px; overflow: auto; '>".$text."</div>";
|
||||
}
|
||||
// e107::debug('menuPref', $this->menuPref);
|
||||
|
||||
$ns->tablerender($caption, $text, 'nfp_menu');
|
||||
|
Loading…
x
Reference in New Issue
Block a user