Version: 1.00, by zajako
Developer Last Online: Aug 2013
Version: 2.2.x
Rating:
Released: 10-22-2003
Last Update: Never
Installs: 8
No support by the author.
All right, its been a while since i released something here.
Lets hope that i dont have anymore bad experinces with releasing programs here, cause i like sharing my projects with you guys.
vB-DOS is a potentialy powerful script that integrates with the vbulletin reply system. When you make a post it checks to see if you have a command word in it. If you do it then runs the proper script for that command. You can also make commands simply post a reply with an answer, for example, if you make the command !help and you set the reply to list some other commands, and leave the command field at 0 it will simply post a reply with the answer to the command you gave.
However the powerful part of this, is you can run php scripts with commands. Included with the install file are 4 common commands, that make moderating your forums easier.
!deletethread -- when this is posted by an admin, it deletes the thread it was posted in.
!dumpthread -- when this is posted by an admin or smod, it moves the thread to the assigned dump forum
!closethread -- when this is posted by an admin or smod , it closes the thread it was posted in
!openthread -- when posted by an admin or smod, it opens a closed thread it was posted in.
This script helps me alot, and my mods appriciate it. If you use it and make custom commands, please share them here, as i have shared this program with you.
Ill post all shared commands in this post, please include a description with your command that you share.
Demo www.tfogame.com (there is a post in the news forum about it saying tfo computer, keep to that thread for testing it please) The !help command lists some userside faq commands.
Shared Commands
Stick thread - by zajako
sticky's a thread.
PHP Code:
INSERT INTO `comp_keywords` VALUES (null, '!stickthread', 'if($bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 5){\r\n $DB_site->query("UPDATE thread SET sticky=\'1\' WHERE threadid=\'$threadid\'");\r\n $goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";\r\n eval("standardredirect(\\""."Thread Stuck"."\\",\\"$goto\\");");\r\n}else{\r\n $dosmess="You do not have permission to do said command.";\r\n}', 1);
UnStick thread - by zajako
unsticky's a thread.
PHP Code:
INSERT INTO `comp_keywords` VALUES (null, '!unstickthread', 'if($bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 5){\r\n $DB_site->query("UPDATE thread SET sticky=\'0\' WHERE threadid=\'$threadid\'");\r\n $goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";\r\n eval("standardredirect(\\""."Thread Stuck"."\\",\\"$goto\\");");\r\n}else{\r\n $dosmess="You do not have permission to do said command.";\r\n}', 1);
Hide thread - by zajako
Makes a post non visible
PHP Code:
INSERT INTO `comp_keywords` VALUES (null, '!hidethread', 'if($bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 5){\r\n $DB_site->query("UPDATE thread SET visible=\'0\' WHERE threadid=\'$threadid\'");\r\n $goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";\r\n eval("standardredirect(\\""."Thread Stuck"."\\",\\"$goto\\");");\r\n}else{\r\n $dosmess="You do not have permission to do said command.";\r\n}', 1);
Show thread - by zajako
makes an invisible post visible
PHP Code:
INSERT INTO `comp_keywords` VALUES (null, '!showthread', 'if($bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 5){\r\n $DB_site->query("UPDATE thread SET visible=\'1\' WHERE threadid=\'$threadid\'");\r\n $goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";\r\n eval("standardredirect(\\""."Thread Stuck"."\\",\\"$goto\\");");\r\n}else{\r\n $dosmess="You do not have permission to do said command.";\r\n}', 1);
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
!help and !gold simply have !help as the command then the reply being the responce. Just make sure the command field is set to 0 and it replys back with the message.
!help and !gold simply have !help as the command then the reply being the responce. Just make sure the command field is set to 0 and it replys back with the message.
Forgive me but i don't understand this. Can you give an example of such a querie as in !help?
here is what I used, it is actually very simple ,if you have Phpmyadmin do this -
In Keyword put in !help
In Reply, put in whatever you want the bot to say, thats it, the reply box is designed for what the bot should say and search and runs any script in the reply box, and make sure you set command to 0 it should be below the box. If that doesn't help, I'll show you the attachment on how I did it. Its very easy.
INSERT INTO `comp_keywords` VALUES (null, '!help', 'Use the keywords to the right of the questions, to recive answers to them.\r\nobtaining gold > !gold<br>\r\nim new where do i post > !imnew<br>\r\nwhat is the gold for > !gold<br>\r\nhow do i make a character > !character<br>\r\n', 0);