2017-11-13, 08:30 AM
Hi Team,
I have a feedback based on inline js, js versions and template updates used in MyBB such as on templates described below. I will take differences from MyBB 1.8.13 and previous generation.
Let us take example of below templates :-
postbit,postbit_classic templates Showthread_rating javascript, search_results_threads_thread, search_results_posts_post
We have similar javascript elemente where we use onclick Event
And in various places, we use versions of js. Example newreply, newthread we use 1813 version for post.js.
And for rating.js, we use 1808
This I feel is inconsistent and for theme developers who have to provide theme updates. There is a problem with MyBB updates to provide template updates :-
I feel that if the above issues can be handled, it will be great help for everyone who uses different theme from default MyBB theme.
If it is not part of MyBB 1.8 series, probably for MyBB 2.0, it will be awesome.
Thanks for reading and thanks for providing regular updates
I have a feedback based on inline js, js versions and template updates used in MyBB such as on templates described below. I will take differences from MyBB 1.8.13 and previous generation.
Let us take example of below templates :-
postbit,postbit_classic templates Showthread_rating javascript, search_results_threads_thread, search_results_posts_post
We have similar javascript elemente where we use onclick Event
href="{$mybb->settings['bburl']}/misc.php?action=whoposted&tid={$thread['tid']}" onclick="MyBB.whoPosted({$thread['tid']}); return false;">
I am not completely against inline js, but I feel the above can be managed with DOM.And in various places, we use versions of js. Example newreply, newthread we use 1813 version for post.js.
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1808"></script>
In MyBB 1.8.13 -><script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1813"></script>
And for rating.js, we use 1808
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/rating.js?ver=1804"></script>
In MyBB 1.8.13,we use<script type="text/javascript" src="{$mybb->asset_url}/jscripts/rating.js?ver=1808"></script>
The above are example templates and there are more.This I feel is inconsistent and for theme developers who have to provide theme updates. There is a problem with MyBB updates to provide template updates :-
- where users have lots of different plugins and they are required to update themes[High]
- lots of different versions of js for different javascripts which can cause theme break as well
- changes in inline js as well, for example MyBB.whoPosted was previously part of link as onclick
I feel that if the above issues can be handled, it will be great help for everyone who uses different theme from default MyBB theme.
If it is not part of MyBB 1.8 series, probably for MyBB 2.0, it will be awesome.
Thanks for reading and thanks for providing regular updates