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.
I've made a second entry in the db (comp_keywords2) to give functions to another dos bot. The first one is for post/reply functions and other forum specific questions.
The second bot is made for future functions to give detailed info about members, for example if you type !zajako it will display info about him extracted out of the user entry or post in mysql or a custom infoblock with details about energy, strenght, endurance if this will be used in RPG type of situations. The problem is...how to code this.
I've made a second entry in the db (comp_keywords2) to give functions to another dos bot. The first one is for post/reply functions and other forum specific questions.
The second bot is made for future functions to give detailed info about members, for example if you type !zajako it will display info about him extracted out of the user entry or post in mysql or a custom infoblock with details about energy, strenght, endurance if this will be used in RPG type of situations. The problem is...how to code this.
it would not be too hard to make it do such things, once the system takes parameters, i have not worked on making the update due to upgrading to vbulletin 3... However once i get around to setting it up for vbulletin 3 ill update it.