IP.Board 2.2: Topic count in Board Statistics
Started by Michael, Dec 14 2006 06:46 PM
13 replies to this topic
#1
Posted 14 December 2006 - 06:46 PM
This is the support topic for the tutorial Topic count in Board Statistics. Please post here if you have any questions or feedback.
#2
Posted 18 August 2007 - 02:02 AM
Hey, thanks for that. 
Can you please tell me how to do that with the members on validating, on the board stats ?
"150 registered users and 20 on validating".
Thanks...
Can you please tell me how to do that with the members on validating, on the board stats ?
"150 registered users and 20 on validating".
Thanks...
#3
Posted 18 August 2007 - 02:09 AM
QUOTE(manHa @ Aug 17 2007, 10:02 PM) <{POST_SNAPBACK}>
Hey, thanks for that. 
Can you please tell me how to do that with the members on validating, on the board stats ?
"150 registered users and 20 on validating".
Thanks...
Can you please tell me how to do that with the members on validating, on the board stats ?
"150 registered users and 20 on validating".
Thanks...
Here you go - http://www.invisionmodding.com/index.php?a...mp;showfile=541
#4
Posted 18 August 2007 - 02:34 AM
Yeah, I saw that mod, but I was wondering if we can do that without installing the whole thing with the UMI etc. ?
It worked with 2.2.2, but I can't find out how to do it with 2.3.1...
Thanks for your reply man.
It worked with 2.2.2, but I can't find out how to do it with 2.3.1...
Thanks for your reply man.
#5
Posted 18 August 2007 - 02:58 AM
If you want that count to show up on your board, you have to install that mod.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#6
Posted 18 August 2007 - 02:59 AM
Ok...weird but thanks anyway.
#7
Posted 18 August 2007 - 05:09 PM
There's nothing weird about it. The count of who is validating is not cached anywhere, the count of the number of topics is. Pulling from that cache and displaying the number of topics is easy, querying the database to find the number of validating members is not so easy.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#8
Posted 19 August 2007 - 02:35 AM
Seems to be cached somewhere.
lang_board.php
sources/lib/func_boardstats.php
FIND
ADD BELOW
FIND
ADD BELOW
FIND
ADD BELOW
hehe...
lang_board.php
CODE
<#val#>
sources/lib/func_boardstats.php
FIND
CODE
$this->ipsclass->lang['most_online'] = str_replace( "<#DATE#>", $most_time , $this->ipsclass->lang['most_online'] );
ADD BELOW
CODE
$count_val = $this->ipsclass->DB->simple_exec_query(array('select' => 'count(new_reg) as cnt','from' => 'validating','where' => 'new_reg<>0') );
FIND
CODE
$stats['mem_count'] = $this->ipsclass->do_number_format($stats['mem_count']);
ADD BELOW
CODE
$count_val['cnt'] = $this->ipsclass->do_number_format($count_val['cnt']);
FIND
CODE
$this->ipsclass->lang['total_word_string'] = str_replace( "<#link#>" , $link , $this->ipsclass->lang['total_word_string'] );
ADD BELOW
CODE
$this->ipsclass->lang['total_word_string'] = str_replace( "<#val#>" , $count_val['cnt'] , $this->ipsclass->lang['total_word_string'] );
hehe...
Edited by manHa, 19 August 2007 - 02:35 AM.
#9
Posted 19 August 2007 - 09:46 AM
QUOTE(manHa @ Aug 19 2007, 03:35 AM) <{POST_SNAPBACK}>
Seems to be cached somewhere.
hehe...
hehe...
CODE
$count_val = $this->ipsclass->DB->simple_exec_query(array('select' => 'count(new_reg) as cnt','from' => 'validating','where' => 'new_reg<>0') );
That's not cached genius
Edited by Sean, 19 August 2007 - 09:49 AM.

My Free Modifications | For Sale Modifications | Photos of Moi | Services System
My computer is messed up. I can't develop anything until I get my grubby paws a new computer.
I do not offer support via PM or any other messenger service. Please use the forums.
#10
Posted 19 August 2007 - 01:18 PM
Well it works without installing the hole thing with UMI. Your mods are great
and I love them, it's just that you said I have to download your mod to get this to works, and that's not the case.
#11
Posted 19 August 2007 - 02:54 PM
There are settings for the mod to handle group permissions, there is a component that has to be added to the ACP to manage those settings, and there are new language strings that have to be added to your language files. None of that work is mentioned in your instructions above.
We're done with this discussion about the Users Awaiting Validation mod, this is a support topic for a completely different tutorial.
We're done with this discussion about the Users Awaiting Validation mod, this is a support topic for a completely different tutorial.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#12
Posted 05 March 2008 - 08:05 PM
Thanx for this one, but have little problem, when I do those changes, the topics are correct, but the post count is still the sum of the topics and the replys.
Hope someone understand what I am trying to say;
Hope someone understand what I am trying to say;
#13
Posted 14 February 2009 - 12:51 PM
i have followed the steps carefully and it doesn't work,it haven't change nothing at forum,can you explain more clearly
#14
Posted 14 February 2009 - 01:22 PM
Do you have more than one language installed ? (Please post a link to your board) 
If you do, temporarily switch to the English language. Does it work on there ?
If so, you need to repeat the edit to lang_boards.php to your other language folders.
If you do, temporarily switch to the English language. Does it work on there ?
If so, you need to repeat the edit to lang_boards.php to your other language folders.
View my tutorials
Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!
A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





Contributor













