Welcome to vbmods.rocks! Get FREE and paid vBulletin mods, plugins, addons, API extensions, custom modules, custom BB Codes, vBCloud mods, CORE hacks, JS hacks, custom coding by Glenn, an ex-vBulletin Developer. You must register before you can post, download the files or copy the code from the free plugins.
I checked the code in the widget_cmschanneldisplay template and the sort order is hardcoded to publishdate desc. There is a @TODO comment and code in the template that says "use this if we get the sort filter back" but the code doesn't include displayorder. Since they stopped development of vB5, sorting by displayorder will never be added. The same issue occurs on vB6 as the code in the template is the same.
I found a way a solution but it requires editing the widget_cmschanneldisplay and adding the native usort() PHP function that is not allowed by vB to be used in a template. This function sorts the articles by displayorder. Upon saving the template, it will prompt that you are using what they term as "unsafe" function but you could ignore it and save the template anyway. Using usort() function in a template is safe and has no security implications. If you are okay with this, please let me know.
There's actually a way to avoid using usort() directly in a template. You could move the usort() call to a custom API or controller that can be called from the template. Obviously, this will require a little bit of more code.
I bought a bunch of mods on here a couple years ago. Do they get stored under your account on here? Is there anywhere to see your previous purchases...
Comment