vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Post counts: Higher (https://vborg.vbsupport.ru/showthread.php?t=40954)

Glock 07-12-2002 04:00 AM

Post counts: Higher
 
Is there a way to allow it to go into the millions, but it will still work normally for everyone?

E 07-12-2002 04:24 AM

umm.. u could change the character max in ur MySQL table

Glock 07-12-2002 04:25 AM

I don't know how.

Neo 07-12-2002 05:50 AM

Run this query

PHP Code:

ALTER TABLE `userCHANGE `posts` `postsSMALLINT(50UNSIGNED DEFAULT '0' NOT NULL 


that should do it.

Glock 07-12-2002 05:51 AM

Ok, thanks I'll try it out. In case I want to go back what is the code for returning it to normal?

Glock 07-30-2002 11:30 PM

Anyone know how to return it to normal?

Logician 07-31-2002 11:09 AM

Although
[sql]
ALTER TABLE `user` CHANGE `posts` `posts` SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL
[/sql]
is the SQL command which will revert it back to original, you cant return back if you populated your fields with high numbers. How can you restrict the field back to 5 chars again, if you have high numbers already put in there?

Glock 07-31-2002 09:46 PM

I'm not sure what you mean Logican...

Issvar 08-01-2002 12:53 AM

SMALLINT is supposed to allow only upto 65535, so if you want to have higher numbers you need to use a different type of column, like INT, which allows upto 4 billion, so use the following mysql query to change the type:
Code:

ALTER TABLE `user` CHANGE `posts` `posts` INT UNSIGNED DEFAULT '0' NOT NULL
The code to reset it is correct.

Neo 08-01-2002 03:32 AM

*looks at old post* WTF

Logician 08-01-2002 05:20 AM

Quote:

Originally posted by Glock
I'm not sure what you mean Logican...
After you altered the post count field, have you altered post count numbers for some users too? For example, if you increased your post count to 2000000 (=it is a 7 digit number), you can NOT return back to original 5 digit field since now you have some post counts which wouldnt fit these fields. That was what I meant.

Zzed 08-01-2002 06:32 AM

I have a negative post count on my site. :D

http://www.ls1.com/forums/member.php...fo&userid=4112

Logician 08-01-2002 06:52 AM

Quote:

Originally posted by Zzed
I have a negative post count on my site. :D

if he managed to have this post count by himself, he is deserved to be banned for sure.. :D

Zzed 08-01-2002 05:01 PM

Quote:

Originally posted by Logician

if he managed to have this post count by himself, he is deserved to be banned for sure.. :D

It pays to be the administrator. :D Negative post count and a custom title that says Banned. :D It gets the newbies every time. :banana:


All times are GMT. The time now is 01:34 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.01157 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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