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)
-   -   Posting in specific forums you specify deducts or adds to post count (https://vborg.vbsupport.ru/showthread.php?t=59932)

Erwin 01-08-2004 10:00 PM

Posting in specific forums you specify deducts or adds to post count
 
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. ;)

FleaBag 01-09-2004 02:08 PM

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.

MindTrix 01-09-2004 02:51 PM

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 ;)

Dean C 01-09-2004 03:24 PM

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,';



MindTrix 01-09-2004 03:32 PM

How does that saying go? "You just cant get the staff" :)

VAN 03-21-2004 04:54 AM

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?

Malice 08-01-2004 03:37 PM

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...

hockyfan 10-20-2004 11:12 PM

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

HiDeo 10-21-2004 02:29 AM

Nice job erwin thanks

ChrisSy 01-06-2005 10:31 PM

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

thanks in advance


All times are GMT. The time now is 09:59 AM.

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.01940 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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