Community Forum

User info

Welcome, Guest! Please login or register.


You are here » Community Forum » Forum for Newbies » How to add badges in every ranks?


How to add badges in every ranks?

Posts 1 to 7 of 7

1

the title it says...
How do i put badges in every ranks? is there or none?
or is there other way to have this kind of features?
thanks and Godbless :)

0

2

MaiaArya
Hello, try this.

Install in
Admin options --> HTML footer

<style>
li.pa-zwezda {
position:relative;
z-index:100;
margin-top:-5px;
margin-bottom:-0px;
margin-left: 3px;
color:red;
}
li.pa-zwezda img{
width:100px;  /* image width */
}
</style>

<script type="text/javascript">
var MyZwzd=[
"http://uploads.ru/i/s/M/e/sMeRw.png",21,
"http://uploads.ru/i/u/v/q/uvqDR.png",101,
"http://uploads.ru/i/t/8/G/t8Gya.png",501,
"http://uploads.ru/i/j/q/u/jqug5.png",1001,
"http://uploads.ru/i/n/i/I/niIrS.png",5001,

"End"];

$(".post-author .pa-posts").each(function () {
var zw=0;zw=$(this).html().replace('Сообщений: ','');zw=Math.floor(zw),ZWleng=MyZwzd.length-2;//alert(MyZwzd[1])
if(zw>=MyZwzd[1]){var L1=[],L2=[],a=false;for(i=0; i<ZWleng; i+=2){j=ZWleng-i;
L1[i/2]=Math.floor(zw/MyZwzd[j]);if(L1[i/2]>0){a=true};L2[i/2]=MyZwzd[j-1];zw=zw-MyZwzd[j]*L1[i/2];}

if(a){$(this).parent("ul").children(".pa-title").after('<li class="pa-zwezda"></li>');
for (var i=0; i<L1.length; i++){if(L1[i]>0){var zwzdaImg='<img src="'+L2[i]+'" title="More than '+(MyZwzd[ZWleng-i*2]-1)+' posts!"/>';
   for (var x=0; x<L1[i]; x++){$(this).parent("ul").children(".pa-zwezda").append(zwzdaImg);break};break}}}};});
</script>

Red - the image URLs for badges, change numbers to change the amount of posts needed to receive a badge.

0

3

C3La-NS wrote:

MaiaArya
Hello, try this.

Install in
Admin options --> HTML footer

Red - the image URLs for badges, change numbers to change the amount of posts needed to receive a badge.


Hello sir,
i tried this script, but still no badges appeared. is there something wrong in my picture size? or the script it self?

0

4

what i meant sir is looks like this.

https://image.ibb.co/hZ8F6U/Untitled_1.jpg

or is it possible to have this kind of features in Admin - Ranks then theres a button of upload picture badge :)
thank you and more power :)

0

5

Hello sir, any update about this features? thanks

0

6

MaiaArya
Hello, been away. Feature still needed?

0

7

C3La-NS wrote:

MaiaArya
Hello, been away. Feature still needed?

Yes sir, i really need it. Thanks

0


You are here » Community Forum » Forum for Newbies » How to add badges in every ranks?