Current time: 05-22-2012, 11:58 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 7 Votes - 3.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial: Adding Extra Function Buttons to the Editor.
10-12-2009, 01:38 PM
Post: #61
RE: Tutorial: Adding Extra Function Buttons to the Editor.
I don't have the editor.appendChild(toolbar2);...

[Image: 468x602b.png]
Find all posts by this user
Quote this message in a reply
10-12-2009, 02:21 PM
Post: #62
RE: Tutorial: Adding Extra Function Buttons to the Editor.
Someone, please respond to this thread.
Just need an answer on how to edit this part.
http://community.mybboard.net/thread-126...#pid409362

After adding new buttons, the text area misaligned.



@Skiilz, you probably looked at the wrong post.
http://community.mybboard.net/thread-126...#pid237840

[Image: mystatssig.php]

ElevatedServers.net - starting from $3.99/mo
30 days moneyback guarantee | 99.9% uptime SLA | 24/7 Support
Find all posts by this user
Quote this message in a reply
10-12-2009, 04:21 PM
Post: #63
RE: Tutorial: Adding Extra Function Buttons to the Editor.
Yeah.. I did!
Thanks mate.

[Image: 468x602b.png]
Find all posts by this user
Quote this message in a reply
10-14-2009, 08:18 PM (This post was last modified: 10-14-2009 08:18 PM by mazin46.)
Post: #64
RE: Tutorial: Adding Extra Function Buttons to the Editor.
thanx good job...
but i cant finde ( editor.appendChild(toolbar2)Wink in my editor ?? Sad plz how can help
thanx good job...
but i cant finde ( editor.appendChild(toolbar2)Wink in my editor ?? Sad plz how can help
Find all posts by this user
Quote this message in a reply
10-14-2009, 08:47 PM
Post: #65
RE: Tutorial: Adding Extra Function Buttons to the Editor.
(10-14-2009 08:18 PM)mazin46 Wrote:  thanx good job...
but i cant finde ( editor.appendChild(toolbar2)Wink in my editor ?? Sad plz how can help
thanx good job...
but i cant finde ( editor.appendChild(toolbar2)Wink in my editor ?? Sad plz how can help

You should read the thread again. #62

[Image: mystatssig.php]

ElevatedServers.net - starting from $3.99/mo
30 days moneyback guarantee | 99.9% uptime SLA | 24/7 Support
Find all posts by this user
Quote this message in a reply
10-15-2009, 01:52 AM
Post: #66
RE: Tutorial: Adding Extra Function Buttons to the Editor.
I am in the middle of this as I consider it useful but, I stopped because...what if myBB updates version and replaces this 3 files in the future?

Is there a plugin instead available?
Visit this user's website Find all posts by this user
Quote this message in a reply
11-29-2009, 06:22 AM
Post: #67
RE: Tutorial: Adding Extra Function Buttons to the Editor.
Thx for tuto,but this thread needs reorganization and the tuto needs update.
It's very important and useful for users here .
Find all posts by this user
Quote this message in a reply
02-19-2010, 08:19 PM
Post: #68
RE: Tutorial: Adding Extra Function Buttons to the Editor.
(08-12-2008 12:29 PM)Michael S. Wrote:  The changes in the files functions.php and global.php are the same. For editor.js open the file and search for:
Code:
// Create our new text area
Above add:
Code:
this.createToolbar('mytoolbar', {
    container: 'bottom',
    items: [
        {type: 'button', name: 'flash', sprite: 'flash', insert: 'flash', title: this.options.lang.title_flash},
        {type: 'button', name: 'video', sprite: 'video', insert: 'video', title: this.options.lang.title_video},
        {type: 'button', name: 'quick', sprite: 'quick', insert: 'quick', title: this.options.lang.title_quick},
        {type: 'button', name: 'stream', sprite: 'stream', insert: 'stream', title: this.options.lang.title_stream}
    ]
});
After that open the file jscripts/editor_themes/*theme*/stylesheet.css and add at the end of the file:
Code:
.messageEditor .toolbar_button .toolbar_sprite_flash {
    background: url(images/flash.gif) no-repeat;
}
.messageEditor .toolbar_button .toolbar_sprite_video {
    background: url(images/video.gif) no-repeat;
}
.messageEditor .toolbar_button .toolbar_sprite_quick {
    background: url(images/quick.gif) no-repeat;
}
.messageEditor .toolbar_button .toolbar_sprite_stream {
    background: url(images/stream.gif) no-repeat;
}
The graphics for the buttons have to be in the folder jscripts/editor_themes/*theme*/images/.

This one seemed to worked perfectly, however the youtube button doesnt show in line with the code or php button, i tried removing the add new toolbar thingy, and add the code after php, and the editor disappeared. And this is how the youtube button is showing below now:-
[Image: 51045210.png]
Find all posts by this user
Quote this message in a reply
02-28-2010, 08:05 AM
Post: #69
RE: Tutorial: Adding Extra Function Buttons to the Editor.
Doesn´t work with the new version of mybb when I add this i lost my buttons.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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

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