Page 17 of 20

Re: Annual Stars for 3.0

Posted: Thu Apr 16, 2009 5:33 pm
by Dan27
Hi Evil, I have put on your MOD and I have changed it to '2628000' which I believe is one star
per month, however, I have made all the edits but the stars have not showed up, what's gone wrong?

Re: Annual Stars for 3.0

Posted: Thu Jun 04, 2009 6:29 pm
by Khamosh-Saya
nothing showing

purge the cache and refresh the template

Re: Annual Stars for 3.0

Posted: Sat Jun 06, 2009 3:39 pm
by iftitaj
evil<3! I've a strange problem NOW. I'm saying now because it was working properly before, 3/4 months back.

Now the problem is that its showing only one star in viewtopic page while showing properly all stars in memberlist page.

Scenario: I've set it to one star for every month of membership. And I was registered on the forum in the March last year. So its around 15 months.

Its showing 15 stars in memberlist page but only one star in viewtopic page. As far as I remember, it happened after a year of my registration. I also wanna tell you that I'm owner of forum so the registration of mine is the start date of the forum. If thats of any relevance.

Also its happening to all users on my forum, not only with me.

Is it something with "not-enough-space" to show these many stars on viewtopic page? Why its only happening on viewtopic page when its working fine on memberlist page?

Re: Annual Stars for 3.0

Posted: Sun Jun 07, 2009 6:24 pm
by lovelysummer
dethis wrote:Hi. I would like to kown if its possible to use this mod to work with User Online Time getting the user online time variable, and replacing it for 'user_regdate' used on mod and use it to give stars ? :roll:
if ($reg_years = (int) ((time() - (int) $row['user_regdate']) / 31536000))
Thks in advance.
I like this mod , but dethis or anyone else had tried to use the Online Time to award the star. Please share your coding.

Tks.

Re: Annual Stars for 3.0

Posted: Wed Jun 10, 2009 2:28 pm
by iftitaj
iftitaj wrote:evil<3! I've a strange problem NOW. I'm saying now because it was working properly before, 3/4 months back.

Now the problem is that its showing only one star in viewtopic page while showing properly all stars in memberlist page.

Scenario: I've set it to one star for every month of membership. And I was registered on the forum in the March last year. So its around 15 months.

Its showing 15 stars in memberlist page but only one star in viewtopic page. As far as I remember, it happened after a year of my registration. I also wanna tell you that I'm owner of forum so the registration of mine is the start date of the forum. If thats of any relevance.

Also its happening to all users on my forum, not only with me.

Is it something with "not-enough-space" to show these many stars on viewtopic page? Why its only happening on viewtopic page when its working fine on memberlist page?
Bumping my problem. :(

Re: Annual Stars for 3.0

Posted: Tue Jun 16, 2009 8:01 pm
by iftitaj
Seems like the developer is no more supporting this MOD. :cry:

Re: Annual Stars for 3.0

Posted: Tue Jun 16, 2009 8:44 pm
by igorw
It's kind of strange, I've never had any problems with exactly the same code. :?

Re: Annual Stars for 3.0

Posted: Tue Jun 16, 2009 8:59 pm
by dethis
lovelysummer wrote:I like this mod , but dethis or anyone else had tried to use the Online Time to award the star. Please share your coding.
Tks.
Sorry, but i didnt get that working either.

Re: Annual Stars for 3.0

Posted: Tue Jun 16, 2009 9:09 pm
by noth
I love this mod 8-)

one really superb element of the mod is, that if you have various STYLES available to your members

..... you can use different "graphics" for the actual 'annual stars' depending on the style, which is great :D

Re: Annual Stars for 3.0

Posted: Fri Jun 19, 2009 8:30 am
by iftitaj
eviL<3 wrote:It's kind of strange, I've never had any problems with exactly the same code. :?
May I give you temporary Admin account & FTP account so will you please look at my problem? :|

Re: Annual Stars for 3.0

Posted: Fri Jun 19, 2009 2:27 pm
by rstynls9
noth wrote:thanks whoisit :mrgreen: but TerraFrost has coded a working solution in viewtopic.php

so .... to STOP annual stars for members who have not visited in 1 year or more do TerraFrost's code

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
         // annual stars
         $user_cache[$poster_id]['reg_stars'] = '';
         if ($reg_years = (int) ((time() - (int) $row['user_regdate']) / 31536000))
         {
            $user_cache[$poster_id]['reg_stars'] = str_repeat($user->img('icon_annual_star', 'YEARS_OF_MEMBERSHIP'), $reg_years);
         }
#
#-----[ REPLACE WITH ]----------------------------------
#
         // annual stars
         $user_cache[$poster_id]['reg_stars'] = '';
         if ($reg_years = (int) (((int) $row['user_lastvisit'] - (int) $row['user_regdate']) / 31536000))
         {
            $user_cache[$poster_id]['reg_stars'] = str_repeat($user->img('icon_annual_star', 'YEARS_OF_MEMBERSHIP'), $reg_years);
         }
he has enstalled this on my board (the above change) and it works great :D

thank you TerraFrost!!
I have tried this and it does not work for me. It just eliminates the stars from showing up on everyone's profile, even those who are active within the last 24 hours. What might be the problem?

Re: Annual Stars for 3.0

Posted: Wed Jun 24, 2009 5:53 am
by Mircea007
anyone tried it on 3.0.5

Re: Annual Stars for 3.0

Posted: Wed Jun 24, 2009 6:45 am
by momentum
Mircea007 wrote:anyone tried it on 3.0.5
Yup!

Craig.

Re: Annual Stars for 3.0

Posted: Fri Jul 03, 2009 3:29 am
by kam009
I tried it on 3.0.5 and the star doesn't show up on the topic view... it does show up in member's profile view.


Please someone help..!

Re: Annual Stars for 3.0

Posted: Sat Jul 04, 2009 4:38 am
by kam009
Can someone please help... someone who has got it working in 3.0.5... I know php so i promise i won't act stupid! :P