PDA

View Full Version : vB-Bang! / vB Dos "Turn your quick reply into Command Prompt"


zajako
01-08-2004, 10:00 PM
You can use this hack to create commands that ar issued from your quick reply. Some of ro preprogrammed commands are things like Close thread or dump thread, and there are many more details in the install file about those. This hack also provides the ability to be a help bot, that detects when users say keywords, and it will reply underneith their post with the preprogrammed responce.
Currently you must add new commands via mysql admin or any other query running program, however in the future i plan to make an admin panel page for it.

Enjoy !

Erwin
01-09-2004, 12:47 AM
This is a cool hack. :)

zajako
01-09-2004, 01:19 AM
thanks, now that vb3 hacks are allowed maybe the place will make this a bit bigger than it was last time :P

Koutaru
01-09-2004, 01:29 AM
I was wondering when you were going to release on vb.org :) Thanks!

hagi
01-09-2004, 01:34 AM
Looks like a good hack :) I'll wait abit though for the admincp version since I almost destroyed my database before :p ^^"

Link14716
01-09-2004, 02:41 AM
I installed it a while ago, so....

* Link14716 licks install.

Nice hack. Thanks for sharing it. :)

MGM
01-09-2004, 02:55 AM
nice hack! i've seen this for vB2 but never installed it... seems usefull

/me clicks Install

MGM out

pie
01-09-2004, 01:02 PM
Screenshot would do nicely plz

corsacrazy
01-09-2004, 01:04 PM
command demos pls

FleaBag
01-09-2004, 02:12 PM
Nice idea, will come in handy for me especially as my aged PC isn't a fan of Javascript - this will save me a lot of time. :)

zajako
01-10-2004, 05:47 AM
glad you guys like it, ill make the admin cp version of it when i can, and screenshots would be the same as showing a post with !closethread in it or something like that.

the great part about it is you can simply type in your reason for closing the thread then type in !closethread and it will close with your reply.

im glad you guys find it useful though :)

okrogius
01-11-2004, 10:20 PM
glad you guys like it, ill make the admin cp version of it when i can, and screenshots would be the same as showing a post with !closethread in it or something like that.

the great part about it is you can simply type in your reason for closing the thread then type in !closethread and it will close with your reply.

im glad you guys find it useful though :)
Very messy code to be honest.

Plus the delete thread is severely flawed too. Instead of deleting from view which is probably desired you permanently delete. And delete only the thread entry, leaving all posts and their caches out for no reason. Neither are the forum counters updated with delete/hide/unhide.

zajako
01-12-2004, 09:56 AM
Very messy code to be honest.

Plus the delete thread is severely flawed too. Instead of deleting from view which is probably desired you permanently delete. And delete only the thread entry, leaving all posts and their caches out for no reason. Neither are the forum counters updated with delete/hide/unhide.
messy?, its not more than 20-30 lines, the codes made for commands are indeed kinda messy cause i translated them for vb3 by changing the ones for vb2.

I never actualy perfected the vb3 commands, as i dont use it for vb3, it has drop down menus. The coding powering it however is really clean and to the point, if you think its messy, then you must not know how to read php >.>

Sorry but people like you, are what pisses me off about this site. Insulting other peoples work, rather than being greatful somone like me takes the time to make something he does not use himself, to share with other people. If this were my site, i would ban every last person who instuled somone elses work >.>

Grr i sometimes hate this site!!!!

Good day to you all!

Floris
01-12-2004, 10:10 AM
Very messy code to be honest.

Plus the delete thread is severely flawed too. Instead of deleting from view which is probably desired you permanently delete. And delete only the thread entry, leaving all posts and their caches out for no reason. Neither are the forum counters updated with delete/hide/unhide.
Please explain to me why his code is messy ?

Requesting to have a thread deleted on this site because you have an oppinion doens't really convince me and others about the quality of your arguments.

Dark Shogun
01-12-2004, 10:11 AM
messy?, its not more than 20-30 lines, the codes made for commands are indeed kinda messy cause i translated them for vb3 by changing the ones for vb2.

I never actualy perfected the vb3 commands, as i dont use it for vb3, it has drop down menus. The coding powering it however is really clean and to the point, if you think its messy, then you must not know how to read php >.>

Sorry but people like you, are what pisses me off about this site. Insulting other peoples work, rather than being greatful somone like me takes the time to make something he does not use himself, to share with other people. If this were my site, i would ban every last person who instuled somone elses work >.>

Grr i sometimes hate this site!!!!

Good day to you all!Please be calm I am sure he didn't mean any disrespect. No need to hate a site by what 1 or a FEW people think or say.

Requesting to have a thread deleted on this site because you have an oppinion doens't really convince me and others about the quality of your arguments.He doesn't mean to delete this thread.

Dark Shogun

DarkJediKiller
01-12-2004, 11:18 AM
Very messy code to be honest.

Plus the delete thread is severely flawed too. Instead of deleting from view which is probably desired you permanently delete. And delete only the thread entry, leaving all posts and their caches out for no reason. Neither are the forum counters updated with delete/hide/unhide.


It's simple, you don't like the hack? Don't use it! Simple, no?


Good job Zaj, I'll be using this for sure! :)

okrogius
01-12-2004, 08:05 PM
It's simple, you don't like the hack? Don't use it! Simple, no?

I am not using it. Not due to disrespect for the person's time for writing this, but simply because I have no need for it. Nevertheless I don't believe giving suggestions how to make something better is something which shouldn't be done.

messy?, its not more than 20-30 lines, the codes made for commands are indeed kinda messy cause i translated them for vb3 by changing the ones for vb2.

I never actualy perfected the vb3 commands, as i dont use it for vb3, it has drop down menus. The coding powering it however is really clean and to the point, if you think its messy, then you must not know how to read php >.>

Sorry but people like you, are what pisses me off about this site. Insulting other peoples work, rather than being greatful somone like me takes the time to make something he does not use himself, to share with other people. If this were my site, i would ban every last person who instuled somone elses work >.>

Grr i sometimes hate this site!!!!

Good day to you all!
If you don't like a subtle suggestion to cleanup some of it, then by all means don't do it. But don't get upset over it either. If I wanted to insult you in any way I could have found another fifty different ways to do that more harshly.

Want me to be specific?
-lack of spacing [readability]
-lack of variable naming scheme, no camel/pascal/etc [readability]
-integers in quotes [readability, effeciency]
-double quotes where single quotes are more effecient, and which result in unnecessary escape characters [readability, effeciency]
-improper indentation in several places [readability]
-inconsistent use or AND, OR, &&, || [readability]
-unptopimzied if statements, most likely case should go first and it is also more readable that way [effeciency]
-use of functions which have better counterparts (ie rand(), mt_rand()) [effeciency]
-unnecessary temp variables - but you may argue your way out of this one by the fact that they increase readability [effeciency]
-use of slower functions without need for them (ie strstr(), strpos()) [effeciency]

You are more then welcome to dislike this and ignore it, or you may try to take suggestions so you code better in the future. But if you don't want to improve yoru code, fine, but at least don't cry when suggestions come.

As far as my comment about deletions go - that is is a rather large bug, but I don't see a comment on that. It does not delete the data completely (provided you wanted a complete delete, rather then vb3's "delete" of making it only visible to adminstration) and leaves garbage "lost" data in your database. You also need to delete the proper entries from the post table, postcache, and any other relevant tables I may not have on my mind at the moment too. [bug]

Talking more about logic bugs:
if(strstr($newpost['message'],$key[keyword])){
should be
if ( substr($newpost['message'], $key['keyword'])!==false ) {
Otherwise the command is not triggered if it's the first thing in the message body. (the position of the string will be 0, not 1; substr() vs strstr() is purely efficiency reasons) [bug]

And please don't assume that someone can't read PHP without any factual knowledge about the person.

Best wishes,
Oleg

Charlie Argueta
03-19-2004, 04:51 PM
Please be calm I am sure he didn't mean any disrespect. No need to hate a site by what 1 or a FEW people think or say.

He doesn't mean to delete this thread.

Dark Shogun
Does it works well? in the last post there are some suggestions...

See Ya

Shadow Blaze
10-09-2004, 01:29 AM
Zajako is kool i bet all his codes are awsome including the RCs wicth i belived stormed help and when you peopple post stuff like that i prob advise meaning on what your saying so people dont misunderstand each other Zajako good work nice forum go im goin to buy the Rcs soon ^_^

bigcurt
07-14-2005, 03:02 AM
Ya know, I really like this hack. I would really like to see it integrated with admin panel ( the bot settings ect, ) so if anyone else doe something like this, please tell me :)

csidlernet
07-20-2005, 09:10 AM
thanks!