PDA

View Full Version : output number of threads in a forum


davidallsop
12-13-2008, 10:19 AM
What code would I use to output the number of threads that have been posted in a specific forum?

Lynne
12-13-2008, 02:43 PM
It depends on where you are going to use the "number of threads" - what template? You can try $forum[threadcount]

davidallsop
12-13-2008, 07:52 PM
it will be inside a vb cmps module

Lynne
12-13-2008, 08:47 PM
I don't know anything about that, so I can't help out, sorry.

Keenanm
12-13-2008, 11:48 PM
I know some PHP but wouldn't the thread count be in SQL maybe displays as Thread_IDs can't you just find that in the sql and have Hey forum we current have $x_threads how about that? but by setting up the sessions by yourself (or if they already have them set up)?

Try checking the forum statics code and look what code they are using for the x_amount of threads and try using that code, but again you might need to set the sessions up on the CMS.

Dismounted
12-14-2008, 04:55 AM
There may already that information in the datastore - have a look at "forumcache" inside the datastore.