|
Post by Wormopolis on Dec 19, 2011 17:05:01 GMT -8
version update 1.2: IE apparently has a minimum height depending on font size, so I removed the fontsize from the cell and added in ability to have a tapered bar. you can now set the bar height as a variable at the top
|
|
crystal
Not New Member
Posts: 10
crystal said 0 great things
|
Post by crystal on Dec 20, 2011 4:05:23 GMT -8
Well, my problem on the first place was that it simply doesn't work on my Windows 7 computer, and it's always at 0 there (as if nobody has posted anything). And, well, I tried the 1.2 version and it doesn't even work on my other computer! (where the 1.14 worked). Just wondering... may other codes conflict with this one?
|
|
|
Post by Wormopolis on Dec 20, 2011 16:11:29 GMT -8
1.2 is running on this site currently - you can see the new tapered bar feature over there. If the notch is being held at 0, it could be because they have been on the site a long time, made very few posts since then, and that number is still small compared to what you said was "active". the activity is just over the last few days or anything - there is no way a code could do that - its over the entire time the member has been on the site.
now with that in mind, you should still see a bar. Im looking at the site right now...
|
|
|
Post by Wormopolis on Dec 20, 2011 16:26:15 GMT -8
I do see what you mean though. Im trying to figure out where things go wrong in IE.. this used to be fine...
|
|
|
Post by Wormopolis on Dec 20, 2011 16:37:54 GMT -8
run the activity meter before the longevity meter for me real quick.. I think I know what it is...
|
|
crystal
Not New Member
Posts: 10
crystal said 0 great things
|
Post by crystal on Dec 21, 2011 2:53:10 GMT -8
yes, ran it before the long. meter and works now! Thanks.
|
|
|
Post by Wormopolis on Dec 21, 2011 3:08:32 GMT -8
ok. the long meter was making a small change to the end of the join date that you couldnt see, but the activity code could and it was enough that it made the activity code not see it anymore.
grab the new version of the code so you can set the bar height.
|
|
crystal
Not New Member
Posts: 10
crystal said 0 great things
|
Post by crystal on Oct 7, 2012 3:01:00 GMT -8
hey again, is there a way to set a date from which the act. meter starts counting? Becasue the forum i'm using it on died for a while and I'd like to balance old members with new members. Thanks!
|
|
|
Post by Wormopolis on Oct 7, 2012 8:47:07 GMT -8
how many days we talkin here?
|
|
crystal
Not New Member
Posts: 10
crystal said 0 great things
|
Post by crystal on Oct 7, 2012 8:57:45 GMT -8
around 4 months
|
|
|
Post by Wormopolis on Oct 7, 2012 9:33:19 GMT -8
find this line
timeSpan=parseInt((cDate-sDate)/(1000*60*60*24));
change to
timeSpan=parseInt((cDate-sDate)/(1000*60*60*24)); timeSpan -= (timeSpan > 120 ? 120 : 0);
change the 120 to however many days you want to adjust
|
|
crystal
Not New Member
Posts: 10
crystal said 0 great things
|
Post by crystal on Oct 7, 2012 9:55:50 GMT -8
A million thanks! It seems to work! Just to make sure it does what i think it does... It basically shows the bar as if during the first 120 days the forum didn't exist, right? (lets say, if the forum was created January 1st, the activity bar looks as if the forum had been created around May 1st)?
edit: what I mean basically is that old members' join date is set to 120 days after the forum was created
|
|
|
Post by Wormopolis on Oct 7, 2012 11:21:37 GMT -8
it should. if anyone joined less then 120 days it wont affect them.
thinking about it more, this is a short term solution. 4 months down the line all your new people will suddenly get affected as well.
I have to make another attempt at this so dont go away just yet
|
|
crystal
Not New Member
Posts: 10
crystal said 0 great things
|
Post by crystal on Oct 7, 2012 11:44:15 GMT -8
Now that I check some of the players' bars I see some things are working as I expected =( Probably gonna edit this post later if I can specify more
Also, just so that you know it better (in case it could help), the forum was created on October 5th 2011, died in early May 2012, and opened up again in September 4th. I told you it was 4 months because I was only counting the time gap where the forum was incative, but I don't care if you decide to disregard the previous 7 months as well, because I guess this is the easiest option.
EDIT (1?): Basically, what I'm looking for, is a bar that works as if all the join dates before X day (which is september 4th 2012 in my case), were exactly X. (so basically, no matter if someone joined in november 29th 2011, january 15th 2012, march 22nd 2012 or whatever else, as long as it goes before september 4th 2012, the bar would show as if said person joined exactly in september 4th.)
And again many many thanks =)
|
|
|
Post by Wormopolis on Oct 7, 2012 12:21:04 GMT -8
yeah Im understanding the request. I just have to figure out the least intrusive way to do it.
|
|