Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2005, 03:23 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vB Bash!

vB Bash will be a modification that lets you do various things by posting a command in your post (on its own line). I started making this hack last year, but it was later abandoned. I plan on resurrecting it on vB 3.5 now.

Here's basically how a post would look like followed by how the vB Bash code sees it.
Code:
    You useless spammer.

    #useroptions -username Stupid User -o usertitle -v Useless Spammer --enable_ct

    Time to finish this job.

    #banuser -username Stupid User
    #deletethread --keepattach -r This thread sucks.



Matches:

Array
(
    [useroptions] => Array
        (
            [param] => Array
                (
                    [username] => Stupid User 
                    [o] => usertitle 
                    [v] => Useless Spammer 
                )

            [option] => Array
                (
                    [enable_ct] => 1
                )

        )

    [banuser] => Array
        (
            [param] => Array
                (
                    [username] => Stupid User
                )

        )

    [deletethread] => Array
        (
            [param] => Array
                (
                    [r] => This thread sucks.
                )

            [option] => Array
                (
                    [keepattach] => 1
                )

        )

)
Post suggestions and questions here.
Reply With Quote
  #2  
Old 06-16-2005, 03:27 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I recall correctly, the old version used/ intended to use the quick reply box for this? If your gearing this for vb 3.5 maybe have a seperate prompt line like area for this to be used in w/ ajax?
Reply With Quote
  #3  
Old 06-16-2005, 03:42 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reeve of shinra
If I recall correctly, the old version used/ intended to use the quick reply box for this? If your gearing this for vb 3.5 maybe have a seperate prompt line like area for this to be used in w/ ajax?
It uses posts, no matter how the post is made.
Reply With Quote
  #4  
Old 06-16-2005, 04:22 AM
twoseven twoseven is offline
 
Join Date: Jan 2004
Location: in floris' pants
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could you have a key word of the day(only you know it) if someone gets it they get something special that day/week/year(admin definable)? thinking forum access, promotion to another usergroup, etc. just an ider for you to chew on
Reply With Quote
  #5  
Old 06-16-2005, 05:51 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Honestly that wouldn't have anything to do with this hack. This hack is for letting you close/delete threads, change options, etc, from within a post. And of course it's fun ++++.
Reply With Quote
  #6  
Old 06-16-2005, 02:30 PM
twoseven twoseven is offline
 
Join Date: Jan 2004
Location: in floris' pants
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

didnt know which way you were taking it. i could see it being used both ways but thats just me decyphering psudocode
Reply With Quote
  #7  
Old 06-16-2005, 02:47 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been thinking of emote users system like you can do in YIM, something like /hug Link = deathemperor hugs Link badly and /hug = deathemperor hug everyone in the room
Reply With Quote
  #8  
Old 06-16-2005, 03:56 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deathemperor
I've been thinking of emote users system like you can do in YIM, something like /hug Link = deathemperor hugs Link badly and /hug = deathemperor hug everyone in the room
Alright, I implemented a way for it to pickup any text between the command (#hug) and the first parameter and make it a parameter itself.

Code:
#hug vB Bash -t badly

    [hug] => Array
        (
            [param] => Array
                (
                    [main] => vB Bash 
                    [t] => badly
                )

        )
So what you want would be possible, it'd just have to be with # and not /.
Reply With Quote
  #9  
Old 06-16-2005, 04:37 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it would be great if you can let us create more command in ACP through some options
Reply With Quote
  #10  
Old 06-16-2005, 05:08 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you will be able to add commands through the Admin CP with some PHP code.
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 11:43 AM.


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.04346 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete