MyBB Community Forums

Full Version: # of posts and # of threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am trying to find a variable to print out the number of global posts and one to print out the number of global threads. The only thing I can find is

$l['stats_posts_threads'] = "Our members have made a total of {1} posts in {2} threads.";

But I need something like the one shown here http://resources.mybbcommunity.com/codesnippets.php (which does not work) that will simply print out global post and thread number.
Look into the cache stats array.


(2011-08-24, 05:17 AM)labrocca Wrote: [ -> ]Look into the cache stats array.

How can I print that into the theme I'm making though? Such as:

{$posts} posts

and the number appears.
I did it myself. Thanks anyway labrocca.
(2011-08-24, 05:19 AM)Jason L. Wrote: [ -> ]I did it myself. Thanks anyway labrocca.

What exactly did u do to do that? I'm curious myself Toungue
(2011-08-24, 06:53 PM)fizz Wrote: [ -> ]
(2011-08-24, 05:19 AM)Jason L. Wrote: [ -> ]I did it myself. Thanks anyway labrocca.

What exactly did u do to do that? I'm curious myself Toungue

I modified the language variables.

$l['stats_posts_threads'] = '<li class="stat"><span class="bubble">{1}</span> Total Posts</li><li class="stat"><span class="bubble">{2}</span> Total Threads</li>';