vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do i stop post count by Usergroup/User (https://vborg.vbsupport.ru/showthread.php?t=69667)

hinch 09-20-2004 12:23 PM

How do i stop post count by Usergroup/User
 
I have 1 user on the forum who when his post count gets to 666 he stops posting with that account and start a new account.

Is it possiable to lock his post count at 666 so that it never increases nomatter how much he posts so i can delete all his other accounts and he can just use 1.

It keeps him happy and it stops me getting annoyed.

If its not possiable todo it per user is it possiable per user group? I can dump him into his own usergroup if it is.

Xenon 09-20-2004 12:34 PM

actually very easy.

open functions_newpost.php

find:

PHP Code:

        if ($foruminfo['countposts'])
        {
            
$bbuserinfo['posts'] += 1

and change into:

PHP Code:

        if ($foruminfo['countposts'] AND ($bbuserinfo['userid'] != xx OR $bbuserinfo['posts'] < 666))
        {
            
$bbuserinfo['posts'] += 1

that should keep the user with id xx at 666 posts.
when one post is deleted, it will be get down to 665 but with one post made it'll increase to 666 again.
it'll never get to 667 :)

hinch 09-20-2004 12:48 PM

excellent thanks will test it now and let you know

[EDIT] tested works perfecly thanks alot

Xenon 09-20-2004 01:54 PM

you're welcome :)

IRBroke 11-18-2009 10:42 PM

Erm i can't find this on my functions for version 3.8.X can anyone help me please.


All times are GMT. The time now is 05:10 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.01885 seconds
  • Memory Usage 1,718KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete