Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2002, 05:39 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-11-2002, 05:56 PM
ManagerJosh's Avatar
ManagerJosh ManagerJosh is offline
 
Join Date: Feb 2002
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erm, why not just do all that through the vBulletin administration?
Reply With Quote
  #3  
Old 09-11-2002, 06:17 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is not the point ManagerJosh

I have a very valid reason for that
Reply With Quote
  #4  
Old 09-11-2002, 07:13 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-11-2002, 07:15 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 (by Firefly)

g-force2k2
Reply With Quote
  #6  
Old 09-11-2002, 07:56 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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!!
Reply With Quote
  #7  
Old 09-11-2002, 08:13 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 09-11-2002, 08:32 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK

Thank you very much NTLDR , now every thing makes sence
Reply With Quote
  #9  
Old 09-12-2002, 06:38 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-12-2002, 09:14 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 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.04156 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete