Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Special post counter system Details »»
Special post counter system
Version: 1.00, by Dpcows Dpcows is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-15-2003 Last Update: Never Installs: 14
Is in Beta Stage  
No support by the author.

Version: 0.3
Title: Special post counter system
Requested: [Here]
Explanation: You can maintain a special post counter for certain forums, like your offtopic forum.

Features:
  • Special counter in postbit template
  • Add special counter to your profile overview
  • Special counter can be controled from admin panel

Screenshots
Version 0.3 should be working fine.
i'm not able to test it very well. but it worked for me one 1 board.
my conenction make it almost impossible to upload a file to my server :/

but it should work, and there is no restrinction of the amount of forums..

by the way, i put all this in a nice install file
upload that file to your admin dir and run it..

Show Your Support

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

Comments
  #52  
Old 03-09-2003, 01:22 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, setting not to count posts in that forum toward users post counts doesn't seem to have any affect on how they are reported to the users - they are still seeing tons of new posts each day... I'd love whatever you could do to help me out - thanks a ton!!
Reply With Quote
  #53  
Old 03-09-2003, 04:41 PM
Dpcows Dpcows is offline
 
Join Date: Feb 2002
Location: Netherlands
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could you explain your problem a bit more specific,
i think i've misunderstood your problem in your first post.
Reply With Quote
  #54  
Old 03-09-2003, 05:05 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure thing - I'll try to explain this again. I confuse myself sometimes, so hopefully I can get this straight.

The way vb works, as we all know, is that posts in a forum will trigger various affects. A few of which are:

1. Users post count increases (there is a way around this in the admin cp)

2. Total posts on the entire board go up (as displayed on the top of most unedited vb systems as:

Members: XX, Threads: YY, Posts: ZZ

3. There are various scripts & hacks that will show this data on other pages as well, such as vbhome lite which shows it as:

X new articles released
Y new forum threads started
Z new forum posts

4. When looking at the list of all forums, you can see the total number of posts and threads for each forum just before the "Last Post" column.

5. When a user arrives and sees that there are new posts or threads, often times they click on "view new posts" to see a list of what has been posted lately.

All of those are just fine under most circumstances.

I have a specific reason to have a forum never increment those totals. (actually all but #4, but even if it affects #4 above thats ok too).

In my example, the forum is an NNTP gateway (newsgroup). The forum itself can get anywhere from 10-200+ posts/threads in a day. Users coming to my system do not wish to see these show up as new posts, new threads etc. I want to treat it as a resource (special) forum - but not let it act like the others by increasing post totals etc.

I have worked around *most* of this by editing search.php and putting in a statement such as:

Code:
wheresql.=" AND thread.open<>10 AND thread.forumid!=50";
(example excluding forum #50 from daily new threads stats)

What I can't fix is the new posts part. You can't just add the AND thread.forumid!=50 to the posts section (you get a SQL error).

What happens now is that people come to my system and in a low traffic day (but high for the newsgroup) they might see:

0 new articles released
0 new forum threads started
201 new forum posts

They click on "view new posts" and get a message that there are no posts since they last visited.

The reason is because that forum is still able to increase the forum post count and total vb system post count.

I have posted this elsewhere on this system (and have had others request the same) - have had many think they knew how to do this, but nobody has been able to do it.

When I ran accross your hack, I thought maybe it found a way to categorize posts in a certain forum differently. However, I think there is still some counter that is affected - some global total post count that many functions hit. I thought maybe if I installed this and set the forum, that the system would stop displaying the post count since last visit for this forum. I think the concept is close, or closer than anything I have seen... but there still must be something missing.

I'm not enough of a programmer to be able to figure out out. Conceptually I would guess if one could edit all places where the post total is increased and exclude a forum it would work. Thats why this hack seemed sooo very close.

I know there are others looking for this kind of functionality. I apologize if this is rather off-topic specifically for what this hack does. Perhaps I should re-post this in the hack requests area. I just feel with this hack, there is probably one simple line of code somewhere that I'm missing to pull this off.

Thanks for your time...
Reply With Quote
  #55  
Old 03-11-2003, 07:25 AM
Dpcows Dpcows is offline
 
Join Date: Feb 2002
Location: Netherlands
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm afraid i don't have time to look into this, or even add more features.

gopherhockey: i don't see a fast solution for you problem with this hack. sorry..
Reply With Quote
  #56  
Old 03-11-2003, 12:01 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats ok, I found an alternate way of doing this that I'll post elsewhere. Thanks for your time though!
Reply With Quote
  #57  
Old 03-12-2003, 01:21 AM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm.... is there a way to update this post count in anyway?

And is there a way to make this work with post count off in a forum it suppose to count in?

Thanks in Advance

/me clicks install
Reply With Quote
  #58  
Old 03-15-2003, 05:53 PM
Koopa Koopa is offline
 
Join Date: Nov 2001
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea, could be useful....
Reply With Quote
  #59  
Old 03-16-2003, 01:28 PM
Dpcows Dpcows is offline
 
Join Date: Feb 2002
Location: Netherlands
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-12-03 at 04:21 AM Oricon said this in Post #56
Hmm.... is there a way to update this post count in anyway?

And is there a way to make this work with post count off in a forum it suppose to count in?


Thanks in Advance

* Oricon clicks install
Not sure, didn't test that.
if you did, i'd like to know if it works
Reply With Quote
  #60  
Old 03-27-2003, 02:37 PM
tinbin tinbin is offline
 
Join Date: Mar 2003
Location: lincs uk
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting hack m8!
Would it be hard to code it so that it counts the # of replies people made in the offtopic forum, but DOESN'T count if the users started the thread itself.

So it should count all offtopic replies, not all offtopic posts..

Dpcows or anyone else:
Would that be just a bit of extra code or hard to do ?
Reply With Quote
  #61  
Old 03-28-2003, 06:35 AM
Dpcows Dpcows is offline
 
Join Date: Feb 2002
Location: Netherlands
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be pretty easy.
Just don't edit the newthread.php file i guess.

No garantee all still works..
Reply With Quote
Reply


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 03:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04713 seconds
  • Memory Usage 2,307KB
  • 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
  • (1)bbcode_code
  • (1)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