vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Undo Queries (https://vborg.vbsupport.ru/showthread.php?t=52628)

S.Shady 05-06-2003 12:21 AM

Undo Queries
 
i would like to undo querys. how whould i do that ?

filburt1 05-06-2003 12:25 AM

You can't unless you know what the queries did, or unless you have a database backup.

S.Shady 05-06-2003 12:35 AM

i have the queries i added. thnx for helping hopfully i can undo these

+-------------------------------------------------------------------------------------------------+
| Run this query: |
+-------------------------------------------------------------------------------------------------+
INSERT INTO settinggroup VALUES (302,'[HL]Signature Settings',302);
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Run this query: |
+-------------------------------------------------------------------------------------------------+
INSERT INTO setting VALUES (320,302,'Maximum signature lines?', 'maxsiglines', '5', 'Maximum number of *line breaks* allowed in signatures. Set this to 0 to have no effect.', '', '1');
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Run this query: |
+-------------------------------------------------------------------------------------------------+
INSERT INTO setting VALUES (221,302,'Maximum images per signature?', 'maxsigimages','5' , 'Maximum number of *images* to allow in signatures. Set this to 0 to have no effect.','', '2');
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Run this query: |
+-------------------------------------------------------------------------------------------------+
INSERT INTO setting VALUES (322,302,'Maximum image width?', 'maxsigwidth','450','Maximum *width* allowed for images in signatures. Set this to 0 to have no effect.', '', '3');
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Run this query: |
+-------------------------------------------------------------------------------------------------+
INSERT INTO setting VALUES (323,302,'Maximum image height?', 'maxsigheight','125','Maximum *height* allowed for images in signatures. Set this to 0 to have no effect.', '', '4');
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Run this query: |
+-------------------------------------------------------------------------------------------------+
UPDATE setting SET title='Maximum images per post?' WHERE settingid='18';
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Run this query: |
+-------------------------------------------------------------------------------------------------+
UPDATE setting SET description='Maximum number of images to allow in posts. Set this to 0 to have no effect.' WHERE settingid='18';

filburt1 05-06-2003 12:38 AM

There's no really easy way to do it, especially because the queries are so badly coded that there are no specific columns referenced.

S.Shady 05-06-2003 12:40 AM

any suggestions though ?

edit

all of those queries add things to the vBulletin Options page in the admincp

filburt1 05-06-2003 01:05 AM

Try:
[sql]
DELETE FROM settinggroup WHERE settinggroupid = 302;
DELETE FROM setting WHERE settinggroupid = 302;
[/sql]
My god, that's really bad now that I look upon it (not relying on the auto_increment in that type of column)...

S.Shady 05-06-2003 01:27 AM

im scared now lol.

filburt1 05-06-2003 01:31 AM

Just back up your database first and nothing can go wrong.

"What could possibly go wrong?"

Erwin 05-06-2003 01:56 AM

Better yet, run admin/setting.php and just find the extra settings and delete them manually. :)

S.Shady 05-06-2003 02:12 AM

Quote:

Today at 10:56 PM Erwin said this in Post #9
Better yet, run admin/settings.php and just find the extra settings and delete them manually. :)

Omg.... I never knew that. Lol thanks. :)

edit BTW its setting not settings :)


All times are GMT. The time now is 07:59 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.01021 seconds
  • Memory Usage 1,739KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete