vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Increase post count of all memebers (https://vborg.vbsupport.ru/showthread.php?t=223617)

abdulbasitsaeed 09-20-2009 12:02 AM

Increase post count of all memebers
 
Hi everyone!

I want to increase the post count of all the members on my forums (as a gift). I know that it can be done manually, user by user. But is there any way to do it on a global level, i.e. for all members altogether without editing every member's profile in the Admin Control Panel?

Any input would be appreciated.

Adrian Schneider 09-20-2009 12:23 AM

You can run the following query to add 10 posts to every member in the database:

Code:

UPDATE user
  SET posts = posts + 10

Change 10 to however many posts you want to increment their records by.

abdulbasitsaeed 09-20-2009 12:43 AM

Thank you very much for your prompt response, SirAdrian. :)

Just so that I'm clear on this, I am supposed to run this code in the "Execute SQL Query" option in the Admin Control Panel, right?

And I'm supposing it shall have to be executed in the Manual Query box, right?

Adrian Schneider 09-20-2009 01:17 AM

Yes.

AdminCP > Maintenance Tab > Execute SQL Query

Paste it in the box and submit. You may have to also add a table prefix before 'user' if you have one configured. :)

abdulbasitsaeed 09-20-2009 01:24 AM

Thank you once again, sir! :)

I'll hopefully get back to you on this.

--------------- Added [DATE]1253465949[/DATE] at [TIME]1253465949[/TIME] ---------------

Just wanted to let you know that it worked like a piece of cake!

Thank you, my friend. :)

abdulbasitsaeed 09-21-2009 01:27 AM

Another question...well, I was thinking if I could increase the reputation level of all members instead of increasing the post count.

Is it possible to execute an SQL query like above to do so? :)


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