Current time: 03-21-2010, 11:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 4 Votes - 3.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating Custom MyCode
07-03-2008, 06:24 PM
Post: #61
RE: Creating Custom MyCode
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...) ?
Find all posts by this user
Quote this message in a reply
07-06-2008, 11:28 AM
Post: #62
RE: Creating Custom MyCode
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
Find all posts by this user
Quote this message in a reply
07-06-2008, 11:30 AM
Post: #63
RE: Creating Custom MyCode
That's normal; if you want a button for it, you need to add it in editor.js
There's a tutorial for that.

Visit this user's website Find all posts by this user
Quote this message in a reply
07-06-2008, 11:33 AM (This post was last modified: 07-07-2008 05:45 AM by lifeguard.)
Post: #64
RE: Creating Custom MyCode
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
Find all posts by this user
Quote this message in a reply
08-08-2008, 06:05 AM
Post: #65
RE: Creating Custom MyCode
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?
Find all posts by this user
Quote this message in a reply
08-08-2008, 06:57 AM
Post: #66
RE: Creating Custom MyCode
(07-06-2008 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?

[Image: img8_1224706616c.png]
Web Maniacos... Comparte todo lo que quieras
Find all posts by this user
Quote this message in a reply
08-09-2008, 02:32 PM
Post: #67
RE: Creating Custom MyCode
(08-08-2008 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.

[Image: header.jpg]
ُPersian MyBBoard , Translations, Plugins , Mods, Themes, Templates,...
Visit this user's website Find all posts by this user
Quote this message in a reply
08-09-2008, 03:19 PM
Post: #68
RE: Creating Custom MyCode
(08-08-2008 06:57 AM)Azagthoth Wrote:  
(07-06-2008 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

Visit this user's website Find all posts by this user
Quote this message in a reply
08-09-2008, 03:28 PM
Post: #69
RE: Creating Custom MyCode
(08-09-2008 02:32 PM)imei Wrote:  
(08-08-2008 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?
Find all posts by this user
Quote this message in a reply
08-09-2008, 10:34 PM
Post: #70
RE: Creating Custom MyCode
Very handy tutorial, custom MyCode confused me until recently too. Good job.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: