MyBB Community Forums

Full Version: Getting rid of most of the javascript in front end interface
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

How to get most of the features that are using JavaScript handled somehow different as I can see that in the ACP there's things that do work without javascript and with JS enabled, but for instance the report button dosen't so what's the logic in using JS script for that?
The report functionality should work fine if you change the button to a link with no_modal input enabled: https://github.com/mybb/mybb/blob/featur...t.php#L249

An example here: http://community.mybb.com/report.php?typ...id=1170961 (styling needs to be added if needed)
(2015-07-24, 02:17 PM)Destroy666 Wrote: [ -> ]The report functionality should work fine if you change the button to a link with no_modal input enabled: https://github.com/mybb/mybb/blob/featur...t.php#L249

An example here: http://community.mybb.com/report.php?typ...id=1170961 (styling needs to be added if needed)

Sorry, but you got me confused. Could you try to explain it more in detail? Smile

I got it to work, but what about the report button in users profiles?

in member_profile template:


<div style="text-align: center">{$buddy_options}{$ignore_options}{$report_options}</div>


How to change to non-js?

Please, does someone know? Smile