vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How do I close my board from phpMyadmin (https://vborg.vbsupport.ru/showthread.php?t=43434)

Remi 09-11-2002 05:39 PM

How do I close my board from phpMyadmin
 
Hi every body:

I tried to use this query to close my forum from phpMyadmin but it did not work I dont know whay!!

UPDATE setting SET value='0' WHERE settingid='1';

can correct me please

also, can you kindly show me how to delet a post or a thread by ID from phpMyadmin

Thank you very much in advance

ManagerJosh 09-11-2002 05:56 PM

Erm, why not just do all that through the vBulletin administration?

Remi 09-11-2002 06:17 PM

that is not the point ManagerJosh :D

I have a very valid reason for that :)

NTLDR 09-11-2002 07:13 PM

Switch Board Off:

[sql]UPDATE setting SET value='0' WHERE varname='bbactive';[/sql]

Delete Post:

[sql]DELETE FROM post WHERE postid='POSTIDHERE';[/sql]

Delete Thread:

[sql]DELETE FROM thread WHERE threadid='THREADIDHERE';[/sql]
[sql]DELETE FROM post WHERE threadid='THREADIDHERE';[/sql]

Remember to replace POSTIDHERE & THREADIDHERE with the correct thread/post id.

g-force2k2 09-11-2002 07:15 PM

Remi try this query:

PHP Code:

UPDATE setting SET value='0' WHERE varname='bbactive' 

regards... i never use phpmyadmin i just use the query runner :p (by Firefly)

g-force2k2

Remi 09-11-2002 07:56 PM

Thank you Thank you Thank you Thank you Veeeeeeeeeeeeeery much, you are great. :D

All of them are working accept this: :(


UPDATE setting SET value='0' WHERE varname='bbactive'

It changes the value from 1 to 0 but the forum is still open!!

Any idia what is the problebm!!

NTLDR 09-11-2002 08:13 PM

After taking a look I remembed that vB requires you to Submit the options after they have been changed, so a query similar to the following is needed, however it will not work, so don't run it on a live board:

[sql]UPDATE template SET template='bbactive' WHERE title='options'[/sql]

This is taken from options.php

Remi 09-11-2002 08:32 PM

OK

Thank you very much NTLDR , now every thing makes sence :D

FASherman 09-12-2002 06:38 PM

Quote:

Originally posted by NTLDR
Switch Board Off:

Delete Post:

[sql]DELETE FROM post WHERE postid='POSTIDHERE';[/sql]

Delete Thread:

[sql]DELETE FROM thread WHERE threadid='THREADIDHERE';[/sql]
[sql]DELETE FROM post WHERE threadid='THREADIDHERE';[/sql]

Remember to replace POSTIDHERE & THREADIDHERE with the correct thread/post id.

You do realize these instructions won't fully delete a post or a thread, right?

The correct way to do this:

To delete a thread, you have to delete the thread, any associated posts and any attachements associated with those posts, any polls associated with those threads and the poll answers associated with those threads and finally, any thread ratings for the thread.

You've left way too much out.

NTLDR 09-12-2002 09:14 PM

Quote:

Originally posted by FASherman
You've left way too much out.
I answered the question that was asked, all the other stuff is "optional" based on whether or not they are included in the thread, which wasn't specified. The correct way actually to do it is from the ACP, that way its done in a minimal amount of time and nothing will ever be left out.


All times are GMT. The time now is 08:31 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.01089 seconds
  • Memory Usage 1,732KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete