vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   need help with a Query (https://vborg.vbsupport.ru/showthread.php?t=102325)

Auron 12-06-2005 04:39 AM

need help with a Query
 
hi, basically lm doing some work on a friends forum which has a solid member base however l converted to vb and certian settings have changed, however l worked out that by running the right query l could update all members options at once (was easy when l noticed the options table within users number change) however because my member base arent so internet inclined, personally l dont see why the guy baught a licence if he doesnt know how to use it :p

however the query l ran was:

Code:

UPDATE `user` SET options='1175';
(l think the option code was 1175 anyways hehe not looking at the code right now)

basically the sql code l want help with is basically to also update the editor members use to the enhanced wysywig(sp?) along with all the other options set as well as l noticed even when l change the option on the test account l had the number in the options coloumb didnt change unless l edited an option before that section in "Edit Options".



would be very greatful if someone knew the right query to run or tell me what l could be missing ;)

TIA

Auron

baronvonwalz 12-06-2005 04:43 AM

If you're using vB 3.5 there's an option to do that for you. Just go to:

AdminCP >> Maintenance >> Execute SQL Query

Then scroll down the list until you find "Show Enhanced (WYSIWYG) Editor Toolbar".

Or if that doesn't work, this is what that query does.

Code:

UPDATE user SET showvbcode = 2

Auron 12-06-2005 03:01 PM

sweet exactly what l was looking for however the query didnt work out as planed maybe that could be down to the admins accounts not been changed as l havent tested my test account. many thx for the prompt reply..

baronvonwalz 12-06-2005 05:09 PM

I kind of made an error in the syntax.

Code:

UPDATE `user` SET showvbcode = 2;

Auron 12-07-2005 12:00 AM

actually 2 errors :p

this is how the query should look

Code:

UPDATE `user` SET showvbcode='2';
lve later found out that the only account it didnt seem to update was my own for some weird reason it didnt update a couple of others as they were logged in, kinda strange but oh well.


All times are GMT. The time now is 03:33 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.01142 seconds
  • Memory Usage 1,715KB
  • 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
  • (4)bbcode_code_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