Topic/Post Button for Mods & Admins
5 posters
Page 1 of 1
Topic/Post Button for Mods & Admins
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
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
Last edited by PandahFish on March 30th 2012, 6:06 pm; edited 1 time in total
Re: Topic/Post Button for Mods & Admins
How do I turn off : WYSIWYG ?
I'm following that tutorial but nothing happens.
I'm following that tutorial but nothing happens.
Re: Topic/Post Button for Mods & Admins
Administration Panel > General > Messages & Emails > Configuration
Messages Section
Activate the WYSIWYG mode by default in the posts : No
Messages Section
Activate the WYSIWYG mode by default in the posts : No
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Topic/Post Button for Mods & Admins
I have WYSIWYG on no and followed that tutorial, I put the code in the HTML and it still doesn't work. D:
Re: Topic/Post Button for Mods & Admins
The code should go in JavaScript Management.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Topic/Post Button for Mods & Admins
Consider reading through the thread at other people that have had issues too.
make sure you have complied to all things mentioned later on.
make sure you have complied to all things mentioned later on.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Topic/Post Button for Mods & Admins
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.
onclick="input(\'TEXT TO INPUT IN THE TEXTBOX\')"
That will need to go inside the img tag.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Topic/Post Button for Mods & Admins
I really need help. I made a video.
https://www.youtube.com/watch?v=-vXEh-qY8wM
https://www.youtube.com/watch?v=-vXEh-qY8wM
Re: Topic/Post Button for Mods & Admins
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:
Change the bits in capitals.
The code should look like this:
- Code:
$(document).ready(function(){
$('input[value="Others"]').after('<img src="http://2img.net/i/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.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Topic/Post Button for Mods & Admins
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?
And what about the one that gives you the list?
And how do I disable it so only the staff can see?
Re: Topic/Post Button for Mods & Admins
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.
To get it for only staff, you could stick it in a widget and set the permissions accordingly.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Topic/Post Button for Mods & Admins
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.
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.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Topic/Post Button for Mods & Admins
Hello,
Is this solved?
Is this solved?
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» Code to show button Only for Mods/Admins
» Any way the admins and mods can unstick a topic, without....
» Only admins/mods can have topic title color
» Lock the 'New Topic' button but not the 'Post Reply' button
» Post Topic Button
» Any way the admins and mods can unstick a topic, without....
» Only admins/mods can have topic title color
» Lock the 'New Topic' button but not the 'Post Reply' button
» Post Topic Button
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum