Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
vB-DOS turning quick reply into command prompt Details »»
vB-DOS turning quick reply into command prompt
Version: 1.00, by zajako zajako is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

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_keywordsVALUES (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_keywordsVALUES (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_keywordsVALUES (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_keywordsVALUES (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.

Comments
  #22  
Old 10-23-2003, 10:50 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks erwin
Reply With Quote
  #23  
Old 10-23-2003, 11:01 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wonderful hack zajako.... you plan on updating it for vB3 when it goes rc?
Reply With Quote
  #24  
Old 10-23-2003, 11:04 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, it will be an easy update to make, seeing how this does not rely on vb2's functions, i just gotta change the queries around, thats about it.
Reply With Quote
  #25  
Old 10-24-2003, 01:31 AM
Gio Takahashi's Avatar
Gio Takahashi Gio Takahashi is offline
 
Join Date: Jul 2003
Location: Cape Coral
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thing is surprisingly simple and easy to play with for such a powerful script, the installation was easy as heck, Though it does requires a lot of database work but it is very easy, I will definitely try to get more command out of this.
Reply With Quote
  #26  
Old 10-24-2003, 01:34 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stick thread - by zajako
sticky's a thread.
PHP Code:
INSERT INTO `comp_keywordsVALUES (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_keywordsVALUES (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_keywordsVALUES (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_keywordsVALUES (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); 
4 new commands
Reply With Quote
  #27  
Old 10-24-2003, 01:52 AM
Gio Takahashi's Avatar
Gio Takahashi Gio Takahashi is offline
 
Join Date: Jul 2003
Location: Cape Coral
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added and tested and it works without problem.

I see a LOT of potential in this, anyone can easily make add Ons to this hack, I can also that this can go well with several other major hacks like Lesane's store hack, this one should have its own sub forums. There could be a lot of add ons involved with this one.
Reply With Quote
  #28  
Old 10-24-2003, 02:06 AM
KingdomHeartsII KingdomHeartsII is offline
 
Join Date: Oct 2003
Location: New York
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack might make a really really really good idae, im installing Store right now, but this is on my list! nice idea!

[high]* KingdomHeartsII LIKES! [/high]
Reply With Quote
  #29  
Old 10-24-2003, 02:38 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks kingdom hearts
Reply With Quote
  #30  
Old 10-24-2003, 07:46 AM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't it faster with the small checkboxes some of you created as addon for the quick reply?

To me it's faster to click a checkbox than to write a command...
Reply With Quote
  #31  
Old 10-24-2003, 08:49 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is so versitle though that you can make commands do almost anything. Not just things that the checkboxes could do. The post and thread editing commands are just some defaults i added.
Reply With Quote
Reply

Thread Tools

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 12:15 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06031 seconds
  • Memory Usage 2,327KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete