Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: Farmacija - joulukuu 16, 2007, 08:42:44 AP

Otsikko: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 16, 2007, 08:42:44 AP
How i can add new buttons for moderators?
it is needed to show some text in posts after moderator clik on certain button, like warninig members for offtopick, posting warez , etc etc?
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Rumbaar - joulukuu 16, 2007, 08:19:34 IP
It wont be an easy task.  I take it you want to add new buttons next to the 'modify, split, delete, etc' mod buttons, that only appear to those that can moderate.  That once clicked insert specific responses into a thread.

Now I know there is a javascript the forum uses to perform the insert of quote button, but I'm unsure if it can be adapted to meet your needs.  You would need to create extra buttons arrays in the appropriate places and call a JS to insert specific text.
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 17, 2007, 05:38:04 AP
Ok, should it be feature request then?
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Rumbaar - joulukuu 17, 2007, 06:14:37 AP
That would be the best option, or the Help Wanted section.
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 17, 2007, 09:11:51 AP
Could you move this topic to appropriate forum?
--

would this help http://docs.simplemachines.org/index.php?topic=347 ?
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Rumbaar - joulukuu 17, 2007, 04:07:03 IP
Ok I've moved it to requests :)

I don't think that would help.  That is only for changing the post icon that is displayed next to the posts subject line and is accessible to all.  But doesn't insert anything special into a message after use.
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 17, 2007, 04:28:34 IP
 :-X :P
ok i thought that is icon similiar to those which exist in replaz box such as bold, center text etc  :-\
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Rumbaar - joulukuu 17, 2007, 04:37:32 IP
Well if you want that kind of thing, you can try:
Custom BBCode (http://custom.simplemachines.org/mods/index.php?mod=621)
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 17, 2007, 04:58:19 IP
i've already have it but that won't add text by pressing that button/icon...
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Rumbaar - joulukuu 17, 2007, 05:25:41 IP
Hmm you should be able to make a button that returns anything you want.  Then have it return text in the format you require.
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 18, 2007, 08:26:57 AP
are u sure?
that would add just certain look for text that u would write in post, for example red boz around tex which u put between certain tags?
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Rumbaar - joulukuu 18, 2007, 03:55:57 IP
Well I'm under the impression you can create whatever code to display via that mod, though it would be best to contact the mod's creator.

So create a bbcode & button that returns a string of text in a format you like should be possible.
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 19, 2007, 07:42:13 AP
i just in html box in admin section for custom bbc put the text i want, specify tag name and it works!
thanx rumbaar ::)
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Rumbaar - joulukuu 19, 2007, 04:09:04 IP
So I take it you've got it all worked out now then?
Otsikko: Re: Adding new moderator's buttons?
Kirjoitti: Farmacija - joulukuu 20, 2007, 07:17:37 AP
so far , yes. :)