The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Button

View previous topic View next topic Go down

In progress Button

Post by BlackMouse on 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
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

Post by SLGray on 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 - http://help.forumotion.com/t87870-notice-using-css-and-table


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


SLGray
Administrator
Administrator

Male Posts : 35627
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Button

Post by Angel LeFey on 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.

Angel LeFey
New Member

Posts : 2
Reputation : 1
Language : Enlish

Back to top Go down

In progress Re: Button

Post by Sanket on 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
ForumGuru

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

http://webartzforum.com

Back to top Go down

In progress Re: Button

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

Ok thanks, I will be sending you the PM.

Angel LeFey
New Member

Posts : 2
Reputation : 1
Language : Enlish

Back to top Go down

In progress Re: Button

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

Is this now solved?


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


SLGray
Administrator
Administrator

Male Posts : 35627
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Button

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

Thats not the same SLGray

BlackMouse
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

Post by Jophy on 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
ForumGuru

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

Back to top Go down

In progress Re: Button

Post by Ultron's Vision on 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
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 on May 2nd 2013, 8:24 pm

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

BlackMouse
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

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

Where do you want that button to appear?

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 on May 2nd 2013, 9:50 pm

In a quick reply or somthing sir.

BlackMouse
Forumember

Posts : 38
Reputation : 1
Language : HTML/Script

Back to top Go down

In progress Re: Button

Post by Ultron's Vision on 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://illiweb.com/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
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

View previous topic View next topic Back to top


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