Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Adding new moderator's buttons?

Aloittaja Farmacija, joulukuu 16, 2007, 08:42:44 AP

« edellinen - seuraava »

Farmacija

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?
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Rumbaar

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Farmacija

Ok, should it be feature request then?
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Rumbaar

That would be the best option, or the Help Wanted section.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Farmacija

#4
Could you move this topic to appropriate forum?
--

would this help http://docs.simplemachines.org/index.php?topic=347 ?
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Rumbaar

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Farmacija

 :-X :P
ok i thought that is icon similiar to those which exist in replaz box such as bold, center text etc  :-\
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Rumbaar

Well if you want that kind of thing, you can try:
Custom BBCode
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Farmacija

i've already have it but that won't add text by pressing that button/icon...
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Rumbaar

Hmm you should be able to make a button that returns anything you want.  Then have it return text in the format you require.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Farmacija

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?
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Rumbaar

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Farmacija

i just in html box in admin section for custom bbc put the text i want, specify tag name and it works!
thanx rumbaar ::)
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Rumbaar

So I take it you've got it all worked out now then?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Farmacija

www.farmaceuti.com
www.farmaceuti.com/tekstovi

Advertisement: