vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   stop post count increment (https://vborg.vbsupport.ru/showthread.php?t=51665)

Kriek 04-15-2003 05:36 PM

stop post count increment
 
Before I personally try to get my head around this idea, I want to know if it's possible in terms of light modifications to stop post count increment on certain users and display a default value such as Posts: n/a in the post bit?

Logician 04-16-2003 12:31 PM

in newthread.php and newreply.php you can change part:
PHP Code:

".iif ($foruminfo[countposts],"posts=posts+1,","")." 

as:
PHP Code:

".iif ($foruminfo[countposts] AND $bbuserinfo[userid]!=X,"posts=posts+1,","")." 

And replace X with the userid of the member to stop his posts increasing.

But please remember that if you update counters later in your board, user's post count will be reverted back.

Kriek 04-16-2003 09:27 PM

Thanks man that worked great. Is there any draw back to changing the posts field in the users table from TINYINT(4) to VARCHAR(4) :nervous:

Zzed 04-16-2003 09:42 PM

Yo can use this hack to make a user's post count go any direction or to freeze it. ;)

https://vborg.vbsupport.ru/showthrea...threadid=49668

Kriek 04-16-2003 09:55 PM

No thanks Zzed, the keyword was light modifications.

Logician 04-17-2003 10:07 AM

Quote:

Today at 12:27 AM Kriek said this in Post #3
Thanks man that worked great. Is there any draw back to changing the posts field in the users table from TINYINT(4) to VARCHAR(4) :nervous:
don't convert it to varchar, you'll have problems. just assign 0 for post count in the Admin CP edit user section.

Kriek 04-17-2003 11:46 AM

Ok, thanks again man. I noticed that VARCHAR can not have the UNSIGNED attribute which would throw Top 10 Posters order into a frenzy, lol


All times are GMT. The time now is 01:33 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.01082 seconds
  • Memory Usage 1,725KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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