Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
vB Forum Counter v2.1 Details »»
vB Forum Counter v2.1
Version: 1.00, by AnhTuanCool AnhTuanCool is offline
Developer Last Online: Sep 2006 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-28-2004 Last Update: Never Installs: 25
 
No support by the author.

vB Forum Counter

Version: 2.1
vBulletin Version: 3.0.3 (should work with 3.0.0)
Developed by AnhTuanCool
Install difficulty Level: Pretty short


Brief of Description:
vB Forum Counter add an option to have Forum views column on FORUMHOME display forum counter.

Feature:
  • Feature can be turn on/off
  • Option to update intermediately or after an hour
  • Forum counter makes a new column on FORUMHOME
  • Reset Forum Views
Updated:
For vb Advanced users (attachment)
Updated from version 1:
Fix bugs - conflict between table in database
The function update after one hour not really works
Update to version 2.1:
Add Reset feature

Screenshot:
In attachments...

Install:
Attachment also

Don't forget to click install if you use this hack INSTALL

If you got any problem or questions, just post it right here, I'm willing to help

Note: If you have problem with sql error in vb Advanced CMPS, then check out the txt file in attachment below, show how to fix it
There is no uninstall script so if you want to update then just see the updating instruction.

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-04-2004, 10:32 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 10-04-2004, 10:55 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #24  
Old 10-04-2004, 11:28 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #25  
Old 10-08-2004, 05:29 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 10-15-2004, 12:10 PM
Ber|Art's Avatar
Ber|Art Ber|Art is offline
 
Join Date: Sep 2004
Location: the Netherlands
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx, works perfectly!
Reply With Quote
  #27  
Old 01-12-2005, 01:58 AM
okc okc is offline
 
Join Date: Sep 2004
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #28  
Old 01-12-2005, 09:05 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #29  
Old 01-12-2005, 09:41 PM
okc okc is offline
 
Join Date: Sep 2004
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ha - that's great! thx Anh -

1 final ? - integer doesn't have a comma shows as 10001 - any way to display as 10,001?
Reply With Quote
  #30  
Old 01-12-2005, 10:48 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #31  
Old 01-12-2005, 11:40 PM
okc okc is offline
 
Join Date: Sep 2004
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey - you did it - thx! :up:
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:15 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.04507 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete