davisville 2 years ago |
Hey guys, today am going to share a code with you. With this code, you can set user levels for your site users based on the points they have.
Create a new page called point.Js user lister config: <*id>:VAR(USER_ID).OR.GET(id);<*/id> codes: <*script>{var pt = "%point%" ; if(pt <= 500) {document.write("newbie");}; elseif(pt >= 501 && pt <= 800) {document.write("amateur");};<*/script> You can continue by setting more values and levels. Now in profile add: codes: level: <*script src="/point.js/?id=%id%"><*/script> Now its ready to use.
Create a new page called point.Js user lister config: <*id>:VAR(USER_ID).OR.GET(id);<*/id> codes: <*script>{var pt = "%point%" ; if(pt <= 500) {document.write("newbie");}; elseif(pt >= 501 && pt <= 800) {document.write("amateur");};<*/script> You can continue by setting more values and levels. Now in profile add: codes: level: <*script src="/point.js/?id=%id%"><*/script> Now its ready to use.
comment |
Recent Comments (2)
maliexswizzer | 2 years ago |
reply |