From: <ir...@us...> - 2013-02-06 06:13:20
|
Revision: 10996 http://sourceforge.net/p/xoops/svn/10996 Author: irmtfan Date: 2013-02-06 06:13:16 +0000 (Wed, 06 Feb 2013) Log Message: ----------- bug fix: dont show topic title in list.topic.php Modified Paths: -------------- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.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 Modified: XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-02-06 03:07:29 UTC (rev 10995) +++ XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-02-06 06:13:16 UTC (rev 10996) @@ -4,7 +4,11 @@ in newbb/footer.php 2- bug fix: Undefined index: newbb config in blocks activated in some modules like profile +in newbb/class/post.php +3- bug fix: dont show topic title in list.topic.php +in newbb/class/topic.renderer.php, newbb/templates/blocks/newbb_block_list_topic.html, newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html + date 2013-02-05 =================================== 1- bug fix: when update the type for a specific forum it delete other forum's types too.(important) Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.php 2013-02-06 03:07:29 UTC (rev 10995) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/topic.renderer.php 2013-02-06 06:13:16 UTC (rev 10996) @@ -937,10 +937,12 @@ $topics[$id]['topic_read'] = empty($topic_isRead[$id]) ? 0 : 1; // add topic-read/topic-new smarty variable $topics[$id]["topic_forum_link"] = '<a href="' . XOOPS_URL . '/modules/newbb/viewforum.php?forum=' . $topics[$id]["topic_forum"] . '">' . $forum_list[$topics[$id]["topic_forum"]]["forum_name"] . '</a>'; - //irmtfan use topic_title_excerpt + //irmtfan use topic_title_excerpt -- add else if (!empty($topics[$id]["type_id"]) && isset($type_list[$topics[$id]["type_id"]])) { $topics[$id]["topic_title"] = getTopicTitle($topics[$id]["topic_title_excerpt"], $type_list[$topics[$id]["type_id"]]["type_name"], $type_list[$topics[$id]["type_id"]]["type_color"]); - } + } else { + $topics[$id]["topic_title"] = $topics[$id]["topic_title_excerpt"]; + } $topics[$id]["topic_poster"] = !empty($posters_name[$topics[$id]["topic_poster_uid"]]) ? $posters_name[$topics[$id]["topic_poster_uid"]] : $topics[$id]["topic_poster_name"]; 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 03:07:29 UTC (rev 10995) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/blocks/newbb_block_list_topic.html 2013-02-06 06:13:16 UTC (rev 10996) @@ -52,7 +52,7 @@ <{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}><{$topic.topic_title}><{else}><{$topic.topic_title_excerpt}><{/if}> + <{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}> <br /> 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 03:07:29 UTC (rev 10995) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates_fulldiv_opacity/blocks/newbb_block_list_topic.html 2013-02-06 06:13:16 UTC (rev 10996) @@ -52,7 +52,7 @@ <{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}><{$topic.topic_title}><{else}><{$topic.topic_title_excerpt}><{/if}> + <{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}> <br /> |