MyBB Community Forums
[JavaScript] Getting rid of most of the javascript in front end interface - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [JavaScript] Getting rid of most of the javascript in front end interface (/thread-173448.html)



Getting rid of most of the javascript in front end interface - samip537 - 2015-07-22

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?


RE: Getting rid of most of the javascript in front end interface - Destroy666 - 2015-07-24

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/feature/report.php#L249

An example here: http://community.mybb.com/report.php?type=post&no_modal=1&pid=1170961 (styling needs to be added if needed)


RE: Getting rid of most of the javascript in front end interface - samip537 - 2015-07-25

(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/feature/report.php#L249

An example here: http://community.mybb.com/report.php?type=post&no_modal=1&pid=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