Jump to content


- - - - -

IP.Board 2.2: Topic count in Board Statistics


  • Please log in to reply
13 replies to this topic

#1 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

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 manHa

manHa

    Damnn.

  • Members
  • PipPipPipPipPip
  • 186 posts
  • IPB Version:v2.3.x
Contributor

Posted 18 August 2007 - 02:02 AM

Hey, thanks for that. smile.gif

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 Jimmy S

Jimmy S

    Invision Modding Helper

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 609 posts
  • Location:Loganville, Ga.
  • Real Name:Jimmy
  • IPB Version:v3.0.x
Contributor

Posted 18 August 2007 - 02:09 AM

QUOTE(manHa @ Aug 17 2007, 10:02 PM) <{POST_SNAPBACK}>
Hey, thanks for that. smile.gif

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 manHa

manHa

    Damnn.

  • Members
  • PipPipPipPipPip
  • 186 posts
  • IPB Version:v2.3.x
Contributor

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.

#5 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

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

#6 manHa

manHa

    Damnn.

  • Members
  • PipPipPipPipPip
  • 186 posts
  • IPB Version:v2.3.x
Contributor

Posted 18 August 2007 - 02:59 AM

Ok...weird but thanks anyway.

#7 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

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

#8 manHa

manHa

    Damnn.

  • Members
  • PipPipPipPipPip
  • 186 posts
  • IPB Version:v2.3.x
Contributor

Posted 19 August 2007 - 02:35 AM

Seems to be cached somewhere.


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... wink.gif

Edited by manHa, 19 August 2007 - 02:35 AM.


#9 Sean

Sean

    The One Man Show - IB.Bored

  • IM Supporters
  • PipPipPipPipPipPipPipPipPipPip
  • 3,857 posts
  • Location:England, UK
  • Real Name:Sean Ellis
  • IPB Version:v2.3.x
Contributor

Posted 19 August 2007 - 09:46 AM

QUOTE(manHa @ Aug 19 2007, 03:35 AM) <{POST_SNAPBACK}>
Seems to be cached somewhere.

hehe... wink.gif


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 wink.gif

Edited by Sean, 19 August 2007 - 09:49 AM.

Posted Image

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 manHa

manHa

    Damnn.

  • Members
  • PipPipPipPipPip
  • 186 posts
  • IPB Version:v2.3.x
Contributor

Posted 19 August 2007 - 01:18 PM

Well it works without installing the hole thing with UMI. Your mods are great smile.gif 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.

smile.gif

#11 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

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.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#12 braineater

braineater

    Coder

  • Members
  • PipPipPipPipPip
  • 111 posts
  • Real Name:Loetie Woeti
  • IPB Version:v3.1.x

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;

#13 Calypsso

Calypsso

    Novice

  • Banned
  • PipPip
  • 9 posts
  • IPB Version:v2.3.x

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 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

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.

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