MyBB Community Forums

Full Version: hide mycode custom bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ive addded these commands
to

- /jscripts/editor.js
Open the editor.js in notepad and search for:
this.options.lang.title_php}
add this template line below the entire line:
{type: 'button', name: 'hide', sprite: 'hide', insert: 'hide', title: 'Hide the Download Links'}

- /jscripts/editor_themes/Office_2007/stylesheet.css
Open the stylesheet.css in Notepad and in the end of the text add these:
.messageEditor .toolbar_button .toolbar_sprite_hide {
background: url(images/hide.png) no-repeat;
}


ive uploaded them and the image but nothing is showing any help

please help
Try it in a different way.

Add this line after color drop declaration, after placing a comma (,) include this:
{type: 'button', name: 'hide', insert: 'hide', image: 'hide.png', title: 'Hide'}

Make sure your MyCode's name is 'hide'. Else, change the values, particularly the value of 'insert'
Now upload your hide.png icon.

If you want to include a prompt for your MyCode, you can use the guidelines described here:
http://community.mybb.com/thread-95808.html
What's your URL OP? I'll take a look.
fixed it thanks