Resource icon

Stats Bar 1.0.1

No permission to download

CritiKiL

Active member
#21
Okay. I my forum it will be rare when someone reaches over 1,000 posts but I have done so already. I would like to increase this but NOT change the levels you already have in place before a trophy is earned?
 

CritiKiL

Active member
#23
Didn't get you.
There are 4 maximum trophies equal to over 1,000 messages. Can you update it to allow for 8 maximum trophies without changing the thresholds but rather just increasing them (ex: add 1,001-1,249, 1,250-1,499, 1,500-1,749, 1,750-2,000)?
 

Case

Well-known member
#25
This looks great, nice work.

Apologies if this is there already but can use use the number of days registered as a statistic?

So you could assign a medal for the length of time a person has been on the site?
 

Case

Well-known member
#27
'register_date', that column is available, it isn't in days but actual time of register in SL format.
Yea, can't see a way of working out what I want to do from that figure. The medals cutoff needs to be multiples of 31622400 but as the register_date doesn't start at zero, it won't work that way.

Not to worry.
 

Case

Well-known member
#29
Sorry, still can't see how that works.

My register_date is 1316171936 so one year later is 1347794336 (difference between the 2 dates is 31622400)

How would I get a medal to display for each year of membership?
 

Case

Well-known member
#31
Yep. So in the 'Levels - Cut-offs' field I enter '31622400,31622400'

Then in level images
Code:
<img src="styles/StatsBar/transparent.gif" class="StatsBar_Levels Level_1" />
Is that what you are suggesting?
 

MOZ

Well-known member
#32
Level 1 cutoff should be 1316171936,1316171936
Level 2 cutoff should be 31622400,(31622400*number of years you want this to go to)

And then for images:
<img src="" />
Image of your choice

In this case the second image will be repeated for each year.
------------------------------------------------------------------------------
If you want different images, then:
Level 1 cutoff should be 1316171936,1316171936
Level 2 cutoff should be 31622400,31622400
Level 2 cutoff should be 31622400,31622400
:
:
and so on.

And then for images:
<img src="" />
Image of your choice for first medal
Image of your choice for second medal
:
:
and so on
 

Case

Well-known member
#33
Something still not quite right. I've tried both methods above.

It sort of works but this is the code it adds to the page.

Code:
<div class="StatsBar_MedalBar StatsBar_MedalBar_member_view"><span></span></div>
<div class= "StatsBar_LevelBar StatsBar_LevelBar_member_view"><span><img src="" /></span></div>
So you get a blank one first, then it loads the one with no image.

medal.jpg
 

Case

Well-known member
#35
So how do you get the image to load?

As you can see in the code above, the level with the icon_annual_star.gif doesn't appear on the page. It loads a div with a blank span in first.
 

CritiKiL

Active member
#36
You can add as many as you want, that is your choice. All you need is the images for the 8 trophies.
What's confusing is that you're using a template for the images? I don't know how I would add 4 more onto that template so that it would work properly...
 

MOZ

Well-known member
#37
What's confusing is that you're using a template for the images? I don't know how I would add 4 more onto that template so that it would work properly...
It's not a template, it's a sprite :p

You don't have to use a sprite, a sprite helps in reducing number of HTTP requests to your site.
So how do you get the image to load? As you can see in the code above, the level with the icon_annual_star.gif doesn't appear on the page. It loads a div with a blank span in first.
Sorry made a mistake, every iterative level has to be that x value more than first level's cutoff, so it would read like this:
1316171936,1316171936
31622400,1347794336
 

CritiKiL

Active member
#38
It's not a template, it's a sprite :p

You don't have to use a sprite, a sprite helps in reducing number of HTTP requests to your site.
Yes! (couldn't remember the correct name - lol). So what I'm saying is that, I would like to 'use the sprite' but a sprite with 8 trophies! ;-)
 

CritiKiL

Active member
#40
So, as far as the photoshop part goes: do I just make the sprite twice as long, just adding 4 more like trophies 'to the end' and leave the top 3 green bars in tact? Sounds easy but I just want to do it right...
 

Attachments

Top