MyBB Community Forums

Full Version: Adding a modal login box to MyBB using jQuery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
^ yes, it is safe. why you have a doubt!
Because it's just so complex that it makes me wonder if it's secure!
Can I host this file on my server "ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
^ yes, you can. save the file and upload it to jscripts folder.
change the script's path in the headerinclude template
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.min.js"></script>
Thanks .M.
Do I need the entire code from jquery.min.js to make this work? jquery.min.js is 100kb!
Unless you can pick out what you need, yes. I use jQuery anyway for other functions on my sites. If you don't want jQuery, this can easily be rewritten for prototype.
Please could you just post the code that will only control this popup please?
It all controls the popup. The code is provided as is I'm afraid. I don't have time to rewrite it.
Could anyone please do it? I don't think it needs 100kb of code to popup that window
Hi,
thanks for the Loginbox.
I would like instead of "Close" like a button defined via CSS (Since I have a style changer in the forum, the graphic should also adjust the color). What do I have to change where?Huh

Thanks for help in advance Smile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26