The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Topic/Post Button for Mods & Admins

5 posters

Go down

Topic/Post Button for Mods & Admins Empty Topic/Post Button for Mods & Admins

Post by DK 30/3/2012, 11:04

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 30/3/2012, 11:06; edited 1 time in total
DK
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by E-Mark 30/3/2012, 11:05

E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

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

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 30/3/2012, 12:36

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

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by SLGray 30/3/2012, 13:19

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


Topic/Post Button for Mods & Admins Slgray10

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 30/3/2012, 15:39

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

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by SLGray 30/3/2012, 15:42

The code should go in JavaScript Management.


Topic/Post Button for Mods & Admins Slgray10

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 30/3/2012, 15:43

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

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by LGforum 30/3/2012, 16:07

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

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 30/3/2012, 16:30

DK
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by LGforum 30/3/2012, 17:16

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.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 31/3/2012, 08:40

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

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by LGforum 31/3/2012, 10:13

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://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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 31/3/2012, 10:33

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?
DK
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by LGforum 31/3/2012, 14:31

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.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 31/3/2012, 16:26

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

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by LGforum 31/3/2012, 16:50

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.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 1/4/2012, 14:02

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

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by Jophy 1/4/2012, 20:30

Hello,

Is this solved?
Jophy
Jophy
ForumGuru

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

Back to top Go down

Topic/Post Button for Mods & Admins Empty Re: Topic/Post Button for Mods & Admins

Post by DK 1/4/2012, 21:52

Hi Jophy! How are you? Very Happy

And no it's in progress.
DK
DK
Forumember

Male Posts : 609
Reputation : 13
Language : English

http://ourworldhub.forumotion.com/forum

Back to top Go down

Back to top

- Similar topics

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