Creating Custom MyCode
#61
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...) ?
[Image: 350x19.jpg][Image: tstargermany.png]
Reply
#62
When i add a custom Mycode, there is no button when i click "New reply" Angry
Sorry for my bad English. I'm from Holland.Dodgy
Reply
#63
That's normal; if you want a button for it, you need to add it in editor.js
There's a tutorial for that.
Reply
#64
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.Dodgy
Reply
#65
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?
Reply
#66
(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?
Reply
#67
(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.
Reply
#68
(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
Reply
#69
(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?
Reply
#70
Very handy tutorial, custom MyCode confused me until recently too. Good job.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)