Posts: 263
Threads: 45
Joined: Jan 2008
Reputation:
0
hey guys, a question:
so i made an additional [del] tag (new version of s/strike for strikethrough text) ... how can i add a nice button to the editing buttons and make it behave like the other buttoms (e.g. mark text,click button, tags auto inserted etc...) ?
Posts: 90
Threads: 20
Joined: Jul 2008
Reputation:
0
When i add a custom Mycode, there is no button when i click "New reply"
Sorry for my bad English. I'm from Holland.
Posts: 3,003
Threads: 20
Joined: Feb 2006
Reputation:
9
That's normal; if you want a button for it, you need to add it in editor.js
There's a tutorial for that.
Posts: 90
Threads: 20
Joined: Jul 2008
Reputation:
0
2008-07-06, 11:33 AM
(This post was last modified: 2008-07-07, 05:45 AM by lifeguard.)
Ok, thnx Lex!
Is there some MYcode, for google?
So when a user post [google]Mybb[/google], Mybb is a clickable link to googlesearch?
Sorry for my bad English. I'm from Holland.
Posts: 192
Threads: 70
Joined: Oct 2006
Reputation:
1
How can I get java script to work with mycode?
I heard that as a default mybb changed the script code to something else.
Is there a workaround that is still secure?
Posts: 283
Threads: 43
Joined: Jun 2008
Reputation:
0
(2008-07-06, 11:30 AM)LeX- Wrote: That's normal; if you want a button for it, you need to add it in editor.js
There's a tutorial for that.
what kind of edit i need to know to add a button?
Posts: 343
Threads: 51
Joined: Sep 2005
Reputation:
0
(2008-08-08, 06:05 AM)primster7 Wrote: How can I get java script to work with mycode?
I heard that as a default mybb changed the script code to something else.
Is there a workaround that is still secure?
As a security prevention manner, it strongly recommended that any JS related things should not be made with user outputs unless it properly and accurately validated. So I also recommend you to leave this feature unless you knew that what are you doing.
Posts: 3,003
Threads: 20
Joined: Feb 2006
Reputation:
9
(2008-08-08, 06:57 AM)Azagthoth Wrote: (2008-07-06, 11:30 AM)LeX- Wrote: That's normal; if you want a button for it, you need to add it in editor.js
There's a tutorial for that.
what kind of edit i need to know to add a button?
Don't know if this still applies for MyBB 1.4;
http://community.mybboard.net/thread-12693.html
Posts: 192
Threads: 70
Joined: Oct 2006
Reputation:
1
(2008-08-09, 02:32 PM)imei Wrote: (2008-08-08, 06:05 AM)primster7 Wrote: How can I get java script to work with mycode?
I heard that as a default mybb changed the script code to something else.
Is there a workaround that is still secure?
As a security prevention manner, it strongly recommended that any JS related things should not be made with user outputs unless it properly and accurately validated. So I also recommend you to leave this feature unless you knew that what are you doing.
I'm willing to take the chance. How do I get around this and get javascript to work in a post?
Posts: 113
Threads: 18
Joined: May 2008
Reputation:
0
Very handy tutorial, custom MyCode confused me until recently too. Good job.
|