vthanhmn 11 months ago |
I have a var named money, how do I make a user ranking table according to that var?
comment |
Recent Comments (1)
francisco | 11 months ago |
Hello! Unfortunately you won't be able to do this natively using the User Lister function form, as the ORDER parameter only sorts by the registration date (new or old).
However, you can use the JS Wapper from the Wapka REST API (the wrapper is available by default on all sites).
To do this, create a div element with id #userRank where you want the table to be displayed, and put the following JavaScript code at the bottom of the page (remember to put it in the appropriate script tag).
[Wapka.org / REST API] List users by "money" var (JS Code) - Pastebin.com
Example usage:
<div id="userRank"></div>
<script>
// Paste the JS code from the pastebin link here
</script>
You must style the table however you want.
reply |