vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Forum Counter v2.1 (https://vborg.vbsupport.ru/showthread.php?t=69971)

Zachery 10-04-2004 10:32 PM

Quote:

Originally Posted by bitg
Yes, but this error is coming from another site I work on that does not run the cmps.

Stop using unstable versions of mysql for starters bitg ;)

AnhTuanCool 10-04-2004 10:55 PM

To bitg - I've just finished the upgrade_to_v2.txt instruction at the first post so I recommend you do it so. Good luck :)

Holidazed 10-04-2004 11:28 PM

Quote:

Originally Posted by Zachery
Stop using unstable versions of mysql for starters bitg ;)

Unstable version? What unstable version? I did not pick the version? This is not MY server? It is a hosting plan just like any other? What are you talking about?

AnhTuanCool 10-08-2004 05:29 PM

Quote:

Originally Posted by Johnny
prettty cool hack, just a few questions before i install this one...

how does it count. does it count for each click per member and guest?
and are you able to reset the stats?

I updated the hack, now you can use Reset Forum Views feature to reset the stats, just see the new reset_forum_views.txt instruction. Have fun ;)

Ber|Art 10-15-2004 12:10 PM

Thx, works perfectly! :)

okc 01-12-2005 01:58 AM

I really like this, but is there a way to keep the hits you already have, or add them in -

I don't want my hits starting at 1 when I've already got 50,000 -

thx

AnhTuanCool 01-12-2005 09:05 PM

If you want just start your forum's hits from 50,000 instead of 1 then run this query
[sql]UPDATE forum SET views = 1 WHERE forumid = 34 [/sql]
With views = 1, replace 1 with the the number you want it to start at, and forumid = 34 replace 34 with the forum's id you wanna update. Thanks,

okc 01-12-2005 09:41 PM

Ha - that's great! thx Anh -

1 final ? - integer doesn't have a comma shows as 10001 - any way to display as 10,001?

AnhTuanCool 01-12-2005 10:48 PM

It has to go through a function process llike vb_number_format() to shown as interger with , etc...
You can do it so
Open forumroot/includes/functions_forumlist.php
Find:
Code:

                                        $forum['threadcount'] = vb_number_format($forum['threadcount']);
Add below:

Code:

                                        $forum['views'] = vb_number_format($forum['views']);
Thanks,

okc 01-12-2005 11:40 PM

hey - you did it - thx! :up:


All times are GMT. The time now is 10:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01064 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete