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.

Button

+2
SLGray
BlackMouse
6 posters

Go down

In progress Button

Post by BlackMouse April 28th 2013, 9:48 pm

it is possible for a supervisor to press in a topic and thus give a warning a button so is it possible to add this effect to a button?
Warning. pleas do not being naughty


THIS IS AN EXAMPLE THIS IS NOT AN STAFF MESSAGE
BlackMouse
BlackMouse
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

Post by SLGray April 29th 2013, 4:04 am

Please don't use bold or color. Please keep to the default text. This is reserved for the staff for moderation.

First Reminder
Please read this tutorial - https://help.forumotion.com/t87870-notice-using-css-and-table


Button 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 : 51464
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

In progress Re: Button

Post by Angel LeFey April 29th 2013, 4:23 am

All Of this is very useful, thank you all for the tips/ tricks, and what-not.

I would also Like to get in contact with a staff member about problems on a forum site I am apart of. I can not PM yet because of a post limiter.
avatar
Angel LeFey
New Member

Posts : 2
Reputation : 1
Language : Enlish

Back to top Go down

In progress Re: Button

Post by Sanket April 29th 2013, 4:50 am

Angel LeFey wrote:All Of this is very useful, thank you all for the tips/ tricks, and what-not.

I would also Like to get in contact with a staff member about problems on a forum site I am apart of. I can not PM yet because of a post limiter.
You would need two posts to be able to send PM's.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Button

Post by Angel LeFey April 29th 2013, 4:51 am

Ok thanks, I will be sending you the PM.
avatar
Angel LeFey
New Member

Posts : 2
Reputation : 1
Language : Enlish

Back to top Go down

In progress Re: Button

Post by SLGray April 29th 2013, 10:35 pm

Is this now solved?


Button 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 : 51464
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

In progress Re: Button

Post by BlackMouse May 1st 2013, 10:24 pm

Thats not the same SLGray
BlackMouse
BlackMouse
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

Post by Jophy May 2nd 2013, 8:05 am

Do you mean changing the warning bar on the profile field? I don't think there's a way to do it by pressing a button, it can only be changed manually.
Jophy
Jophy
ForumGuru

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

Back to top Go down

In progress Re: Button

Post by Ultron's Vision May 2nd 2013, 8:11 am

Do you mean a button like with forumotion's "Others" button in the WYSIWYG editor? (WYSIWYG = what you see is what you get)

If so, you CAN add a new button via jQuery, I haven't got the tutorial right now, but there is a way.
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

In progress Re: Button

Post by BlackMouse May 2nd 2013, 8:24 pm

i mean Just a button to pop up a Warning Code -.-
BlackMouse
BlackMouse
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

Post by Ultron's Vision May 2nd 2013, 8:45 pm

Where do you want that button to appear?
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

In progress Re: Button

Post by BlackMouse May 2nd 2013, 9:50 pm

In a quick reply or somthing sir.
BlackMouse
BlackMouse
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

Post by Ultron's Vision May 2nd 2013, 10:18 pm

That's WYSIWYG, dear Sir.

Try something like this:

Code:
jQuery(document).ready(function(){

if(jQuery('#logout').html().indexOf('BlackMouse')>-1){

 jQuery('input[value="Others"]').after(' <img alt="" style="vertical-align:middle" src="http://2img.net/i/fa/wysiwyg/separator.png"> <input class="button2" style="height:22px" value="Staff Options" onclick="selectWysiwyg(this,\'dropList\')" type="button"><div id="dropList" class="select" style="visibility:hidden; width: auto;"><button onclick="bbfontstyle(\'[table class=warning][tr][td]Warning given to [USERNAME HERE]\',\'[/td][/tr][/table]\');selectWysiwyg(this,\'dropList\'); return false">Warning</button></div>');
}
});

Remember that you still need to define a table with the class "warning" in your CSS Stylesheet.
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Back to top


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