MyBB Community Forums

Full Version: Make variable from PlugIn available in template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2014-06-18, 09:15 AM)S.L.C Wrote: [ -> ]I'm trying to create a mod which removes the need for Prototype. And the first thing that I had to tackle was the editor.

You are aware that MyBB 1.8 (Beta release available now) ships with jQuery and not Prototype?

It does seem a lot of work to replace Prototype on your own considering that the MyBB team have also done this huge task.
(2014-06-18, 02:01 PM)Leefish Wrote: [ -> ]You are aware that MyBB 1.8 (Beta release available now) ships with jQuery and not Prototype?

It's a long road until MyBB 1.8 will be available for production and even then you won't be able to do much with it considering that most PlugIns and Themes will probably fail to work or just work/display incorrectly.
I'm still not sure what you're trying to do. As I can see you're changing the editor to SCEdiotr, but there is already a plugin which does that perfectly.
https://github.com/samclarke/SCEditor-MyBB
(2014-06-19, 03:17 AM)Destroy666 Wrote: [ -> ]I'm still not sure what you're trying to do. As I can see you're changing the editor to SCEdiotr, but there is already a plugin which does that perfectly.
https://github.com/samclarke/SCEditor-MyBB

Thank you Smile Now I know the correct hook to use. Thank you very much. Too bad MyBB doesn't have a proper hook documentation (just a list of stuff).
You might find this useful in the future. It's a list of the hooks myBB uses.

http://docs.mybb.com/MyBB_Plugin_Hooks.html
(2014-06-19, 01:31 PM)jshort Wrote: [ -> ]You might find this useful in the future. It's a list of the hooks myBB uses.

http://docs.mybb.com/MyBB_Plugin_Hooks.html

Oh gee thanks bro. Actually NO! Do you really think I haven't found that already? Seriously, just write "mybb hooks" in Google and tell me what's the first result. However they lack documentation/description. It's just a list of names and their position in the source code.
(2014-06-19, 08:59 PM)Shade Wrote: [ -> ]http://mybb.github.io/1.8/developers/plugins/ New docs just for you.

It's the same thing Undecided http://mybb.github.io/1.8/developers/plugins/hooks/ (just a list). And what you provided is way too basic. Also not on the topic. Seriously people. You think I can't Google? What is this, an indexing site?
I'm actually a woman, so you can keep your bro to yourself. There's also no need to be rude about being offered help. It's great you can Google and find information yourself, but you would be surprised by the number of people who post on this forum who don't even attempt to do that.

Good luck with your plugin development.
Yes, please keep it nice, they tried to help.

Also, look again at the lists and you'll notice that there are way too many hooks to describe each. And I have no idea what kind of description are you looking for. Could you provide an example for index_start? In my opinion, file, line, name and basic PHP/MyBB knowledge is all you need.
Pages: 1 2 3