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 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
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 March 30th 2012, 6:05 pm

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 March 30th 2012, 7:36 pm

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 March 30th 2012, 8:19 pm

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 : 51503
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 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:
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 March 30th 2012, 10:42 pm

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 : 51503
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 March 30th 2012, 10:43 pm

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 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.
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 March 30th 2012, 11:30 pm

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 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.
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 March 31st 2012, 3:40 pm

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 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://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 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?
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 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.
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 March 31st 2012, 11:26 pm

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 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.
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 April 1st 2012, 9:02 pm

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 April 2nd 2012, 3:30 am

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 April 2nd 2012, 4:52 am

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