MyBB Community Forums

Full Version: use multi state buttons in the postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All
To save me some dev time can anyone give me the procedure to add multi state buttons to the postbit i.e. state normal, state Hover and state pressed ? From what I can see Mybb allows a multi state button to the multi quote option (only pressed or normal, no hover). I would guess this to be a core edit unless I am missing something
Poke around the JS files and you'll figure it out. Look for mulitQuote.
MyBB uses XMLHttp.

http://community.mybb.com/jscripts/thread.js

First few functions.
You could also use CSS - which would be far easier. Use the :hover selector for hover events and :active for click events and define a class for each button in the templates (they're all in separate templates under the postbit_ prefix).