SQL Commands > Invisionize.eu - IP.Board (IPB) News
Kanał Rss Kanał Rss
Kanał Atom Kanał Atom

SQL Commands

wersja drukowalna wersja Microsoft Word wersja HTML

This topic is full of SQL commands to help admins with IPB acp

n = new group
o = old group
x = number
f = new forum
z = current forum
m = moderator's user id


Mass Move Members to a New Group

UPDATE ibf_members SET mgroup = n WHERE mgroup = o



Remove All Profile Comments From A Certain Member

DELETE FROM ibf_profile_comments WHERE comment_by_member_id = x



Mass Move Members with 0 posts (including banned)

UPDATE ibf_members SET mgroup = n WHERE posts = 0



Mass Move Members with 0 posts (non-banned)

UPDATE ibf_members SET mgroup = n WHERE posts = 0 AND mgroup = o



Delete Members with 0 Posts

DELETE FROM ibf_members WHERE posts=0



Move One Forums Topics To Another Forum

UPDATE ibf_forums SET parent_id = f WHERE parent_id = z



Change 0 Viewed Topics To 100 Viewed Topics

UPDATE ibf_topics SET views = '100' WHERE views = '0'



Remove A Moderator

DELETE FROM ibf_moderators WHERE member_id = m



Log Out All Members

TRUNCATE TABLE ibf_sessions



Remove All Admin Login Logs

TRUNCATE TABLE ibf_admin_login_logs



Remove All Admin Logs

TRUNCATE TABLE ibf_admin_logs



Remove All Badwords From The Filter

TRUNCATE TABLE ibf_badwords



Remove All Ban Filters

TRUNCATE TABLE ibf_banfilters



Remove All Email Logs

TRUNCATE TABLE ibf_email_logs



Remove All Profile Comments

TRUNCATE TABLE ibf_profile_comments



Remove All Friends From All Users

 

TRUNCATE TABLE ibf_profile_friends

Remove All Profile Ratings

TRUNCATE TABLE ibf_profile_ratings



Remove All Spider Logs

TRUNCATE TABLE ibf_spider_logs



Remove All Task Logs

TRUNCATE TABLE ibf_task_logs



IDM - Remove Last Updated Info From All Files

UPDATE ibf_downloads_files SET file_updated=0



IDM - Remove File Approver From All Files

UPDATE ibf_downloads_files SET file_approver='0' AND file_approvedon='0'



Update Profile Views to 0 (globally)

UPDATE ibf_members SET members_profile_views = 0



Update Profile Views to 0 Per Member

UPDATE ibf_members SET members_profile_views = 0 WHERE id=x



Move Forums To Another Category

UPDATE ibf_forums SET parent_id = f WHERE parent_id = z



Mass Delete Specific Member PMs

 

DELETE FROM ibf_message_text WHERE msg_author_id = x 

DELETE FROM ibf_message_topics WHERE mt_from_id = x




Reset All Warns

UPDATE ibf_members SET warn_level = 0




Change Author ID of Any Post

UPDATE ibf_posts SET author_id='1' WHERE pid=' p - i -d';




Change Topic Title and Post Data

update ibf_topics set title='title', starter_id='member id' where tid='id of the topic'




Set User Group for a Particular Member

UPDATE ibf_members SET mgroup = 4 WHERE id = x



Change All Closed Topics to Open

UPDATE ibf_topics SET state='open' WHERE state='closed'




Change All Open Topics to Closed

UPDATE ibf_topics SET state='closed' WHERE state='open'



mass move forum topics from one to other forum, where x= new forum, and y= current forum

update ibf_forums set parent_id = X where parent_id = Y



to update 0 view topics to 100 or what ever no of views you want.

UPDATE ibf_topics SET views = '100' WHERE views = '0'

wto, 18 maj 2010

Komentarze:

Brak komentarzy

Imię/Nick:

Adres email:

Strona WWW:

Treść Komentarza: