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

Reply
 
Thread Tools
Posting in specific forums you specify deducts or adds to post count Details »»
Posting in specific forums you specify deducts or adds to post count
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-08-2004 Last Update: Never Installs: 5
 
No support by the author.

Posting in specific forums you specify deducts or adds to post count

This is a fairly simple hack, but it can be useful for certain forums. Feel free to expand or modify this to suit your forums.


How to use:

1) If you have a spam forum, you may want to deduct 1 from the post count each time a member posts there.
2) If you have a special forum, you may want to add more than 1 to the post count each time a member posts there.
3) Any combination of the above.


Installation:

In includes/functions_newpost.php:

Find:

PHP Code:
            $doposts 'posts = posts + 1,'
Replace with:

PHP Code:
if ($foruminfo['forumid']==66 OR $foruminfo['forumid']==67
{
            
$doposts 'posts = posts - 1,';
} else {
            
$doposts 'posts = posts + 1,';

Just change 66 and 67 to your spam forumids, remove or add forumid's as needed.

Change -1 to +2 or +5 if you want to ADD to the member's post count for whatever reason. Play around with the code - this hack is meant to be customized in many ways for your forum.

Show Your Support

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

Comments
  #2  
Old 01-09-2004, 02:08 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I came in here to ask what use there would be for having a negative post counting system, and tada, I have the answer. When I eventually get GamerForums running again this will come in handy for the annoying kids lol.
Reply With Quote
  #3  
Old 01-09-2004, 02:51 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Talk about an underated thread, Tsch

This is what everyone has too need for them non essential parts of their forums, such as sig tests etc.

Thank you Erwin
Reply With Quote
  #4  
Old 01-09-2004, 03:24 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin.... what am I going to do with you... Quote your keys SIR!

PHP Code:
if ($foruminfo['forumid'] == 66 OR $foruminfo['forumid'] == 67)
{
            
$doposts 'posts = posts - 1,';
} else {
            
$doposts 'posts = posts + 1,';

Reply With Quote
  #5  
Old 01-09-2004, 03:32 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does that saying go? "You just cant get the staff"
Reply With Quote
  #6  
Old 03-21-2004, 04:54 AM
VAN's Avatar
VAN VAN is offline
 
Join Date: Oct 2001
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just outta curiosity, what happens if a member has 5 posts, and posts 6 times in a forum that is set up to deduct 1 post for each?

Will their post count show as -1 or will it remain 0 forever?
Reply With Quote
  #7  
Old 08-01-2004, 04:37 PM
Malice Malice is offline
 
Join Date: Apr 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VAN
Just outta curiosity, what happens if a member has 5 posts, and posts 6 times in a forum that is set up to deduct 1 post for each?

Will their post count show as -1 or will it remain 0 forever?
Interesting thought...will VB have a problem displaying this one...
Reply With Quote
  #8  
Old 10-21-2004, 12:12 AM
hockyfan hockyfan is offline
 
Join Date: Mar 2003
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to modify this so it is based on a specific word a user uses, or only when a user posts in a specific thread?


h
Reply With Quote
  #9  
Old 10-21-2004, 03:29 AM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job erwin thanks
Reply With Quote
  #10  
Old 01-06-2005, 10:31 PM
ChrisSy ChrisSy is offline
 
Join Date: Mar 2002
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will it work for threads if i simply substitute 'threads' for 'posts' in the code?

thanks in advance
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 01:01 PM.


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.04881 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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