From: <ir...@us...> - 2012-08-27 08:04:14
|
Revision: 10122 http://xoops.svn.sourceforge.net/xoops/?rev=10122&view=rev Author: irmtfan Date: 2012-08-27 08:04:06 +0000 (Mon, 27 Aug 2012) Log Message: ----------- remove icon_path, simplyify infobox, css3 text buttons introduced Modified Paths: -------------- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt XoopsModules/newbb/branches/irmtfan/newbb/class/forum.php XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php XoopsModules/newbb/branches/irmtfan/newbb/class/user.php XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt XoopsModules/newbb/branches/irmtfan/newbb/include/images.php XoopsModules/newbb/branches/irmtfan/newbb/include/js/newbb_toggle.js XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php XoopsModules/newbb/branches/irmtfan/newbb/language/persian/main.php XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_index.html XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_thread.html XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewforum_subforum.html XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewtopic.html XoopsModules/newbb/branches/irmtfan/newbb/viewpost.php XoopsModules/newbb/branches/irmtfan/newbb/viewtopic.php Added Paths: ----------- XoopsModules/newbb/branches/irmtfan/newbb/templates/images/icon/less.png Modified: XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2012-08-27 08:04:06 UTC (rev 10122) @@ -1,3 +1,22 @@ +date: 2012-08-27 +================================================ +1- remove icon_path and use newbb_displayImage +newbb/class/forum.php, newbb/templates/newbb_index.html, newbb/templates/newbb_viewforum_subforum.html + +2- remove icon_path and define anonym icon and use newbb_displayImage +newbb/viewpost.php, newbb/viewtopic.php, newbb/include/images.php, newbb/templates/newbb_thread.html + +3- simplyify infobox and add alt and title show/hide definitions and alt key +newbb/viewtopic.php, newbb/templates/newbb_thread.html, newbb/include/js/newbb_toggle.js, newbb/language/english/main.php newbb/docs/lang_diff.txt +newbb/templates/images/language/english/style.css +newbb/templates/images/icon/less.png + +4- a little correctness. dot removed +newbb/class/user.php + +5- feature improve: css3 text buttons introduced and used (DCrussader/irmtfan) +newbb/class/icon.php, newbb/templates/images/language/english/style.css class="forum_icon" id=$image_name + date: 2012-08-26 ================================================ 1- merge with alfred. Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/forum.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/forum.php 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/forum.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -804,9 +804,8 @@ } $_forum_data['forum_lastpost_subject'] = $subject; } - $icon_handler = newbb_getIconHandler(); - $_forum_data['forum_icon_path']= $icon_handler->getPath("icon"); - $_forum_data['forum_lastpost_icon'] = 'lastposticon.png'; + // irmtfan - remove icon_path and use newbb_displayImage + $_forum_data['forum_lastpost_icon'] = newbb_displayImage('lastposticon',_MD_NEWBB_GOTOLASTPOST); endif; Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -150,9 +150,12 @@ function assignImage($image, $alt = "", $extra = "") { $this->setImage($image, $alt, $extra); - // START hacked by iemrfan - return $alt; - // END hacked by iemrfan + // START hacked by iemrfan - improve to CSS3 buttons + if ($alt !='') { + return "<button {$extra} id={$image}>$alt</button>"; + } + return true; + // END hacked by iemrfan - improve to CSS3 buttons } function assignImages($images) Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/user.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/user.php 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/user.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -180,14 +180,14 @@ $userinfo["rank_image"] = $userrank['image']; $userinfo["rank_title"] = $userrank['title']; } - // END hacked by irmtfan - easier rank getting + // END hacked by irmtfan - easier rank getting - a little correctness dot removed // START hacked by irmtfan - easier groups getting - can we use $_SESSION['xoopsUserGroups']??? //checks for user's groups $userinfo["groups"] = array(); $member_handler =& xoops_gethandler('member'); $usergroups =& $member_handler->getGroupsByUser($userinfo["uid"], true); foreach ($usergroups as $group) { - $userinfo["groups"][] .= $group->getVar('name'); + $userinfo["groups"][] = $group->getVar('name'); } // END hacked by irmtfan - easier groups getting - can we use $_SESSION['xoopsUserGroups']??? $userinfo["from"] = $user->getVar('user_from'); Modified: XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/docs/lang_diff.txt 2012-08-27 08:04:06 UTC (rev 10122) @@ -35,3 +35,12 @@ added: define('_MD_NEWBB_MAXPIC','Images at the max. Size %s X %s pixels.'); define('_MD_NEWBB_SEARCHDISABLED','The search is disabled and can not be used.'); + +Version 4.3 rev.10109 +---------------- +main.php +--------- +revise: +define('_MD_NEWBB_SEEUSERDATA','See User information'); +added: +define('_MD_NEWBB_HIDEUSERDATA','Hide User information'); Modified: XoopsModules/newbb/branches/irmtfan/newbb/include/images.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/include/images.php 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/include/images.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -25,6 +25,7 @@ */ // Forum image type +// irmtfan add anonym.png icon $forumImage[''] = $forumImage['blank'] = $forumImage['attachment'] = @@ -80,7 +81,7 @@ $forumImage['delicious'] = $forumImage['technorati'] = $forumImage['wong'] = - +$forumImage['anonym'] = "icon"; for($i = 1; $i <= 5; $i++ ) { Modified: XoopsModules/newbb/branches/irmtfan/newbb/include/js/newbb_toggle.js =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/include/js/newbb_toggle.js 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/include/js/newbb_toggle.js 2012-08-27 08:04:06 UTC (rev 10122) @@ -62,7 +62,7 @@ } } -function ToggleBlockCategory(block, icon, src_expand, src_collapse) +function ToggleBlockCategory(block, icon, src_expand, src_collapse, alt_expand, alt_collapse) { if (document.getElementById) { @@ -70,12 +70,18 @@ { document.getElementById(block).style.display = 'none'; icon.src = src_collapse; + icon.alt= alt_collapse; + icon.title= alt_collapse; + SaveCollapsed(block, true); } else { document.getElementById(block).style.display = 'block'; icon.src = src_expand; + icon.alt= alt_expand; + icon.title= alt_expand; + SaveCollapsed(block, false); } } @@ -85,12 +91,18 @@ { document.all[block].style.display = 'none'; icon.src = src_collapse; + icon.alt= alt_collapse; + icon.title= alt_collapse; + SaveCollapsed(block, true); } else { document.all[block].style.display = 'block'; icon.src = src_expand; + icon.alt= alt_expand; + icon.title= alt_expand; + SaveCollapsed(block, false); } } @@ -160,4 +172,3 @@ } return null; } - Modified: XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/language/english/main.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -479,10 +479,11 @@ //4.3 define("_MD_GO","Go"); -define('_MD_NEWBB_SEEUSERDATA','User information'); +define('_MD_NEWBB_SEEUSERDATA','See User information'); define('_MD_NEWBB_MAXKB','File is too big (max %s Kb possible).'); define('_MD_NEWBB_UPLOAD_ERRNODEF','undefined Error'); define('_MD_NEWBB_MAXUPLOADFILEINI','The uploaded file exceeds the upload_max_filesize directive in php.ini.'); define('_MD_NEWBB_MAXPIC','Images at the max. Size %s X %s pixels.'); define('_MD_NEWBB_SEARCHDISABLED','The search is disabled and can not be used.'); +define('_MD_NEWBB_HIDEUSERDATA','Hide User information'); ?> \ 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 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/language/persian/main.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -479,10 +479,11 @@ //4.3 define("_MD_GO","Go"); -define('_MD_NEWBB_SEEUSERDATA','نمایش/مخفی کردن اطلاعات کاربر'); +define('_MD_NEWBB_SEEUSERDATA','نمایش اطلاعات کاربر'); define('_MD_NEWBB_MAXKB','فایل خیلی بزرگ است (حداکثر %s Kb ممکن است).'); define('_MD_NEWBB_UPLOAD_ERRNODEF','یک ارور در بارگذاری اتفاق افتاد.'); define('_MD_NEWBB_MAXUPLOADFILEINI','فایل بارگذاری شده بیشتر از مقدار مجاز در متغیر upload_max_filesize تعریف شده در php.ini است.'); define('_MD_NEWBB_MAXPIC','تصاویر در حداکثر اندازه خود میتوانند %s X %s پیکسل داشته باشند.'); define('_MD_NEWBB_SEARCHDISABLED','امکان جستجو در سایت غیر فعال شده است. برای فعال کردن آن به مدیریت سیستم مراجعه کنید.'); +define('_MD_NEWBB_HIDEUSERDATA','مخفی کردن اطلاعات کاربر'); ?> \ No newline at end of file Added: XoopsModules/newbb/branches/irmtfan/newbb/templates/images/icon/less.png =================================================================== (Binary files differ) Property changes on: XoopsModules/newbb/branches/irmtfan/newbb/templates/images/icon/less.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css 2012-08-27 08:04:06 UTC (rev 10122) @@ -316,4 +316,42 @@ text-align: center; margin: 3px; } +.pointer { + cursor:pointer; + padding:2px; +} +/* irmtfan source: http://jsfiddle.net/VTLmj/ +you can customize each button like this: +button.forum_icon#p_edit +button.forum_icon#p_edit:hover +button.forum_icon#p_edit:active +find all image names in newbb/include/images.php +*/ +button.forum_icon { +background: #407DC7; +background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#407DC7), to(#4279B8)); +background-image: -webkit-linear-gradient(top, #407DC7, #4279B8); +background-image: -moz-linear-gradient(top, #407DC7, #4279B8); +background-image: -ms-linear-gradient(top, #407DC7, #4279B8); +background-image: -o-linear-gradient(top, #407DC7, #4279B8); +border-width: 1px; +color: white; +padding: 4px 4px; +text-shadow: 0 1px 0 gray; +border-color: white #A1C1E6 #2B4763 #A1C1E6; +border-style: solid; +border-radius: 5px; +box-shadow: 0 1px 7px #080808; +font-family: Tahoma; +} +button.forum_icon:hover { +box-shadow: 0 1px 5px #222; +} + +button.forum_icon:active { +box-shadow: inset 0 1px 7px #565656; +border-width: 1px; +border-color: white #a1c1e6 black #a1c1e6; +border-style: solid; +} /* color - end */ \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css 2012-08-27 08:04:06 UTC (rev 10122) @@ -319,4 +319,42 @@ text-align: center; margin: 3px; } +.pointer { + cursor:pointer; + padding:2px; +} +/* irmtfan source: http://jsfiddle.net/VTLmj/ +you can customize each button like this: +button.forum_icon#p_edit +button.forum_icon#p_edit:hover +button.forum_icon#p_edit:active +find all image names in newbb/include/images.php +*/ +button.forum_icon { +background: #407DC7; +background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#407DC7), to(#4279B8)); +background-image: -webkit-linear-gradient(top, #407DC7, #4279B8); +background-image: -moz-linear-gradient(top, #407DC7, #4279B8); +background-image: -ms-linear-gradient(top, #407DC7, #4279B8); +background-image: -o-linear-gradient(top, #407DC7, #4279B8); +border-width: 1px; +color: white; +padding: 4px 4px; +text-shadow: 0 1px 0 gray; +border-color: white #A1C1E6 #2B4763 #A1C1E6; +border-style: solid; +border-radius: 5px; +box-shadow: 0 1px 7px #080808; +font-family: Tahoma; +} +button.forum_icon:hover { +box-shadow: 0 1px 5px #222; +} + +button.forum_icon:active { +box-shadow: inset 0 1px 7px #565656; +border-width: 1px; +border-color: white #a1c1e6 black #a1c1e6; +border-style: solid; +} /* color - end */ \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_index.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_index.html 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_index.html 2012-08-27 08:04:06 UTC (rev 10122) @@ -1,360 +1,360 @@ -<div class="forum_header"> -<!-- irmtfan hardcode remove style="float: left;" --> - <div class="forum_title"> - <h2><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php"><{$index_title}></a></h2> -<!-- irmtfan hardcode remove align="left" --> - <hr class="align_left" width="50%" size="1" /> - <{$index_desc}> - </div> -</div> -<div style="clear:both;"></div> - -<{if $viewer_level gt 1}> - <br /> - <div class="forum_stats"> - <div class="forum_stats_left"> - <{$smarty.const._MD_TOPIC}>: - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=active#admin" target="_self" title="<{$smarty.const._MD_TYPE_ADMIN}>"><{$smarty.const._MD_TYPE_ADMIN}></a> | - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=pending#admin" target="_self" title="<{$smarty.const._MD_TYPE_PENDING}>"><{if $wait_new_topic}>(<font color="red"><b><{$wait_new_topic}></b></font>) <{/if}><{$smarty.const._MD_TYPE_PENDING}></a> | - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_TYPE_DELETED}>"><{if $delete_topic}>(<font color="red"><b><{$delete_topic}></b></font>) <{/if}><{$smarty.const._MD_TYPE_DELETED}></a><br /> - <{$smarty.const._MD_POST2}>: - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=active#admin" target="_self" title="<{$smarty.const._MD_TYPE_ADMIN}>"><{$smarty.const._MD_TYPE_ADMIN}></a> | - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=pending#admin" target="_self" title="<{$smarty.const._MD_TYPE_PENDING}>"><{if $wait_new_post}>(<font color="red"><b><{$wait_new_post}></b></font>) <{/if}><{$smarty.const._MD_TYPE_PENDING}></a> | - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_TYPE_DELETED}>"><{if $delete_post}>(<font color="red"><b><{$delete_post}></b></font>) <{/if}><{$smarty.const._MD_TYPE_DELETED}></a> - </div> - <div class="forum_stats_right"> - <{if $report_post}><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/admin_report.php"><{$report_post}></a><{/if}> - <br /><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/moderate.php" target="_self" title="<{$smarty.const._MD_TYPE_SUSPEND}>"><{$smarty.const._MD_TYPE_SUSPEND}></a> | - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/index.php" target="_self" title="<{$smarty.const._MD_ADMINCP}>"><{$smarty.const._MD_ADMINCP}></a> - </div> - <div style="clear:both;"></div> - </div> -<{/if}> -<br style="clear: both;" /> -<div class="dropdown"> - <{includeq file="db:newbb_index_menu.html"}> -</div> -<br style="clear: both;" /> -<br /> - -<!-- start forum categories --> -<div class="index_category"> - <!-- start forum categories --> - <{foreachq item=category from=$categories}> - <table class="index_category" cellspacing="0" width="100%"> - <tr class="head"> - <td width="3%" valign="middle" align="center"> - <img onclick="ToggleBlockCategory('<{$category.cat_element_id}>', this, '<{$category_icon.expand}>', '<{$category_icon.collapse}>')" src="<{$category.cat_icon_display}>" alt="" /> - </td> - <{if $category.cat_image}> - <td width="8%"><img src="<{$category.cat_image}>" alt="<{$category.cat_title}>" /></td> - <{/if}> -<!-- irmtfan hardcode removed align="left" --> - <td class="align_left"> - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php?cat=<{$category.cat_id}>"><{$category.cat_title}></a> - <{if $category.cat_description}><p class="desc"><{$category.cat_description}></p><{/if}> - </td> - <{if $category.cat_sponsor}> -<!-- irmtfan hardcode removed align="right" --> - <td width="15%" nowrap="nowrap" class="align_right"> - <p class="desc"><a href="<{$category.cat_sponsor.link}>" title="<{$category.cat_sponsor.title}>" target="_blank"><{$category.cat_sponsor.title}></a></p> - </td> - <{/if}> - </tr> - </table> - - <div id="<{$category.cat_element_id}>" style="display: <{$category.cat_display}>"> - <table border="0" cellspacing="2" cellpadding="0" width="100%"> - <{if $category.forums}> - <tr class="head" align="center"> - <td width="5%"> </td> - <{if $subforum_display == "expand"}> -<!-- irmtfan hardcode removed align="left" --> - <td colspan="2" width="37%" nowrap="nowrap" class="align_left"><{$smarty.const._MD_FORUM}></td> - <{else}> -<!-- irmtfan hardcode removed align="left" --> - <td width="37%" nowrap="nowrap" class="align_left"><{$smarty.const._MD_FORUM}></td> - <{/if}> - <td width="9%" nowrap="nowrap"><{$smarty.const._MD_TOPICS}></td> - <td width="9%" nowrap="nowrap"><{$smarty.const._MD_POSTS}></td> - <td width="40%" nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></td> - </tr> - <{/if}> - - <!-- start forums --> - <{if $subforum_display == "expand"}> - <{foreachq item=forum from=$category.forums}> - <tr> - <td width="5%" class="even" align="center" valign="middle"><{$forum.forum_folder}></td> - <td colspan="2" class="odd"> - <div id="index_forum"> - <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a> - <{if $rss_enable}> - (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) - <{/if}> - <br /><{$forum.forum_desc}> - </span> - <{if $forum.forum_moderators}> - <span class="extra"> - <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}> - </span> - <{/if}> - </div> - </td> - <td class="even" align="center" valign="middle"> - <{if $stats[$forum.forum_id].topic.day}><strong><{$stats[$forum.forum_id].topic.day}></strong>/<{/if}> - <{$forum.forum_topics}> - </td> - <td class="odd" align="center" valign="middle"> - <{if $stats[$forum.forum_id].post.day}><strong><{$stats[$forum.forum_id].post.day}></strong>/<{/if}> - <{$forum.forum_posts}> - </td> -<!-- irmtfan hardcode removed align="right" --> - <td class="even" class="align_right" valign="middle"> - <{if $forum.forum_lastpost_subject}> - <{$forum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$forum.forum_lastpost_user}><br /> - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$forum.forum_lastpost_id}>"> - <{$forum.forum_lastpost_subject}> -<!-- irmtfan hardcode removed icon_path --> -<img src="<{$xoops_url}><{$forum.forum_icon_path}>/<{$forum.forum_lastpost_icon}>" alt="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" title="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" /> - </a> - <{else}> - <{$smarty.const._AM_NEWBB_NOTOPIC}> - <{/if}> - </td> - </tr> - - <{if $forum.subforum}> - <tr class="head" > - <td width="5%"> </td> - <td width="5%" align="center"><{$img_subforum}> </td> - <td width="32%" align="center"><{$smarty.const._MD_SUBFORUMS}> </td> - <td width="9%" nowrap="nowrap"> </td> - <td width="9%" nowrap="nowrap"> </td> - <td width="40%" nowrap="nowrap"> </td> - </tr> - <{foreachq item=subforum from=$forum.subforum}> - <tr> - <td class="odd" width="5%"> </td> - <td class="even" align="center" valign="middle" width="5%"><{$subforum.forum_folder}></td> - <td width="32%" class="odd"> - <div id="index_forum"> - <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$subforum.forum_id}>"><strong><{$subforum.forum_name}></strong></a> - <{if $rss_enable}> - (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$subforum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) - <{/if}> - <br /><{$subforum.forum_desc}> - </span> - <{if $subforum.forum_moderators}> - <span class="extra"> - <{$smarty.const._MD_MODERATOR}>: <{$subforum.forum_moderators}> - </span> - <{/if}> - </div> - </td> - <td class="even" width="9%" align="center" valign="middle"> - <{if $stats[$subforum.forum_id].topic.day}><strong><{$stats[$subforum.forum_id].topic.day}></strong>/<{/if}> - <{$subforum.forum_topics}> - </td> - <td class="odd" width="9%" align="center" valign="middle"> - <{if $stats[$subforum.forum_id].post.day}><strong><{$stats[$subforum.forum_id].post.day}></strong>/<{/if}> - <{$subforum.forum_posts}> - </td> -<!-- irmtfan hardcode removed align="right" --> - - <td class="even" width="40%" class="align_right" valign="middle"> - <{if $subforum.forum_lastpost_subject}> - <{$subforum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$subforum.forum_lastpost_user}><br /> - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$subforum.forum_lastpost_id}>"> - <{$subforum.forum_lastpost_subject}> -<!-- irmtfan hardcode removed icon_path --> -<img src="<{$xoops_url}><{$subforum.forum_icon_path}>/<{$subforum.forum_lastpost_icon}>" alt="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" title="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" /> - </a> - <{else}> - <{$smarty.const._AM_NEWBB_NOTOPIC}> - <{/if}> - </td> - </tr> - <{/foreach}> - <{/if}> - <{/foreach}> - - <{elseif $subforum_display == "collapse"}> - - <{foreachq item=forum from=$category.forums}> - <tr> - <{if $forum.subforum}> - <td class="even" rowspan="2" align="center" valign="middle"><{$forum.forum_folder}></td> - <{else}> - <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td> - <{/if}> - <td class="odd"> - <div id="index_forum"> - <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a> - <{if $rss_enable}> - (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) - <{/if}> - <br /><{$forum.forum_desc}> - </span> - <{if $forum.forum_moderators}> - <span class="extra"> - <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}> - </span> - <{/if}> - </div> - </td> - <td class="even" align="center" valign="middle"> - <{if $stats[$forum.forum_id].topic.day}><strong><{$stats[$forum.forum_id].topic.day}></strong>/<{/if}> - <{$forum.forum_topics}> - </td> - <td class="odd" align="center" valign="middle"> - <{if $stats[$forum.forum_id].post.day}><strong><{$stats[$forum.forum_id].post.day}></strong>/<{/if}> - <{$forum.forum_posts}> - </td> -<!-- irmtfan hardcode removed align="right" --> - <td class="even" class="align_right" valign="middle"> - <{if $forum.forum_lastpost_subject}> - <{$forum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$forum.forum_lastpost_user}><br /> - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$forum.forum_lastpost_id}>"> - <{$forum.forum_lastpost_subject}> -<!-- irmtfan hardcode removed icon_path --> -<img src="<{$xoops_url}><{$forum.forum_icon_path}>/<{$forum.forum_lastpost_icon}>" alt="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" title="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" /> - </a> - <{else}> - <{$smarty.const._AM_NEWBB_NOTOPIC}> - <{/if}> - </td> - </tr> - - <{if $forum.subforum}> - <tr> -<!-- irmtfan hardcode removed align="left" --> - - <td class="odd" colspan="4" class="align_left"><{$smarty.const._MD_SUBFORUMS}> <{$img_subforum}> - <{foreachq item=subforum from=$forum.subforum}> - [<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$subforum.forum_id}>"><{$subforum.forum_name}></a>] - <{/foreach}> - </td> - </tr> - <{/if}> - <{/foreach}> - - <{else}> - - <{foreachq item=forum from=$category.forums}> - <tr> - <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td> - <td class="odd"> - <div id="index_forum"> - <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a> - <{if $rss_enable}> - (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) - <{/if}> - <br /><{$forum.forum_desc}> - </span> - <{if $forum.forum_moderators}> - <span class="extra"> - <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}> - </span> - <{/if}> - </div> - </td> - <td class="even" align="center" valign="middle"> - <{if $stats[$forum.forum_id].topic.day}><strong><{$stats[$forum.forum_id].topic.day}></strong>/<{/if}> - <{$forum.forum_topics}> - </td> - <td class="odd" align="center" valign="middle"> - <{if $stats[$forum.forum_id].post.day}><strong><{$stats[$forum.forum_id].post.day}></strong>/<{/if}> - <{$forum.forum_posts}> - </td> -<!-- irmtfan hardcode removed align="right" --> - <td class="even" class="align_right" valign="middle"> - <{if $forum.forum_lastpost_subject}> - <{$forum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$forum.forum_lastpost_user}><br /> - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$forum.forum_lastpost_id}>"> - <{$forum.forum_lastpost_subject}> -<!-- irmtfan hardcode removed icon_path --> -<img src="<{$xoops_url}><{$forum.forum_icon_path}>/<{$forum.forum_lastpost_icon}>" alt="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" title="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" /> - </a> - <{else}> - <{$smarty.const._AM_NEWBB_NOTOPIC}> - <{/if}> - </td> - </tr> - <{/foreach}> - - <{/if}> - <!-- end forums --> - </table> - <br /> - </div> - <{/foreach}> - <!-- end forum categories --> -</div> -<!-- irmtfan hardcode removed style="float: left; text-align: left;" --> -<div class="icon_left"> - <{$img_forum_new}> = <{$smarty.const._MD_NEWPOSTS}><br /> - <{$img_forum}> = <{$smarty.const._MD_NONEWPOSTS}><br /> -</div> -<br style="clear:both;"/> -<!-- irmtfan hardcode removed style="float: right; text-align: right;" --> -<div class="icon_right"> - <form action="<{$xoops_url}>/modules/<{$xoops_dirname}>/search.php" method="post" name="search" id="search"> - <input name="term" id="term" type="text" size="20" /> - <input type="hidden" name="forum" id="forum" value="all" /> - <input type="hidden" name="sortby" id="sortby" value="p.post_time desc" /> - <input type="hidden" name="searchin" id="searchin" value="both" /> - <input type="submit" name="submit" id="submit" value="<{$smarty.const._MD_SEARCH}>" /> - <br /> - [ <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/search.php"><{$smarty.const._MD_ADVSEARCH}></a> ] - </form> - <{if $rss_button}> - <br /> - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?c=<{$viewcat}>" target="_blank" title="RSS FEED"> - <{$rss_button}> - </a> - <br /><font size="0.7em;"><a href="http://www.simple-xoops.de">NewBB Version <{$version/100}></a></font> - <br /> - <{/if}> -</div> -<br style="clear: both;" /> -<{if $currenttime}> - <div> - <div class="even" style="padding: 5px; line-height: 150%;"> - <span style="padding: 2px;"><{$online.statistik}></span> - <strong><{$smarty.const._MD_NEWBB_STATS}></strong> - </div> - - <div class="forum_stats odd" style="padding: 5px; line-height: 150%;"> - <div class="forum_stats_left odd"> - <{$currenttime}><br /> - <{$smarty.const._MD_TOTALTOPICSC}> - <strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php" title="<{$smarty.const._MD_ALL}>"><{$stats[0].topic.total}></a></strong> - | <{$smarty.const._MD_TOTALPOSTSC}><strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php" title="<{$smarty.const._MD_ALLPOSTS}>"><{$stats[0].post.total}></a></strong> - <{if $stats[0].digest.total}> - | <{$smarty.const._MD_TOTALDIGESTSC}><strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=digest" title="<{$smarty.const._MD_TOTALDIGESTSC}>"><{$stats[0].digest.total}></a></strong> - <{/if}> - <{if $userstats}> - <br /><br /> - <{$userstats.lastvisit}><br /><{$userstats.lastpost}> - <{/if}> - </div> - <div class="forum_stats_right odd"> - <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=new" title="<{$smarty.const._MD_VIEW_NEWPOSTS}>"><{$smarty.const._MD_VIEW_NEWPOSTS}></a><br /> - <{$smarty.const._MD_TODAYTOPICSC}><strong><{$stats[0].topic.day|default:0}></strong> - | <{$smarty.const._MD_TODAYPOSTSC}><strong><{$stats[0].post.day|default:0}></strong> - <{if $userstats}> - <br /><br /> - <{$userstats.topics}> | <{$userstats.posts}><{if $userstats.digests}><br /><{$userstats.digests}><{/if}> - <{/if}> - </div> - </div> - </div> - <br style="clear:both;"/> -<{/if}> -<br style="clear: both;" /> -<{if $online}> - <{includeq file="db:newbb_online.html"}> -<{/if}> -<{includeq file='db:newbb_notification_select.html'}> +<div class="forum_header"> +<!-- irmtfan hardcode remove style="float: left;" --> + <div class="forum_title"> + <h2><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php"><{$index_title}></a></h2> +<!-- irmtfan hardcode remove align="left" --> + <hr class="align_left" width="50%" size="1" /> + <{$index_desc}> + </div> +</div> +<div style="clear:both;"></div> + +<{if $viewer_level gt 1}> + <br /> + <div class="forum_stats"> + <div class="forum_stats_left"> + <{$smarty.const._MD_TOPIC}>: + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=active#admin" target="_self" title="<{$smarty.const._MD_TYPE_ADMIN}>"><{$smarty.const._MD_TYPE_ADMIN}></a> | + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=pending#admin" target="_self" title="<{$smarty.const._MD_TYPE_PENDING}>"><{if $wait_new_topic}>(<font color="red"><b><{$wait_new_topic}></b></font>) <{/if}><{$smarty.const._MD_TYPE_PENDING}></a> | + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_TYPE_DELETED}>"><{if $delete_topic}>(<font color="red"><b><{$delete_topic}></b></font>) <{/if}><{$smarty.const._MD_TYPE_DELETED}></a><br /> + <{$smarty.const._MD_POST2}>: + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=active#admin" target="_self" title="<{$smarty.const._MD_TYPE_ADMIN}>"><{$smarty.const._MD_TYPE_ADMIN}></a> | + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=pending#admin" target="_self" title="<{$smarty.const._MD_TYPE_PENDING}>"><{if $wait_new_post}>(<font color="red"><b><{$wait_new_post}></b></font>) <{/if}><{$smarty.const._MD_TYPE_PENDING}></a> | + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_TYPE_DELETED}>"><{if $delete_post}>(<font color="red"><b><{$delete_post}></b></font>) <{/if}><{$smarty.const._MD_TYPE_DELETED}></a> + </div> + <div class="forum_stats_right"> + <{if $report_post}><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/admin_report.php"><{$report_post}></a><{/if}> + <br /><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/moderate.php" target="_self" title="<{$smarty.const._MD_TYPE_SUSPEND}>"><{$smarty.const._MD_TYPE_SUSPEND}></a> | + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/index.php" target="_self" title="<{$smarty.const._MD_ADMINCP}>"><{$smarty.const._MD_ADMINCP}></a> + </div> + <div style="clear:both;"></div> + </div> +<{/if}> +<br style="clear: both;" /> +<div class="dropdown"> + <{includeq file="db:newbb_index_menu.html"}> +</div> +<br style="clear: both;" /> +<br /> + +<!-- start forum categories --> +<div class="index_category"> + <!-- start forum categories --> + <{foreachq item=category from=$categories}> + <table class="index_category" cellspacing="0" width="100%"> + <tr class="head"> + <td width="3%" valign="middle" align="center"> + <img onclick="ToggleBlockCategory('<{$category.cat_element_id}>', this, '<{$category_icon.expand}>', '<{$category_icon.collapse}>')" src="<{$category.cat_icon_display}>" alt="" /> + </td> + <{if $category.cat_image}> + <td width="8%"><img src="<{$category.cat_image}>" alt="<{$category.cat_title}>" /></td> + <{/if}> +<!-- irmtfan hardcode removed align="left" --> + <td class="align_left"> + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php?cat=<{$category.cat_id}>"><{$category.cat_title}></a> + <{if $category.cat_description}><p class="desc"><{$category.cat_description}></p><{/if}> + </td> + <{if $category.cat_sponsor}> +<!-- irmtfan hardcode removed align="right" --> + <td width="15%" nowrap="nowrap" class="align_right"> + <p class="desc"><a href="<{$category.cat_sponsor.link}>" title="<{$category.cat_sponsor.title}>" target="_blank"><{$category.cat_sponsor.title}></a></p> + </td> + <{/if}> + </tr> + </table> + + <div id="<{$category.cat_element_id}>" style="display: <{$category.cat_display}>"> + <table border="0" cellspacing="2" cellpadding="0" width="100%"> + <{if $category.forums}> + <tr class="head" align="center"> + <td width="5%"> </td> + <{if $subforum_display == "expand"}> +<!-- irmtfan hardcode removed align="left" --> + <td colspan="2" width="37%" nowrap="nowrap" class="align_left"><{$smarty.const._MD_FORUM}></td> + <{else}> +<!-- irmtfan hardcode removed align="left" --> + <td width="37%" nowrap="nowrap" class="align_left"><{$smarty.const._MD_FORUM}></td> + <{/if}> + <td width="9%" nowrap="nowrap"><{$smarty.const._MD_TOPICS}></td> + <td width="9%" nowrap="nowrap"><{$smarty.const._MD_POSTS}></td> + <td width="40%" nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></td> + </tr> + <{/if}> + + <!-- start forums --> + <{if $subforum_display == "expand"}> + <{foreachq item=forum from=$category.forums}> + <tr> + <td width="5%" class="even" align="center" valign="middle"><{$forum.forum_folder}></td> + <td colspan="2" class="odd"> + <div id="index_forum"> + <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a> + <{if $rss_enable}> + (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) + <{/if}> + <br /><{$forum.forum_desc}> + </span> + <{if $forum.forum_moderators}> + <span class="extra"> + <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}> + </span> + <{/if}> + </div> + </td> + <td class="even" align="center" valign="middle"> + <{if $stats[$forum.forum_id].topic.day}><strong><{$stats[$forum.forum_id].topic.day}></strong>/<{/if}> + <{$forum.forum_topics}> + </td> + <td class="odd" align="center" valign="middle"> + <{if $stats[$forum.forum_id].post.day}><strong><{$stats[$forum.forum_id].post.day}></strong>/<{/if}> + <{$forum.forum_posts}> + </td> +<!-- irmtfan hardcode removed align="right" --> + <td class="even" class="align_right" valign="middle"> + <{if $forum.forum_lastpost_subject}> + <{$forum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$forum.forum_lastpost_user}><br /> + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$forum.forum_lastpost_id}>"> + <{$forum.forum_lastpost_subject}> +<!-- irmtfan remove icon_path --> +<{$forum.forum_lastpost_icon}> + </a> + <{else}> + <{$smarty.const._AM_NEWBB_NOTOPIC}> + <{/if}> + </td> + </tr> + + <{if $forum.subforum}> + <tr class="head" > + <td width="5%"> </td> + <td width="5%" align="center"><{$img_subforum}> </td> + <td width="32%" align="center"><{$smarty.const._MD_SUBFORUMS}> </td> + <td width="9%" nowrap="nowrap"> </td> + <td width="9%" nowrap="nowrap"> </td> + <td width="40%" nowrap="nowrap"> </td> + </tr> + <{foreachq item=subforum from=$forum.subforum}> + <tr> + <td class="odd" width="5%"> </td> + <td class="even" align="center" valign="middle" width="5%"><{$subforum.forum_folder}></td> + <td width="32%" class="odd"> + <div id="index_forum"> + <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$subforum.forum_id}>"><strong><{$subforum.forum_name}></strong></a> + <{if $rss_enable}> + (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$subforum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) + <{/if}> + <br /><{$subforum.forum_desc}> + </span> + <{if $subforum.forum_moderators}> + <span class="extra"> + <{$smarty.const._MD_MODERATOR}>: <{$subforum.forum_moderators}> + </span> + <{/if}> + </div> + </td> + <td class="even" width="9%" align="center" valign="middle"> + <{if $stats[$subforum.forum_id].topic.day}><strong><{$stats[$subforum.forum_id].topic.day}></strong>/<{/if}> + <{$subforum.forum_topics}> + </td> + <td class="odd" width="9%" align="center" valign="middle"> + <{if $stats[$subforum.forum_id].post.day}><strong><{$stats[$subforum.forum_id].post.day}></strong>/<{/if}> + <{$subforum.forum_posts}> + </td> +<!-- irmtfan hardcode removed align="right" --> + + <td class="even" width="40%" class="align_right" valign="middle"> + <{if $subforum.forum_lastpost_subject}> + <{$subforum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$subforum.forum_lastpost_user}><br /> + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$subforum.forum_lastpost_id}>"> + <{$subforum.forum_lastpost_subject}> +<!-- irmtfan remove icon_path --> +<{$subforum.forum_lastpost_icon}> + </a> + <{else}> + <{$smarty.const._AM_NEWBB_NOTOPIC}> + <{/if}> + </td> + </tr> + <{/foreach}> + <{/if}> + <{/foreach}> + + <{elseif $subforum_display == "collapse"}> + + <{foreachq item=forum from=$category.forums}> + <tr> + <{if $forum.subforum}> + <td class="even" rowspan="2" align="center" valign="middle"><{$forum.forum_folder}></td> + <{else}> + <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td> + <{/if}> + <td class="odd"> + <div id="index_forum"> + <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a> + <{if $rss_enable}> + (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) + <{/if}> + <br /><{$forum.forum_desc}> + </span> + <{if $forum.forum_moderators}> + <span class="extra"> + <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}> + </span> + <{/if}> + </div> + </td> + <td class="even" align="center" valign="middle"> + <{if $stats[$forum.forum_id].topic.day}><strong><{$stats[$forum.forum_id].topic.day}></strong>/<{/if}> + <{$forum.forum_topics}> + </td> + <td class="odd" align="center" valign="middle"> + <{if $stats[$forum.forum_id].post.day}><strong><{$stats[$forum.forum_id].post.day}></strong>/<{/if}> + <{$forum.forum_posts}> + </td> +<!-- irmtfan hardcode removed align="right" --> + <td class="even" class="align_right" valign="middle"> + <{if $forum.forum_lastpost_subject}> + <{$forum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$forum.forum_lastpost_user}><br /> + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$forum.forum_lastpost_id}>"> + <{$forum.forum_lastpost_subject}> +<!-- irmtfan remove icon_path --> +<{$forum.forum_lastpost_icon}> + </a> + <{else}> + <{$smarty.const._AM_NEWBB_NOTOPIC}> + <{/if}> + </td> + </tr> + + <{if $forum.subforum}> + <tr> +<!-- irmtfan hardcode removed align="left" --> + + <td class="odd" colspan="4" class="align_left"><{$smarty.const._MD_SUBFORUMS}> <{$img_subforum}> + <{foreachq item=subforum from=$forum.subforum}> + [<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$subforum.forum_id}>"><{$subforum.forum_name}></a>] + <{/foreach}> + </td> + </tr> + <{/if}> + <{/foreach}> + + <{else}> + + <{foreachq item=forum from=$category.forums}> + <tr> + <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td> + <td class="odd"> + <div id="index_forum"> + <span class="item"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewforum.php?forum=<{$forum.forum_id}>"><{$forum.forum_name}></a> + <{if $rss_enable}> + (<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?f=<{$forum.forum_id}>" target="_blank" title="RSS feed">RSS</a>) + <{/if}> + <br /><{$forum.forum_desc}> + </span> + <{if $forum.forum_moderators}> + <span class="extra"> + <{$smarty.const._MD_MODERATOR}>: <{$forum.forum_moderators}> + </span> + <{/if}> + </div> + </td> + <td class="even" align="center" valign="middle"> + <{if $stats[$forum.forum_id].topic.day}><strong><{$stats[$forum.forum_id].topic.day}></strong>/<{/if}> + <{$forum.forum_topics}> + </td> + <td class="odd" align="center" valign="middle"> + <{if $stats[$forum.forum_id].post.day}><strong><{$stats[$forum.forum_id].post.day}></strong>/<{/if}> + <{$forum.forum_posts}> + </td> +<!-- irmtfan hardcode removed align="right" --> + <td class="even" class="align_right" valign="middle"> + <{if $forum.forum_lastpost_subject}> + <{$forum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$forum.forum_lastpost_user}><br /> + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$forum.forum_lastpost_id}>"> + <{$forum.forum_lastpost_subject}> +<!-- irmtfan remove icon_path --> +<{$forum.forum_lastpost_icon}> + </a> + <{else}> + <{$smarty.const._AM_NEWBB_NOTOPIC}> + <{/if}> + </td> + </tr> + <{/foreach}> + + <{/if}> + <!-- end forums --> + </table> + <br /> + </div> + <{/foreach}> + <!-- end forum categories --> +</div> +<!-- irmtfan hardcode removed style="float: left; text-align: left;" --> +<div class="icon_left"> + <{$img_forum_new}> = <{$smarty.const._MD_NEWPOSTS}><br /> + <{$img_forum}> = <{$smarty.const._MD_NONEWPOSTS}><br /> +</div> +<br style="clear:both;"/> +<!-- irmtfan hardcode removed style="float: right; text-align: right;" --> +<div class="icon_right"> + <form action="<{$xoops_url}>/modules/<{$xoops_dirname}>/search.php" method="post" name="search" id="search"> + <input name="term" id="term" type="text" size="20" /> + <input type="hidden" name="forum" id="forum" value="all" /> + <input type="hidden" name="sortby" id="sortby" value="p.post_time desc" /> + <input type="hidden" name="searchin" id="searchin" value="both" /> + <input type="submit" name="submit" id="submit" value="<{$smarty.const._MD_SEARCH}>" /> + <br /> + [ <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/search.php"><{$smarty.const._MD_ADVSEARCH}></a> ] + </form> + <{if $rss_button}> + <br /> + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/rss.php?c=<{$viewcat}>" target="_blank" title="RSS FEED"> + <{$rss_button}> + </a> + <br /><font size="0.7em;"><a href="http://www.simple-xoops.de">NewBB Version <{$version/100}></a></font> + <br /> + <{/if}> +</div> +<br style="clear: both;" /> +<{if $currenttime}> + <div> + <div class="even" style="padding: 5px; line-height: 150%;"> + <span style="padding: 2px;"><{$online.statistik}></span> + <strong><{$smarty.const._MD_NEWBB_STATS}></strong> + </div> + + <div class="forum_stats odd" style="padding: 5px; line-height: 150%;"> + <div class="forum_stats_left odd"> + <{$currenttime}><br /> + <{$smarty.const._MD_TOTALTOPICSC}> + <strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php" title="<{$smarty.const._MD_ALL}>"><{$stats[0].topic.total}></a></strong> + | <{$smarty.const._MD_TOTALPOSTSC}><strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php" title="<{$smarty.const._MD_ALLPOSTS}>"><{$stats[0].post.total}></a></strong> + <{if $stats[0].digest.total}> + | <{$smarty.const._MD_TOTALDIGESTSC}><strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=digest" title="<{$smarty.const._MD_TOTALDIGESTSC}>"><{$stats[0].digest.total}></a></strong> + <{/if}> + <{if $userstats}> + <br /><br /> + <{$userstats.lastvisit}><br /><{$userstats.lastpost}> + <{/if}> + </div> + <div class="forum_stats_right odd"> + <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=new" title="<{$smarty.const._MD_VIEW_NEWPOSTS}>"><{$smarty.const._MD_VIEW_NEWPOSTS}></a><br /> + <{$smarty.const._MD_TODAYTOPICSC}><strong><{$stats[0].topic.day|default:0}></strong> + | <{$smarty.const._MD_TODAYPOSTSC}><strong><{$stats[0].post.day|default:0}></strong> + <{if $userstats}> + <br /><br /> + <{$userstats.topics}> | <{$userstats.posts}><{if $userstats.digests}><br /><{$userstats.digests}><{/if}> + <{/if}> + </div> + </div> + </div> + <br style="clear:both;"/> +<{/if}> +<br style="clear: both;" /> +<{if $online}> + <{includeq file="db:newbb_online.html"}> +<{/if}> +<{includeq file='db:newbb_notification_select.html'}> <!-- end module contents --> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_thread.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_thread.html 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_thread.html 2012-08-27 08:04:06 UTC (rev 10122) @@ -28,14 +28,20 @@ <{if $topic_post.poster.avatar != "blank.gif"}> <br /><img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="" /> <{else}> -<!-- irmtfan hardcode removed icon_path --> - <br /><img class="comUserImg" src="<{$xoops_url}><{$icon_path}>/anonym.png" alt="" /> +<!-- irmtfan remove icon_path --> + <br /><{$anonym_avatar}> <{/if}> <br /> - <{if $infobox gt 0}> - <div> -<!-- irmtfan hardcode removed icon_path --> - <img style="padding:2px;" onclick="ToggleBlockCategory('<{$topic_post.post_id}>', this, '<{$xoops_url}><{$icon_path}>/more.png', '<{$xoops_url}><{$icon_path}>/more.png')" src="<{$xoops_url}><{$icon_path}>/more.png" alt="<{$smarty.const._MD_NEWBB_SEEUSERDATA}>" title="<{$smarty.const._MD_NEWBB_SEEUSERDATA}>" /> + <{if $infobox gt 0}> + <!-- irmtfan simplify onclick method remove hardcode style="padding:2px;"--> + <div class="pointer"> + <img onclick="ToggleBlockCategory('<{$topic_post.post_id}>', this, '<{$xoops_url}><{$icon_path}>/less.png', '<{$xoops_url}><{$icon_path}>/more.png','<{$smarty.const._MD_NEWBB_HIDEUSERDATA}>','<{$smarty.const._MD_NEWBB_SEEUSERDATA}>')" + <{if $infobox == 1}> + src="<{$xoops_url}><{$icon_path}>/more.png" alt="<{$smarty.const._MD_NEWBB_SEEUSERDATA}>" title="<{$smarty.const._MD_NEWBB_SEEUSERDATA}>" + <{else}> + src="<{$xoops_url}><{$icon_path}>/less.png" alt="<{$smarty.const._MD_NEWBB_HIDEUSERDATA}>" title="<{$smarty.const._MD_NEWBB_HIDEUSERDATA}>" + <{/if}> + /> </div> <div id="<{$topic_post.post_id}>" <{if $infobox == 1}> style="display: none;" @@ -126,8 +132,9 @@ <!-- irmtfan removed hardcode style="text-align:left;" --> <td class="left"> <{if $topic_post.thread_action}> - <{foreachq item=btn from=$topic_post.thread_action}> - <a href="<{$btn.link}>&post_id=<{$topic_post.post_id}>" title="<{$btn.name}>" <{if $btn.target}>target="<{$btn.target}>"<{/if}>> <{$btn.image}></a> + <{foreachq item=btn from=$topic_post.thread_action}> + <!-- irmtfan add alt key --> + <a href="<{$btn.link}>&post_id=<{$topic_post.post_id}>" alt="<{$btn.name}>" title="<{$btn.name}>" <{if $btn.target}>target="<{$btn.target}>"<{/if}>> <{$btn.image}></a> <{/foreach}> <{/if}> </td> @@ -140,8 +147,9 @@ <input type="checkbox" name="post_id[]" id="post_id[<{$topic_post.post_id}>]" value="<{$topic_post.post_id}>" /> <{else}> <{if $topic_post.thread_buttons}> - <{foreachq item=btn from=$topic_post.thread_buttons}> - <a href="<{$btn.link}>&post_id=<{$topic_post.post_id}>" title="<{$btn.name}>"> <{$btn.image}></a> + <{foreachq item=btn from=$topic_post.thread_buttons}> + <!-- irmtfan add alt key --> + <a href="<{$btn.link}>&post_id=<{$topic_post.post_id}>" alt="<{$btn.name}>" title="<{$btn.name}>"> <{$btn.image}></a> <{/foreach}> <{/if}> <{/if}> Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewforum_subforum.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewforum_subforum.html 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewforum_subforum.html 2012-08-27 08:04:06 UTC (rev 10122) @@ -29,8 +29,8 @@ <{$sforum.forum_lastpost_time}> <{$smarty.const._MD_BY}> <{$sforum.forum_lastpost_user}><br /> <a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?post_id=<{$sforum.forum_lastpost_id}>"> <{$sforum.forum_lastpost_subject}> -<!-- irmtfan hardcode removed icon_path --> -<img src="<{$xoops_url}><{$sforum.forum_icon_path}>/<{$sforum.forum_lastpost_icon}>" alt="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" title="<{$smarty.const._MD_NEWBB_GOTOLASTPOST}>" /> +<!-- irmtfan removed icon_path --> +<{$sforum.forum_lastpost_icon}> </a> <{else}> <{$smarty.const._MD_NONEWPOSTS}> Modified: XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewtopic.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewtopic.html 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/newbb_viewtopic.html 2012-08-27 08:04:06 UTC (rev 10122) @@ -95,7 +95,7 @@ </span> <!-- irmtfan hardcode removed style="float: right; text-align:right;"" --> <span class="icon_right"> - <{$forum_reply}><{$forum_addpoll}> <{$forum_post_or_register}> + <{$forum_reply}> <{$forum_addpoll}> <{$forum_post_or_register}> </span> </div> <div class="clear"></div> Modified: XoopsModules/newbb/branches/irmtfan/newbb/viewpost.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/viewpost.php 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/viewpost.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -175,8 +175,8 @@ } $xoopsTpl->assign('xoops_module_header', $xoops_module_header); $xoopsTpl->assign('xoops_pagetitle', $xoops_pagetitle); -$icon_handler = newbb_getIconHandler(); -$xoopsTpl->assign("icon_path", $icon_handler->getPath("icon")); +// irmtfan - remove icon_path and use newbb_displayImage +$xoopsTpl->assign("anonym_avatar", newbb_displayImage('anonym')); $userid_array=array(); if (count($poster_array)>0) { $member_handler =& xoops_gethandler('member'); Modified: XoopsModules/newbb/branches/irmtfan/newbb/viewtopic.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/viewtopic.php 2012-08-26 19:06:53 UTC (rev 10121) +++ XoopsModules/newbb/branches/irmtfan/newbb/viewtopic.php 2012-08-27 08:04:06 UTC (rev 10122) @@ -131,6 +131,9 @@ $infobox = intval($xoopsModuleConfig['show_infobox']); //4.05 $xoopsTpl->assign('infobox', $infobox); //4.05 $xoopsTpl->assign("parentforum", $forum_handler->getParents($forum_obj)); +// irmtfan - remove icon_path and use newbb_displayImage +$xoopsTpl->assign("anonym_avatar", newbb_displayImage('anonym')); +// icon_path use for infobox onclick image more/less $icon_handler = newbb_getIconHandler(); $xoopsTpl->assign("icon_path", $icon_handler->getPath("icon")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |