Using MyBB.popupWindow - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Development (https://community.mybb.com/forum-68.html) +---- Thread: Using MyBB.popupWindow (/thread-166903.html) |
Using MyBB.popupWindow - Crazycat - 2015-02-11 Hello there ! I'm trying to understand how to use the MyBB js functions, but I fail. I want to use MyBB.popupWindow to simply open a modal popup (for the imgur plugin next version), so I did: In my imgur_popup template:
The button is:
And when I click my button, my popup content is added in the page but not showed (class modal is hidden). I can't understand why it works fine for existing popups (smilies, buddylist, ...) and not for this. Did I miss something ? I don't find any particular code for the smilies popup, but I'm sure there is one to do the modal:open... Thanks by advance. Regards, CrazyCat RE: Using MyBB.popupWindow - .m. - 2015-02-11 this guidance might help => Using MyBB Modals (see also some responses there) RE: Using MyBB.popupWindow - Crazycat - 2015-02-11 Thanks .m., I'd already read it, and I was looking for a simpliest way with a MyBB native function. I'll follow this tutorial and adapt it. RE: Using MyBB.popupWindow - .m. - 2015-02-11 ^ simple method is already available in the suggested guidance thread (in a reply) and here is an example RE: Using MyBB.popupWindow - Crazycat - 2015-02-11 Ok, I think I can now manage with the modal Thanks a lot RE: Using MyBB.popupWindow - Crazycat - 2015-06-18 Back with this subject... I now well open my modal and use it, but I dislike the way I close it. It has to be automaticaly closed on a ajax success, the only way I found to do that working is:
Is there a simpliest way to close it ? RE: Using MyBB.popupWindow - martec - 2015-06-18 (2015-06-18, 08:51 AM)Crazycat Wrote: Back with this subject... more simpliest is using
RE: Using MyBB.popupWindow - Crazycat - 2015-06-18 ... So simple... Thanks martec ! |