MyBB Community Forums

Full Version: Mycode - adding to post new thread?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey people,

I have recently changed my website from e107, to mybb, and i do not regret it abit. It is stunningly brilliant.

One problem though, i have added a mycode for liveleak embedding in posts, it works fine. But i want to add it to the options when posting a new thread. I would search for it, but i don't know what to call it.

So, when you click on the tv when posting a new thread, and it has a drop down menu of video codes including youtube, yahoo video etc. I would like to add liveleak to that.

Thanks

rob
I'm going to ignore your username and help you Wink I didn't know how to do this either so i learnt something too.

Via FTP go to: /jscripts/editor.js

Find:

this.videos["youtube"] = this.options.lang.video_youtube;

After add:

this.videos["liveleak"] = this.options.lang.video_liveleak;

Save and close. Go to inc/languages/english/global.lang.php and find:

$l['editor_video_youtube'] = "YouTube";

After it add:

$l['editor_video_liveleak'] = "Liveleak";

Save and close. Now go to /inc/class_parser.php:

Find the other video codes such as Youtube, Vimeo, and add in your Liveleak code there. I'm not sure what it is so you will have to stick it in.

Bit stuck on the last one, but i have done all the other stuff.

Also, how would i add in other mycodes to the tabs, not in the video one. Big Grin