PEAK XOOPS - Sub forums in d3forum in englishin japanese

Sub forums in d3forum

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 .4 .5 .6 .7 .8 .9 .10 .11 .12 .13 | Posted on 2007/10/18 20:40 | Last modified
nitinshah12  ¸àĹ   Posts: 48
Just installed d3forums. Really cool but 1 question
Is there a way to create sub forum under main forums?
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/18 21:24
kentauls  ¾åÅùʼ   Posts: 29
You can create a subcategory under the top or any other categories.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/18 22:52 | Last modified
nitinshah12  ¸àĹ   Posts: 48
I tried that but what i m looking for is an option to create a forum under the main forum. Say for example a forum for islam and the two sub-forums for shia and sunni groups. So members can post in the main forum as well as sub forum.
thanks for the quick reply.

Edited

Or if its possible to display the forums in subcategory on the forum index page only, rather than after entering the particular subcategory only.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/19 0:41 | Last modified
kentauls  ¾åÅùʼ   Posts: 29
I still don't get it what you want to do.

[Top]
--[Category:Islam]
----[Category:Shia]---[Forum:Shia]
----[Category:Sunni]--[Forum:Shia]
----[Forum:Islam]

Is this what you want to do?

Anyway, I don't recommend you to make such a dangerous forums. It may cause the WAR!!
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/19 6:02
nitinshah12  ¸àĹ   Posts: 48
[Top]

--[Category:Religion]

----[SubCategory:Islam]
---------[Forum:Shia]
---------[Forum:Sunni]

----[SubCategory:Hinduism]
---------[Forum:Jainism]
---------[Forum:Buddhism]
---------[Forum:Others]

--[Category:Self-help]
---------[Forum:meditation]
---------[Forum:Affirmation]
.
.
.
.
.
.
---------[Forum:positive thinking]

Don't worry in the first category posts will first require approval before publishing.
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/19 6:03 | Last modified
nitinshah12  ¸àĹ   Posts: 48
sorry double post
Votes:3 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/20 2:18 | Last modified
kentauls  ¾åÅùʼ   Posts: 29
Hi, nitinshah12
I'm late to be back here because I was sick in bed.

So now what's your question?
You create some categories, subcategories and forums.
Everything seems to be fine.

You cannot create [Forum:positive thinking] under the Top, this is your problem?
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/20 6:49 | Last modified
nitinshah12  ¸àĹ   Posts: 48
the only problem is that when i create a subcategory the forums under the subcategory are not visible on the index page of the module. The index page looks like this

[Top]

--[Category:Religion]

----[SubCategory:Islam]

----[SubCategory:Hinduism]

--[Category:Self-help]
---------[Forum:meditation]
---------[Forum:Affirmation]
.
.
.
.
.
.
---------[Forum:positive thinking]

Now when you click on the subcategory say hinduism it shows all the forums under hinduism.

What i want is these forums under the subcategory to be visible on the index page itself and not only in the subcategory page. So the index page will look like

[Top]

--[Category:Religion]

----[SubCategory:Islam]
---------[Forum:Shia]
---------[Forum:Sunni]

----[SubCategory:Hinduism]
---------[Forum:Jainism]
---------[Forum:Buddhism]
---------[Forum:Others]

--[Category:Self-help]
---------[Forum:meditation]
---------[Forum:Affirmation]
.
.
.
.
.
.
---------[Forum:positive thinking]

and not like

[Top]

--[Category:Religion]

----[SubCategory:Islam]
----[SubCategory:Hinduism]

--[Category:Self-help]
---------[Forum:meditation]
---------[Forum:Affirmation]
.
.
.
.
.
.
---------[Forum:positive thinking]

thanks once again for trying to understand the problem.
Hope you get well soon
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/21 2:25 | Last modified
kentauls  ¾åÅùʼ   Posts: 29
Hi nitinshah12,

Now I see your question.

Do you know there is a block to show the list of all forums?? This block shows the forum in subcategories as well.

d3forum_block_list_forum

You can use this block from altsys.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/21 7:04
nitinshah12  ¸àĹ   Posts: 48
Wat i mean is the forums in subcategory be visible in the main content area and not as a block.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/22 11:31
kentauls  ¾åÅùʼ   Posts: 29
I told you.
You have code in d3forum_block_list_forum.
This code can show the list of all forums even inside of subcategories.

Then you can modify the appearance of the main content list as you want or apply this block instead of the list.
Votes:2 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/22 19:41
nitinshah12  ¸àĹ   Posts: 48
ok thanks a lot, i think i have the code. Now in which template or file should i use the code from d3forum_block_list_forum.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/23 3:19
kentauls  ¾åÅùʼ   Posts: 29
You have knowledge on HTML and PHP?
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/23 3:53
nitinshah12  ¸àĹ   Posts: 48
html yes but php almost nil.
It will be very useful for me if you can tell me which file i would need to edit and what part of it should i replace with the code from d3forum_block_list_forum template.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/24 5:30
kentauls  ¾åÅùʼ   Posts: 29
I have been trying to find a easiest way. But you don't know PHP... It's hard. Give you a suggestion.

Show the block "d3forum_block_list_forum" to your d3forum.
Edit "d3forum_main_listcategories.html" and remove some part you don't need.
Edit the block "d3forum_block_list_forum" to show this block only when $_SERVER['REQUEST_URI'] match to your required URI. Or you can edit theme and implement "$xoops_requesturi".

That's all what I can help you.
Others may help you with better and easier way.

Good luck
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/24 5:37 | Last modified
nitinshah12  ¸àĹ   Posts: 48
thanks for the help, i will try to make it work with what you have told me, thanks again.

--------------Edited-----------------

i think i have got it work. let me just check it for a day or two and will post what i have done.

one more thing how to add rss to d3forum
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/10/25 3:28
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:

one more thing how to add rss to d3forum
Install d3pipes.
Votes:1 Average:10.00
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

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!