Jump to content


Photo
- - - - -

Tutorial: Topic count in Board Statistics


  • Please log in to reply
14 replies to this topic

#1 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 24 September 2009 - 10:41 AM

This is the support topic for the tutorial Topic count in Board Statistics. Please post here if you have any questions or feedback.

#2 Broni

Broni

    Member

  • Members
  • PipPip
  • 12 posts
  • IP.Board Version:3.0

Posted 05 November 2009 - 04:37 PM

It doesn't work properly.
Please, see here: http://community.inv...0

#3 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 05 November 2009 - 05:31 PM

Hmm, will take a look when I'm able, it used to work fine.
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#4 Broni

Broni

    Member

  • Members
  • PipPip
  • 12 posts
  • IP.Board Version:3.0

Posted 05 November 2009 - 05:37 PM

Thank you :)

#5 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 09 November 2009 - 08:26 AM

OK, try the new attached file, see if that adds the language string. I think the old file might have created a new version of the English language pack when it was imported.
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#6 Broni

Broni

    Member

  • Members
  • PipPip
  • 12 posts
  • IP.Board Version:3.0

Posted 09 November 2009 - 04:12 PM

If you mean, you attached new xml file here: http://invisionfocus...ard-statistics/, I downloaded it, imported it and it didn't change anything.
Actually after attempted import, the board says, nothing was imported:

Attached Files



#7 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 09 November 2009 - 05:39 PM

You're importing it on the Manage Hooks page, you should be importing it on the Manage Languages page.
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#8 Broni

Broni

    Member

  • Members
  • PipPip
  • 12 posts
  • IP.Board Version:3.0

Posted 09 November 2009 - 05:55 PM

Do I feel stupid, or what?...Grrrrrrrrrrrrrrrrrrrr
It works fine now :)
Thanks Mike :)

#9 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 09 November 2009 - 07:17 PM

No worries :)
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#10 Stormraven

Stormraven

    Active Member

  • Premium Members
  • PipPipPipPip
  • 105 posts
  • IP.Board Version:3.0

Posted 10 November 2009 - 04:18 PM

Yey, almost there, i know in ipb, they include the first post of every topic as a post, but is there a way to make that count as a thread only? this is perfect but its not removing the total count from the post count, if you get what i mean, the posts amount is tallied up by adding the total posts and the threads, please can you modify things to stop it from doing that please? :)

my post count in the admin panel is: 11950, but on the board index it says the post count is: 13,196, obviously because the thread count has been added onto the admin panel amount which equels to the one on the main page, can you stop it from doing that please?

Kind Regards.

#11 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 10 November 2009 - 04:24 PM

That's not really related to this tutorial, I'm not touching the post count, I'm just adding the topic count. You can change the post count on the board index to be the replies count instead by changing this:

<dd>{$stats['info']['total_posts']}</dd>
To this:

<dd>{parse format_number="$this->caches['stats']['total_replies']"}</dd>

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#12 Stormraven

Stormraven

    Active Member

  • Premium Members
  • PipPipPipPip
  • 105 posts
  • IP.Board Version:3.0

Posted 10 November 2009 - 04:30 PM

Thankyou it worked, thankyou soooooo much, so thiss is the right block, do i need to remove some more stuff from the following block of codes?

<dt>{$this->lang->words['total_posts']}</dt>
				<dd>{parse format_number="$this->caches['stats']['total_replies']"}</dd>
				<dt>{$this->lang->words['total_topics']}</dt>
				<dd>{parse format_number="$this->caches['stats']['total_topics']"}</dd>
				<dt>{$this->lang->words['total_members']}</dt>
				<dd>{$stats['info']['mem_count']}</dd>
				<dt>{$this->lang->words['newest_member']}</dt>

because there is two 'total topics' do i need to remove one? or not, thankyou mate.

#13 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 10 November 2009 - 05:14 PM

Unless you have more code above or below that, there's nothing there that would make the total topics section appear twice. But again, just customizing this section is not what this topic is for, this is the support topic for the associated tutorial.
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#14 Stormraven

Stormraven

    Active Member

  • Premium Members
  • PipPipPipPip
  • 105 posts
  • IP.Board Version:3.0

Posted 10 November 2009 - 05:19 PM

its not appearing twice, im just curious as to if i need to remove another part being as there were two bits that refer to the 'total_replies'.

#15 Twilight

Twilight

    Newbie

  • Members
  • Pip
  • 1 posts
  • IP.Board Version:3.1

Posted 14 May 2011 - 10:25 AM

Hmm...I seem to have done everything you said but, I cannot get this to work. It just says "Total Topics: 0"

Attached File  wtf.jpg   5.6K   0 downloads




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users