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.

Mod Tools

3 posters

Go down

Mod Tools Empty Mod Tools

Post by !_NICK_! December 21st 2012, 7:22 am

How can I create a new BBCode button for a drop down list, and as a button only for moderators to view. Like here on forumotion, the way the moderators use there Mod Colors.
!_NICK_!
!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by !_NICK_! December 22nd 2012, 1:27 am

Now how do I make them display only to Moderators and above?

Also, I can't insert <div> tags in the code without it changing it.
!_NICK_!
!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by Kaizer Lee December 22nd 2012, 5:14 am

By putting the codes needed in a widget and setting its permissions to Moderators and above Smile
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by !_NICK_! December 25th 2012, 1:57 am

I can't use widgets on my forum. It messes my whole design up. Any other way?

Could I possible make it display to only certain usernames?
!_NICK_!
!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by Kaizer Lee December 26th 2012, 7:18 am

No. The only possible way is for you to put them in a widget and if you put it anywhere else, it'll appear for everyone, including the members. (Unless the topic is set to guests, the guests may use it as well)
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by !_NICK_! December 26th 2012, 10:17 am

Yes there is a way to do it by usernames. I've seen it done before, but don't know how to code it.
!_NICK_!
!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by Kaizer Lee December 26th 2012, 11:05 am

Oh I thought you meant the other part of the code.

Anyway, you have to put a class name for it or something.

Just like the background for staff options here, just manipulate the code: https://help.forumotion.com/t118328-staff-background#775891
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by !_NICK_! December 27th 2012, 9:30 pm

Could I have an example code? I don't know how to code JavaScript.
!_NICK_!
!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by Kaizer Lee December 28th 2012, 9:23 am

Code:
$.getScript("(SOURCE LINK IN .js FORMAT)",function(){
$('a[href="/u1"] strong')

That's just an example. Not sure if you can use that, have others suggest for it too.
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Mod Tools Empty Re: Mod Tools

Post by nextlevelgaming January 2nd 2013, 6:04 am

Nick you can use widgets Smile if this gets to tough for ya. By doing the following

Place codes in left side (or right)
wrap the entire thing in a div
Code:
<div id="mod_insert">
codes here
</div>
and then add this to your CSS

Code:
#left{display:none;}
(right side use this)
Code:
#right{display:none;}

Then go to your TEMPLATES -->GENERAL --> viewtopic_body (quick reply)

search for
Code:
<a name="quickreply"></a>

add below that

Code:
<div id="mod_tools"></div>

then add this jQuery to your javascript management

Code:
$('#mod_insert').appendTo('#mod_tools');

That will make it so they can see the buttons in Quick Reply, you can do the same thing to the regular reply just go to

TEMPLATES -->POST & PRIVATE MESSAGES -->posting_body

Add the div
Code:
<div id="mod_tools"></div>
below this in that template

Code:
<div id="text_editor_controls">

Yes I know its alot to do, but hey it works I know this lol. and it really only takes 5minutes all in all.


Don't forget to set the permissions on that widget to Moderators
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Back to top

- Similar topics

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