The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Topic/Post Button for Mods & Admins

View previous topic View next topic Go down

Topic/Post Button for Mods & Admins

Post by DK on March 30th 2012, 6:04 pm

I'm not sure how to describe this but I think it's called a table? :S Like the " Others " button that you see when you post a reply or make a new topic, not sure what that's called. I hope you know what I'm talking about and not making this sound confusing.

Anyway, I would like to create a button like that but for Mods and Admins only and I need help.
I screenshot the picture and saved it but I was asked to remove it, so if the staff wants to see what I'm talking about if I'm being confusing in this message, you can PM me Very Happy


Last edited by PandahFish on March 30th 2012, 6:06 pm; edited 1 time in total
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by E-Mark on March 30th 2012, 6:05 pm

avatar
E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on March 30th 2012, 7:36 pm

How do I turn off : WYSIWYG ?
I'm following that tutorial but nothing happens.
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by SLGray on March 30th 2012, 8:19 pm

Administration Panel > General > Messages & Emails > Configuration
Messages Section
Activate the WYSIWYG mode by default in the posts : No


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39145
Reputation : 2626
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on March 30th 2012, 10:39 pm

I have WYSIWYG on no and followed that tutorial, I put the code in the HTML and it still doesn't work. D:
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by SLGray on March 30th 2012, 10:42 pm

The code should go in JavaScript Management.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39145
Reputation : 2626
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on March 30th 2012, 10:43 pm

That's where I put it :\
Do I have the allow HTML?
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by LGforum on March 30th 2012, 11:07 pm

Consider reading through the thread at other people that have had issues too.
make sure you have complied to all things mentioned later on.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on March 30th 2012, 11:30 pm

avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by LGforum on March 31st 2012, 12:16 am

Yes but tick 'in the topics' and your image will need an onclick event.
onclick="input(\'TEXT TO INPUT IN THE TEXTBOX\')"
That will need to go inside the img tag.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on March 31st 2012, 3:40 pm

I really need help. I made a video.
http://www.youtube.com/watch?v=-vXEh-qY8wM
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by LGforum on March 31st 2012, 5:13 pm

That tutorial has got messy and is wrong since FMQuery went through a version change. Code blocks can often be affected when changing forum platforms.

The code should look like this:
Code:

$(document).ready(function(){
$('input[value="Others"]').after('<img src="http://illiweb.com/fa/wysiwyg/separator.png"><button type="button" onclick="input(\'YOUR TEXT TO INPUT\');" class="button2">YOUR BUTTON NAME</button>');
});

function input(text) {
document.getElementById('text_editor_textarea').value+=text;
}

Change the bits in capitals.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on March 31st 2012, 5:33 pm

Thanks! It works!
And what about the one that gives you the list?
And how do I disable it so only the staff can see?
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by LGforum on March 31st 2012, 9:31 pm

Making it a list is a little different.

To get it for only staff, you could stick it in a widget and set the permissions accordingly.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on March 31st 2012, 11:26 pm

I did that, but the members can still see it.
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by LGforum on March 31st 2012, 11:50 pm

Then you didn't set the permissions acdordingly.

Put the script inside <script> tags, in the source code of a widget.
Swap the dollar symbols for jQuery (due to FM's censoring of the dollar symbol)
and set the permission of the widget so members to Admin and Moderators only.
In that situation... its impossible for your members to see it, since its in a widget set only moderators and admin.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on April 1st 2012, 9:02 pm

That works,the list code is harder than it looks. :s
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by Jophy on April 2nd 2012, 3:30 am

Hello,

Is this solved?
avatar
Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Re: Topic/Post Button for Mods & Admins

Post by DK on April 2nd 2012, 4:52 am

Hi Jophy! How are you? Very Happy

And no it's in progress.
avatar
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum