vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vB Bash! (https://vborg.vbsupport.ru/showthread.php?t=83185)

Link14716 06-16-2005 03:23 AM

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.

Reeve of shinra 06-16-2005 03:27 AM

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?

Link14716 06-16-2005 03:42 AM

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. ;)

twoseven 06-16-2005 04:22 AM

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

Link14716 06-16-2005 05:51 AM

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 ++++.

twoseven 06-16-2005 02:30 PM

didnt know which way you were taking it. i could see it being used both ways but thats just me decyphering psudocode

deathemperor 06-16-2005 02:47 PM

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

Link14716 06-16-2005 03:56 PM

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 /.

deathemperor 06-16-2005 04:37 PM

it would be great if you can let us create more command in ACP through some options

Link14716 06-16-2005 05:08 PM

Yes, you will be able to add commands through the Admin CP with some PHP code.


All times are GMT. The time now is 02:42 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.01170 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete