Log in

View Full Version : vB Bash!


Link14716
06-16-2005, 03:23 AM
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.
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
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
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.

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

deathemperor
06-16-2005, 11:19 PM
release day ?

Link14716
06-17-2005, 01:07 AM
It'll be released when it's done. :p

I just started on this again, I haven't touched it in over a year. The parts that are done seem to be working fine, I have a few things that I tested it with (#me, #hug, and #red), now I am moving on to the commands that are what vB Bash is meant for (#closethread, #openthread, #vboptions, #useroptions, things such as that).

bigcurt
06-21-2005, 01:21 AM
Any chance that you will release for vB 3.0.7?

Zachery
06-21-2005, 01:31 AM
I'm fairly sure matts doing this for 3.5 and beyond.

bigcurt
06-21-2005, 10:52 AM
yea I sort of figured :(..Its just my site cant live without some of my hacks, and I am fairly sure that the coder will not remake for 3.5...so I am sort of screwed.