Visual code assistant #6
Description
Quote from XienDev (http://www.simplemachines.org/community/index.php?topic=493451.msg3487156#msg3487156 ):
I've got some idea about modbuilder, i understood your position as helping for someone to create a mod easily, without deep knowledge about smf structure and etc. OK, i think it would be cool if you add some visual asist to mode builder, in example:
you have got a list of all important smf scripts and you show a hint that contains a description for a script. After you chose that script, you can apply a hook to any containing function (before call, after call), or choose a list of db queries or echo comands and modify them. Other thing is a list of helper hooks, in example: You display a textarea where user can post any php script, and below this textarea, show other dynamically created field:
"execute when:" "choose from a list"
you can select:
user
membergroups
messages
statistics
register
posts
etc
in example we choose messages, then we have
"execute when:" "messages" "choose from a list":
count
time
reputation
replies
etc.
we choose count:
"execute when:" "messages" "count" "choose from a list":
is
at
since
for
---> is:
"execute when:" "messages" "count" "is" "choose from a list":
greater then
less than
equal to
greater or equal to
less then or equal to
etc
--->greater than
"execute when:" "messages" "count" "is" "greater than" [entervalue]:
and in a text field for script should be a visual assist:
when you enter:
send [pm]
[message]
[notification]
[warning]
[....]
.....
send pm to [admin]
[user]
[other guys]
.....
send pm to user ("bla bla bla");
Something like this, but[b] it's hard to implement[/b], and you should take a time for construct a whole image about it.