SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Programming / Adding messages count of sub forums to it's related forum
Posted:  31 Oct 2007 01:16
Hi,

Is there a way I could modify the script so the number of topics and replies in a sub-forum will be added to the number of topics and replies of it's related forum on the index page ?

Example :

Suppose I have a forum (A) with two subforums (A1 and A2)

Topics total of forum A = 0
Topics total of subforum A1 = 5
Topics total of subforum A2 = 5
Replies total of forum A = 0
Replies count of subforum A1 = 15
Replies count of subforum A2 = 5

On the index page, the topics column would show 10 and the replies column 20

I ask this cause most of the time (all of the time in fact) when I add sub-forums to a forum, I don't allow messages to be posted in the forum itself.
That's why I'd like to show the total amount of posts on the index page.
__________________
MusicalBox
Posted:  31 Oct 2007 11:56
It is possible, but I don't have the time to think about it too much. The easiest way is to play with the gen_forum_arrays() function and do it on the fly. It stores all forum info in a few arrays and you can try to code sth to do it maybe recursively.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
Posted:  01 Nov 2007 23:50
Ok, thx for the advice.
I'll try to work something out of this
__________________
MusicalBox