PEAK XOOPS - Re: Sub forums in d3forum in englishin japanese

Re: Sub forums in d3forum

List posts in the topic

none Re: Sub forums in d3forum

msg# 1.13
depth:
1
Previous post - Next post | Parent - No child | Posted on 2007/10/25 4:18 | Last modified
nitinshah12  伍長   Posts: 48
preview after changes http://makingdestiny.com/modules/d3forum/

i have replaced the original code in d3forum_main_listcategories.html with the following


<!-- start module contents -->
<!-- breadcrumbs -->
<div class="d3f_breadcrumbs">
	<a href="<{$mod_url}>/index.php?cat_ids=0"><{$smarty.const._MD_D3FORUM_LISTALLTOPICS}></a>
</div>

<{$mod_config.top_message}>

<{if $xoops_isadmin}>
<!-- top controller -->
<ul class="d3f_ctrl">
	<li><a href="<{$mod_url}>/index.php?page=makecategory"><{$smarty.const._MD_D3FORUM_LINK_MAKECATEGORY}></a></li>
</ul>
<{/if}>

<dl class="d3f_bbsinfo">
<dt><{$smarty.const._MD_D3FORUM_TOTALTOPICSCOUNT}>:</dt>
	<dd><{$total_topics_count}></dd>
<dt><{$smarty.const._MD_D3FORUM_TOTALPOSTSCOUNT}>:</dt>
	<dd><{$total_posts_count}></dd>
</dl>

<dl class="d3f_timeinfo">
<dt><{$smarty.const._MD_D3FORUM_TIMENOW}>:</dt>
	<dd><{$currenttime_formatted}></dd>
<dt><{$smarty.const._MD_D3FORUM_LASTVISIT}>:</dt>
	<dd><{$lastvisit_formatted}></dd>
</dl>

<div class="d3f_wrap">
<!-- start categories -->
<{foreach item="category" from=$top_categories}>
<{if $category.subcategories or $category.forums or $xoops_isadmin}>
<div class="d3f_head">
<h2><a href="<{$mod_url}>/index.php?cat_id=<{$category.id}>"><img src="<{$mod_imageurl}>/category_<{$category.bit_new}>.gif" alt="" width="16" height="16" /> <{$category.title}></a></h2>
	<p><{strip}><{$smarty.const._MD_D3FORUM_MODERATOR}>:
	<{foreach from=$category.moderate_groups item=moderator}>
	<{$moderator.gname}>
	<{/foreach}>
	<{foreach from=$category.moderate_users item=moderator}>
	<a href="<{$xoops_url}>/userinfo.php?uid=<{$moderator.uid}>"><{$moderator.uname}></a>
	<{/foreach}><{/strip}>
	<{$smarty.const._MD_D3FORUM_TOPICSCOUNT}>: <{$category.topics_count}> <{$smarty.const._MD_D3FORUM_POSTSCOUNT}>: <{$category.posts_count}> 
	<{if $category.last_post_time}><{$smarty.const._MD_D3FORUM_LASTPOST}>: <{$category.last_post_time_formatted}><{/if}></p>
</div>
<{if $category.desc}><p class="d3f_info"><{$category.desc}></p><{/if}>

<{if $category.subcategories}>
<h3 class="d3f_head_h3"><{$smarty.const._MD_D3FORUM_SUBCATEGORIES}></h3>
<ol class="d3f_subcategories">
<{foreach item="subcategory" from=$category.subcategories}>
	<li><a href="<{$mod_url}>/index.php?cat_id=<{$subcategory.id}>" title="<{$subcategory.desc}>"><img src="<{$mod_imageurl}>/category_<{$subcategory.bit_new}>.gif" alt="<{$subcategory.title}>" width="16" height="16" /> <{$subcategory.title}></a> (<{$smarty.const._MD_D3FORUM_TOPICSCOUNT}>: <{$subcategory.topics_count}>, <{$smarty.const._MD_D3FORUM_POSTSCOUNT}>: <{$subcategory.posts_count}>)</li>

<{if $subcategory.forums}>
<h3 class="d3f_head_h3"><{$smarty.const._MD_D3FORUM_FORUM}></h3>
<ul class="d3f_listforums"  style="margin-left:50px">
<{foreach item=forum from=$subcategory.forums}>
	<li><a href="<{$mod_url}>/index.php?forum_id=<{$forum.id}>">
	<img src="<{$mod_imageurl}>/forum_<{$forum.bit_new}>.gif" alt="<{$forum.title}>" width="16" height="16" /> <{$forum.title}></a> 
	<{$smarty.const._MD_D3FORUM_TOPICSCOUNT}>: <{$forum.topics_count}> <{$smarty.const._MD_D3FORUM_POSTSCOUNT}>: <{$forum.posts_count}>
	<{if $forum.last_post_time}><{$smarty.const._MD_D3FORUM_LASTPOST}>: <{$forum.last_post_time_formatted}><{/if}></li>
<{/foreach}>
</ul>
<{/if}>
<{/foreach}>
</ol>
<{/if}>

<{if $category.forums}>
<h3 class="d3f_head_h3"><{$smarty.const._MD_D3FORUM_FORUM}></h3>
<ul class="d3f_listforums">
<{foreach item=forum from=$category.forums}>
	<li><a href="<{$mod_url}>/index.php?forum_id=<{$forum.id}>">
	<img src="<{$mod_imageurl}>/forum_<{$forum.bit_new}>.gif" alt="<{$forum.title}>" width="16" height="16" /> <{$forum.title}></a> 
	<{$smarty.const._MD_D3FORUM_TOPICSCOUNT}>: <{$forum.topics_count}> <{$smarty.const._MD_D3FORUM_POSTSCOUNT}>: <{$forum.posts_count}>
	<{if $forum.last_post_time}><{$smarty.const._MD_D3FORUM_LASTPOST}>: <{$forum.last_post_time_formatted}><{/if}></li>
<{/foreach}>
</ul>
<{/if}>

<div class="d3f_info_ctrl">
	<{strip}>
	<a href="<{$mod_url}>/index.php?cat_ids=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LISTTOPICSINCATEGORY}></a>
	<{if $xoops_isadmin}>
		&nbsp;-&nbsp;<a href="<{$mod_url}>/index.php?page=categorymanager&amp;cat_id=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LINK_CATEGORYMANAGER}></a>
	<{/if}>
	<{if $category.can_makeforum}>
		&nbsp;-&nbsp;<a href="<{$mod_url}>/index.php?page=makeforum&amp;cat_id=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LINK_MAKEFORUM}></a>
	<{/if}>
	<{if $xoops_isadmin}>
		&nbsp;-&nbsp;<a href="<{$mod_url}>/index.php?page=makecategory&amp;cat_id=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LINK_MAKESUBCATEGORY}></a>
	<{/if}>
	<{/strip}>
</div>
<{/if}>
<{/foreach}>
<!-- end categories -->
</div>

<!-- icon explanation -->
<div class="d3f_iconexps">
<ul class="d3f_iconexp">
	<li><img src="<{$mod_imageurl}>/forum_1.gif" alt="" width="18" height="18" /> = <{$smarty.const._MD_D3FORUM_ALT_NEWPOSTS}></li>
</ul>
<ul class="d3f_iconexp">
	<li><img src="<{$mod_imageurl}>/forum_0.gif" alt="" width="18" height="18" /> = <{$smarty.const._MD_D3FORUM_ALT_NONEWPOSTS}></li>
</ul>
</div>

<!-- forum jumpbox -->
<form name="forum_jump_box" action="<{$mod_url}>/index.php" method="get" style="clear:both;" class="d3f_form">
	<select name="forum_id"><{$forum_jumpbox_options}></select>
	<input type="submit" value="<{$smarty.const._MD_D3FORUM_BTN_JUMPTOFORUM}>" />
	&nbsp;
	<a href="<{$mod_url}>/index.php?page=search"><{$smarty.const._MD_D3FORUM_LINK_ADVSEARCH}></a>
</form>

<hr class="notification" />

<{include file='db:system_notification_select.html'}>
<!-- end module contents -->

Votes:4 Average:5.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!