Current time: 04-20-2014, 03:12 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a hide button for an existing plugin
08-16-2011, 12:30 AM (This post was last modified: 08-16-2011 02:11 AM by Starnova.)
Post: #1
How to make a hide button for an existing plugin
I am using this plugin:
http://mods.mybb.com/view/hide-to-guests

which uses [hide][/hide] and would like to make the posting easier for me since I do most if not all of it on the forum.
How would I do this? I was hoping to build the button function like the other buttons on the postbit,Image, insert hyperlink. where I would highlight the text and then press the button for the code to appear.Confused

May the source be with you!
Find all posts by this user
Quote this message in a reply
08-16-2011, 10:01 AM
Post: #2
RE: How to make a hide button for an existing plugin
http://forums.mybbcommunity.com/thread-502.html
Find all posts by this user
Quote this message in a reply
08-16-2011, 06:18 PM
Post: #3
RE: How to make a hide button for an existing plugin
Thank you but that principle .. will it work with the substitution of the hide? Substitute the name spoiler with hide?

May the source be with you!
Find all posts by this user
Quote this message in a reply
08-16-2011, 06:26 PM
Post: #4
RE: How to make a hide button for an existing plugin
Yes.
Find all posts by this user
Quote this message in a reply
08-16-2011, 10:38 PM
Post: #5
RE: How to make a hide button for an existing plugin
I am confused I guess I have not written it correctly.. so therefore I do not understand. Yes I am a noob at this.

Goal: to have one of my existing plug-ins work with an editor button which installed correctly next to the color choice. In fact when you click on the hide icon when posting it actually does this:
[Hide]info[/Hide] which are the correct tags but no function at all.
I have the editor js done correctly but I am not sure mycode is done right.

[\hide\](.*?)\[/hide\]

and if that is correct what would I put in the this section of the js code.

{type: 'button', name: 'hide', insert: 'what do I put here', image: 'hide.png', title: 'Hide'}
I have the plugin but it would be easier to use the hide with the button when posting my links ..

Any help would be greatly appreciated...thank youBig Grin

May the source be with you!
Find all posts by this user
Quote this message in a reply
08-16-2011, 10:41 PM (This post was last modified: 08-16-2011 10:42 PM by Fábio Maia.)
Post: #6
RE: How to make a hide button for an existing plugin
'what do I put here' should be 'hide'. Not 'Hide' though.
Find all posts by this user
Quote this message in a reply
08-16-2011, 11:18 PM (This post was last modified: 08-16-2011 11:29 PM by Starnova.)
Post: #7
RE: How to make a hide button for an existing plugin
Okay thank you I will try that,...

Well when I do that it truly hides eveything..heheheh... and I mean everything .. prehaps I should not be so lazy and just use the hide tag manually lol

May the source be with you!
Find all posts by this user
Quote this message in a reply
08-29-2011, 07:07 PM
Post: #8
RE: How to make a hide button for an existing plugin
Use jQuery.
$(".class_name").hide();

You can also change css visibility:none

A perfection of means, and confusion of aims, seems to be our main problem.
Albert Einstein
motor de reservas mhotel
santa ponsa apartments
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication