From: <ir...@us...> - 2013-02-07 04:06:44
|
Revision: 11001 http://sourceforge.net/p/xoops/svn/11001 Author: irmtfan Date: 2013-02-07 04:06:40 +0000 (Thu, 07 Feb 2013) Log Message: ----------- enhance the advance block add more sorts lastposttime, lastposter, lastpostmsgicon . add more display mode: attachment, read, pagenav bug fix: read topics do not show for readmode = 1 Modified Paths: -------------- XoopsModules/newbb/branches/irmtfan/newbb/blocks/list_topic.php XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.php XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php XoopsModules/newbb/branches/irmtfan/newbb/language/persian/main.php XoopsModules/newbb/branches/irmtfan/newbb/templates/blocks/newbb_block_list_topic.html XoopsModules/newbb/branches/irmtfan/newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html XoopsModules/newbb/branches/irmtfan/newbb/xoops_version.php Modified: XoopsModules/newbb/branches/irmtfan/newbb/blocks/list_topic.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/blocks/list_topic.php 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/blocks/list_topic.php 2013-02-07 04:06:40 UTC (rev 11001) @@ -30,11 +30,11 @@ // options[0] - Status in WHERE claus: all(by default), sticky, digest,lock, poll, voted, viewed, replied, read, (UN_) , active, pending, deleted (admin) (It is multi-select) // options[1] - Uid in WHERE claus: uid of the topic poster : 0 - all users (by default) // options[2] - Type in WHERE claus: topic type in the forum : 0 - none (by default) -// options[3] - Sort in ORDER claus: topic, forum, poster, replies, views, lastpost(by default),ratings, votes, publish, digest, sticky, lock, poll, type (if exist), approve(admin mode) +// options[3] - Sort in ORDER claus: topic, forum, poster, replies, views, lastpost(by default), lastposttime, lastposter, lastpostmsgicon, ratings, votes, publish, digest, sticky, lock, poll, type (if exist), approve(admin mode) // options[4] - Order in ORDER claus: Descending(by default), Ascending // options[5] - NumberToDisplay: any positive integer // options[6] - TimeDuration: negative for hours, positive for days, for instance, -5 for 5 hours and 5 for 5 days -// options[7] - DisplayMode: all fields same as sort +// options[7] - DisplayMode: all fields in sort PLUS attachment, read, pagenav // options[8] - Display Navigator: 1 (by default), 0 (No) // options[9] - Title Length : 0 - no limit and show complete title // options[10] - Post text Length: 0 - dont show post text @@ -75,7 +75,7 @@ $options_headers = explode(',', $options[7]);// headers to display in block // get the title for each header foreach ($options_headers as $header) { - $block['headers'][$header] = $topicRenderer->getSort($header, "title"); + $block['headers'][$header] = $topicRenderer->getHeader($header); } // render a list of topics using all above criterias list($block['topics'], $block['sticky']) = $topicRenderer->renderTopics(); @@ -140,8 +140,8 @@ $modeEle = new XoopsFormCheckBox(_MB_NEWBB_DISPLAYMODE, 'options[7][]', $options_headers); $modeEle->setDescription(_MB_NEWBB_DISPLAYMODE_DESC); $modeEle->columns = 4; - $modeEle->addOptionArray($sorts); - $modeEle->addOption("attachment",_MD_TOPICSHASATT); //add attachment hardcoded in NewbbTopicRenderer + $disps = $topicRenderer -> getHeader(); + $modeEle->addOptionArray($disps); $modeEle->setExtra("onchange = \"validate('options[7][]','checkbox', true)\""); // prevent user select no option // Index navigation element $navEle = new XoopsFormRadioYN(_MB_NEWBB_INDEXNAV, 'options[8]', !empty($options[8])); Modified: XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-02-07 04:06:40 UTC (rev 11001) @@ -1,3 +1,16 @@ +date 2013-02-07 +=================================== +1- improve: enhance the advance block. add more sorts: lastposttime, lastposter, lastpostmsgicon . add more display mode: attachment, read, pagenav +newbb/class/topic.renderer.php, newbb/xoops_version.php, + newbb/blocks/list_topic.php, newbb/templates/blocks/newbb_block_list_topic.html, newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html + newbb/language/LANG/main.php, newbb/docs/lang_diff.txt + +2- change default from sticky to lastpost +newbb/class/topic.renderer.php + +3- bug fix: read status: read topics do not show for readmode = 1 in list.topic.php +newbb/class/topic.renderer.php + date 2013-02-06 =================================== 1- bug fix: Undefined variable: forumCookie revert last change - use global instead of include_once @@ -15,24 +28,24 @@ in newbb/class/type.php 2- bug fix: t.topic_rating to t.rating in viewforum and topic renderer pages -in newbb/viewforum.php, newbb/topic.renderer.php +in newbb/viewforum.php, newbb/class/topic.renderer.php 3- bug fix: dont add sort to criteria if sort=null eg: /list.topic.php?sort= will cause db error -in newbb/topic.renderer.php +in newbb/class/topic.renderer.php 4- bug fix: if user set post_excerpt = 0 in preferences, there is no join in criteria and Undefined index: join error occured. -in newbb/topic.renderer.php +in newbb/class/topic.renderer.php 5- feature add: NewbbTopicRenderer class can accept multiple status. more status and sort is added. status supproted: all(by default), sticky, digest,lock, poll, voted, viewed, replied, read, (UN_) , active, pending, deleted (admin) -in newbb/topic.renderer.php +in newbb/class/topic.renderer.php 6- feature add: add "topic_title_excerpt" setting. render topics with the specific title length. 0 = dont excerpt and show the whole topic title. -in newbb/plugin.php, newbb/topic.renderer.php +in newbb/include/plugin.php, newbb/class/topic.renderer.php 7- feature add: a new block for topics using NewbbTopicRenderer class. users can drop old "Recent Topics" and "Recent Replied Topics" block and use this block instead. -in newbb/xoops_version.php, newbb/language/LANG/main.php, newbb/language/LANG/blocks.php, newbb/language/LANG/modinfo.php +in newbb/xoops_version.php, newbb/language/LANG/main.php, newbb/language/LANG/blocks.php, newbb/language/LANG/modinfo.php, newbb/docs/lang_diff.txt newbb/list.topic.php, add: newbb/blocks/list_topic.php, newbb/templates/blocks/newbb_block_list_topic.html, newbb/templates/js/language/english/newbb_validation.js newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html, newbb/templates_fulldiv_opacity/js/language/english/newbb_validation.js Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.php 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.php 2013-02-07 04:06:40 UTC (rev 11001) @@ -229,8 +229,9 @@ // START irmtfan fix read_mode = 1 bugs - for all users (member and anon) $startdate = !empty($this->vars["since"]) ? (time() - newbb_getSinceTime($this->vars["since"])) : 0; if ( $lastvisit = max($GLOBALS['last_visit'], $startdate) ) { + $readmode1query = ''; if ( $lastvisit > $startdate ) { - $this->query["where"][] = 'p.post_time < ' . $lastvisit; + $readmode1query = 'p.post_time < ' . $lastvisit; } $topics = array(); $topic_lastread = newbb_getcookie('LT', true); @@ -240,8 +241,11 @@ } } if (count($topics)>0) { - $this->query["where"][] = ' t.topic_id IN (' . implode(",", $topics) . ')'; - } + $topicquery = ' t.topic_id IN (' . implode(",", $topics) . ')'; + // because it should be OR + $readmode1query = !empty($readmode1query) ? '(' . $readmode1query . ' OR ' . $topicquery . ')' : $topicquery; + } + $this->query["where"][] = $readmode1query; } // END irmtfan fix read_mode = 1 bugs - for all users (member and anon) } @@ -400,7 +404,7 @@ //irmtfan parse status for rendering topic correctly - if empty($_GET(status)) it will show all topics include deleted and pendings. "all" instead of all if (!isset($this->vars["status"])) $this->vars["status"] = "all"; // irmtfan if sort is not set or is empty get a default sort- if empty($_GET(sort)) | if sort=null eg: /list.topic.php?sort= - if (empty($this->vars["sort"])) $this->vars["sort"] = in_array("sticky", explode(",",$this->vars["status"])) ? "lastpost" : "sticky"; + if (empty($this->vars["sort"])) $this->vars["sort"] = "lastpost"; // use lastpost instead of sticky foreach ($this->vars as $var => $val) { $this->parseVar($var, $val); @@ -434,15 +438,27 @@ "title" => _MD_VIEWS, "sort" => "t.topic_views", ), - "lastpost" => array( - "title" => _MD_LASTPOSTTIME, /*irmtfan _MD_DATE to _MD_LASTPOSTTIME*/ + "lastpost" => array( // irmtfan show topic_page_jump_icon smarty + "title" => _MD_LASTPOST, /*irmtfan _MD_DATE to _MD_LASTPOSTTIME again change to _MD_LASTPOST*/ "sort" => "t.topic_last_post_id", ), + // START irmtfan add more sorts + "lastposttime" => array( // irmtfan same as lastpost + "title" => _MD_LASTPOSTTIME, + "sort" => "t.topic_last_post_id", + ), + "lastposter" => array( // irmtfan + "title" => _MD_POSTER, + "sort" => "p.uid", // poster uid + ), + "lastpostmsgicon" => array( // irmtfan + "title" => _MD_MESSAGEICON, + "sort" => "p.icon", // post message icon + ), "ratings" => array( "title" => _MD_RATINGS, "sort" => "t.rating", // irmtfan t.topic_rating to t.rating ), - // START irmtfan add more sorts "votes" => array( "title" => _MD_VOTES, "sort" => "t.votes", @@ -497,7 +513,22 @@ } return $ret; } - + // START irmtfan add Display topic headers function + function getHeader($header = null) + { + $headersSort = $this -> getSort("", "title"); + // additional headers - important: those cannot be in sort anyway + $headers = array_merge($headersSort, array( + "attachment" => _MD_TOPICSHASATT, // show attachment smarty + "read" => _MD_MARK_UNREAD.'|'._MD_MARK_READ, // read/unread show topic_folder smarty + "pagenav" => _MD_PAGENAV_DISPLAY, // show topic_page_jump smarty - sort by topic_replies? + )); + if (empty($header)) { + return $headers; + } + return @$headers[$header]; + } + // END irmtfan add Display topic headers function function getStatus($type = null, $status = null) { $links = array( @@ -890,6 +921,7 @@ 'topic_poster_name' => !empty($myrow['poster_name']) ? $myts->htmlSpecialChars($myrow['poster_name']) : $anonymous, 'topic_views' => $myrow['topic_views'], 'topic_time' => newbb_formatTimestamp($myrow['topic_time']), + 'topic_last_post_id' => $myrow['topic_last_post_id'], //irmtfan added 'topic_last_posttime' => newbb_formatTimestamp($myrow['last_post_time']), 'topic_last_poster_uid' => $myrow['uid'], 'topic_last_poster_name' => !empty($myrow['last_poster_name']) ? $myts->htmlSpecialChars( $myrow['last_poster_name'] ) : $anonymous, Modified: XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt 2013-02-07 04:06:40 UTC (rev 11001) @@ -82,6 +82,7 @@ define('_MD_REPLIED','Replied topics'); define('_MD_READ','Read topics'); define('_MD_POLL_POLL','Poll'); +define("_MD_PAGENAV_DISPLAY","Display of navigation"); admin.php --------- Modified: XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php 2013-02-07 04:06:40 UTC (rev 11001) @@ -522,4 +522,5 @@ define('_MD_REPLIED','Replied topics'); define('_MD_READ','Read topics'); define('_MD_POLL_POLL','Poll'); +define("_MD_PAGENAV_DISPLAY","Display of navigation"); ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/language/persian/main.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/language/persian/main.php 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/language/persian/main.php 2013-02-07 04:06:40 UTC (rev 11001) @@ -520,4 +520,5 @@ define('_MD_REPLIED','عنوان های دارای پاسخ'); define('_MD_READ','عنوان های خوانده شده'); define('_MD_POLL_POLL','نظرسنجی'); +define("_MD_PAGENAV_DISPLAY","صفحه بندی"); ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates/blocks/newbb_block_list_topic.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/blocks/newbb_block_list_topic.html 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/blocks/newbb_block_list_topic.html 2013-02-07 04:06:40 UTC (rev 11001) @@ -1,7 +1,7 @@ <!-- a new block template for newbb --> <!-- all classes can be found in xoops.css --> <!-- define your desired width here --> -<{assign var=minwidth value=300}> <!-- minimum block minwidth property --> +<{assign var=minwidth value=200}> <!-- minimum block minwidth property --> <{assign var=topicwidth value=100}> <!-- maximum topic width property --> <{if $block.headers.forum}> @@ -21,22 +21,22 @@ <{/if}> <{if $block.headers.lastpost}> <{assign var=minwidth value=$minwidth+100}> - <{assign var=topicwidth value=$topicwidth-30}> + <{assign var=topicwidth value=$topicwidth-20}> <{/if}> <{assign var=block_topic value=width$topicwidth}> <!-- block topic width after reduction above --> <div class="outer" style="min-width: <{$minwidth}>px;"> - <div class="head border x-small center"> - <div class="<{$block_topic}> floatleft"><{$block.headers.topic}></div> + <div class="head border x-small"> + <div class="<{$block_topic}> floatleft center"><{$block.headers.topic}></div> <{if $block.headers.forum}> - <div class="<{$block_forum}> floatleft"><{$block.headers.forum}></div> + <div class="<{$block_forum}> floatleft center"><{$block.headers.forum}></div> <{/if}> <{if $block.headers.replies}> - <div class="<{$block_reply}> floatleft"><{$block.headers.replies}></div> + <div class="<{$block_reply}> floatleft center"><{$block.headers.replies}></div> <{/if}> <{if $block.headers.views}> - <div class="<{$block_view}> floatleft"><{$block.headers.views}></div> + <div class="<{$block_view}> floatleft center"><{$block.headers.views}></div> <{/if}> - <div style="overflow: hidden;"><{$block.headers.lastpost}></div> + <div style="overflow: hidden;" class="center" ><{$block.headers.lastpost}></div> <div class="clear"></div> </div> <!-- start forum topic --> @@ -49,14 +49,15 @@ <{if $topic.approve eq -1}><a href="<{$xoops_url}>/modules/newbb/<{$topic.topic_link}>&status=deleted#admin" target="_self" title="<{$smarty.const._MD_TYPE_DELETED}>"><{$smarty.const._MD_TYPE_DELETED}></a><{/if}> <br /> <{/if}> + <{if $block.headers.read}><{$topic.topic_folder}><{/if}> <{if $block.headers.topic}> - <{$topic.topic_folder}> <a href="<{$xoops_url}>/modules/newbb/<{$topic.topic_link}>" title="<{$topic.topic_excerpt}>"> <{if $block.headers.type}><{$topic.topic_title}><{else}><{$topic.topic_title_excerpt}><{/if}> </a> - <{if $block.headers.attachment}><{$topic.attachment}><{/if}><{$topic.topic_page_jump}> + <{if $block.headers.pagenav}><{$topic.topic_page_jump}><{/if}> <br /> <{/if}> + <{if $block.headers.attachment}><{$topic.attachment}><{/if}> <{if $block.headers.lock}><{$topic.lock}><{/if}> <{if $block.headers.sticky}><{$topic.sticky}><{/if}> <{if $block.headers.digest}><{$topic.digest}><{/if}> @@ -67,10 +68,11 @@ <{$block.headers.publish}>: <{$topic.topic_time}> </span> <{/if}> - <{if $block.headers.votes && $topic.votes}> + <{if $topic.votes}> <br /> <span class="xx-small"> - <{$block.headers.votes}>: <{$topic.votes}><{if $block.headers.ratings}> <{$topic.rating_img}><{/if}> + <{if $block.headers.votes}><{$block.headers.votes}>: <{$topic.votes}><{/if}> + <{if $block.headers.ratings}> <{$topic.rating_img}><{/if}> </span> <{/if}> <{if $block.headers.poster}> @@ -90,10 +92,12 @@ <div class="<{$block_view}> floatleft center"><{$topic.topic_views}></div> <{/if}> <div style="overflow: hidden;" class="right"> - <{if $block.headers.lastpost}> - <{$topic.topic_last_posttime}><br /> - <{$topic.topic_last_poster}> <{$topic.topic_page_jump_icon}> - <{/if}> + <{if $block.headers.lastpostmsgicon}><{$topic.topic_icon}><{/if}> + <{if $block.headers.lastposttime}><{$topic.topic_last_posttime}><{/if}> + <br /> + <{if $block.headers.lastposter}><{$topic.topic_last_poster}><{/if}> + + <{if $block.headers.lastpost}><{$topic.topic_page_jump_icon}><{/if}> </div> <div class="clear"></div> </div> Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html 2013-02-07 04:06:40 UTC (rev 11001) @@ -1,7 +1,7 @@ <!-- a new block template for newbb --> <!-- all classes can be found in xoops.css --> <!-- define your desired width here --> -<{assign var=minwidth value=300}> <!-- minimum block minwidth property --> +<{assign var=minwidth value=200}> <!-- minimum block minwidth property --> <{assign var=topicwidth value=100}> <!-- maximum topic width property --> <{if $block.headers.forum}> @@ -21,22 +21,22 @@ <{/if}> <{if $block.headers.lastpost}> <{assign var=minwidth value=$minwidth+100}> - <{assign var=topicwidth value=$topicwidth-30}> + <{assign var=topicwidth value=$topicwidth-20}> <{/if}> <{assign var=block_topic value=width$topicwidth}> <!-- block topic width after reduction above --> <div class="outer" style="min-width: <{$minwidth}>px;"> - <div class="head border x-small center"> - <div class="<{$block_topic}> floatleft"><{$block.headers.topic}></div> + <div class="head border x-small"> + <div class="<{$block_topic}> floatleft center"><{$block.headers.topic}></div> <{if $block.headers.forum}> - <div class="<{$block_forum}> floatleft"><{$block.headers.forum}></div> + <div class="<{$block_forum}> floatleft center"><{$block.headers.forum}></div> <{/if}> <{if $block.headers.replies}> - <div class="<{$block_reply}> floatleft"><{$block.headers.replies}></div> + <div class="<{$block_reply}> floatleft center"><{$block.headers.replies}></div> <{/if}> <{if $block.headers.views}> - <div class="<{$block_view}> floatleft"><{$block.headers.views}></div> + <div class="<{$block_view}> floatleft center"><{$block.headers.views}></div> <{/if}> - <div style="overflow: hidden;"><{$block.headers.lastpost}></div> + <div style="overflow: hidden;" class="center" ><{$block.headers.lastpost}></div> <div class="clear"></div> </div> <!-- start forum topic --> @@ -49,14 +49,15 @@ <{if $topic.approve eq -1}><a href="<{$xoops_url}>/modules/newbb/<{$topic.topic_link}>&status=deleted#admin" target="_self" title="<{$smarty.const._MD_TYPE_DELETED}>"><{$smarty.const._MD_TYPE_DELETED}></a><{/if}> <br /> <{/if}> + <{if $block.headers.read}><{$topic.topic_folder}><{/if}> <{if $block.headers.topic}> - <{$topic.topic_folder}> <a href="<{$xoops_url}>/modules/newbb/<{$topic.topic_link}>" title="<{$topic.topic_excerpt}>"> <{if $block.headers.type}><{$topic.topic_title}><{else}><{$topic.topic_title_excerpt}><{/if}> </a> - <{if $block.headers.attachment}><{$topic.attachment}><{/if}><{$topic.topic_page_jump}> + <{if $block.headers.pagenav}><{$topic.topic_page_jump}><{/if}> <br /> <{/if}> + <{if $block.headers.attachment}><{$topic.attachment}><{/if}> <{if $block.headers.lock}><{$topic.lock}><{/if}> <{if $block.headers.sticky}><{$topic.sticky}><{/if}> <{if $block.headers.digest}><{$topic.digest}><{/if}> @@ -67,10 +68,11 @@ <{$block.headers.publish}>: <{$topic.topic_time}> </span> <{/if}> - <{if $block.headers.votes && $topic.votes}> + <{if $topic.votes}> <br /> <span class="xx-small"> - <{$block.headers.votes}>: <{$topic.votes}><{if $block.headers.ratings}> <{$topic.rating_img}><{/if}> + <{if $block.headers.votes}><{$block.headers.votes}>: <{$topic.votes}><{/if}> + <{if $block.headers.ratings}> <{$topic.rating_img}><{/if}> </span> <{/if}> <{if $block.headers.poster}> @@ -90,10 +92,12 @@ <div class="<{$block_view}> floatleft center"><{$topic.topic_views}></div> <{/if}> <div style="overflow: hidden;" class="right"> - <{if $block.headers.lastpost}> - <{$topic.topic_last_posttime}><br /> - <{$topic.topic_last_poster}> <{$topic.topic_page_jump_icon}> - <{/if}> + <{if $block.headers.lastpostmsgicon}><{$topic.topic_icon}><{/if}> + <{if $block.headers.lastposttime}><{$topic.topic_last_posttime}><{/if}> + <br /> + <{if $block.headers.lastposter}><{$topic.topic_last_poster}><{/if}> + + <{if $block.headers.lastpost}><{$topic.topic_page_jump_icon}><{/if}> </div> <div class="clear"></div> </div> Modified: XoopsModules/newbb/branches/irmtfan/newbb/xoops_version.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/xoops_version.php 2013-02-06 09:35:02 UTC (rev 11000) +++ XoopsModules/newbb/branches/irmtfan/newbb/xoops_version.php 2013-02-07 04:06:40 UTC (rev 11001) @@ -238,7 +238,7 @@ 'name' => _MI_NEWBB_BLOCK_LIST_TOPIC, 'description' => "Shows a list of topics (advance renderer)", 'show_func' => "newbb_list_topic_show", - 'options' => "all|0|0|lastpost|0|5|360|topic,forum,poster,replies,lastpost,publish|1|0|200|0", + 'options' => "all|0|0|lastpost|0|5|360|topic,forum,replies,lastpost,lastposttime,lastposter,lastpostmsgicon,publish|1|0|200|0", 'edit_func' => "newbb_list_topic_edit", 'template' => 'newbb_block_list_topic.html'); // irmtfan END add list topic block |