Rank shadow or glow not working right


  -----  
Author Message

Stan001
Member

Thu Jul 24, 2008 2:44 am   Post subject: Rank shadow or glow not working right
After a long time fixing shops 310, I installed Effects shop. I think the forum I am on works like most others. We have several ranks that go up as your post count increases. The weird problem is if you use Glow it does NOT display the users rank properly. Lets say members rank is Full Member. If you add glow it sets it to Starting. In fact I think it sets it to FulStarting or simular. I can not get this one. I am at a total loss cause we also have set special ranks and if you try to use glow on those they display fine. Like I am set as special rank Admin. and that works fine. But anyone that has a post count rank uses glow and it almost wipes out the rank they have and puts in Starting.

Please someone help.

THANKS
 

Thoul
Administrator

Sat Jul 26, 2008 8:14 pm   Post subject: Re: Rank shadow or glow not working right
Can you post a link to where this is happening, showing both a rank with and without the glow please? It sounds like a possible html foul up, but it's hard to say without seeing it in action.
 

Stan001
Member

Sun Jul 27, 2008 11:27 am   Post subject:
Not sure what you need but can give you this .. source with Admin as title and shadow and source with Jr. Member as regular posting title and shadow and it making it Starting and source with Jr. Member no shadow. I guess what throws me off is it shadows Admin ok and any other special rank. But if not special rank just a posting rank then it sets them to Starting. So driving me crazy. Cause it does try to display the members rank but if it did it would not be in shadow. Cause you can see the the 'Jr' is not where shadow starts and then rank would be just 'Jr'. I am stuck at the point I don't get why it puts in Starting. I don't get why it gets that rank instead of the current rank of user Jr. Member. And I have tryed all the posting ranks Top Member and on and does the same for all none special regular posting ranks. Sets them to maybe a few letters of real rank the show Starting.

As you can see the second one results in a display like this .. JrStarting .. execept it's in shadow but does it on glow or color also.

<span style="color: rgb(128, 0, 148);" class="gensmall"><b><span style="padding: 0.2em; background-color: rgb(255, 128, 191); display: inline;">stan</span></b></span></b><br></span><br><span class="postdetails"><span style="padding: 0.2em; background-color: rgb(255, 255, 0); display: inline; color: rgb(0, 0, 255);">Admin</span><br><br><img src="images/ranks/image001.gif" alt="Admin" title="Admin" border="0"><br>



<span style="color: rgb(45, 0, 170);" class="gensmall"><b>stan</b></span></b><br></span><br><span class="postdetails">Jr<span style="background-color: rgb(255, 0, 0); padding-left: 0.2em; padding-bottom: 0.2em; display: inline;">Starting</span><br><br><img src="/images/ranks/image00.gif" alt="Jr. Member" title="Jr. Member" border="0"><br>



<span style="color: rgb(45, 0, 170);" class="gensmall"><b>stan</b></span></b><br></span><br><span class="postdetails">Jr. Member<br><br><img src="/images/ranks/image00.gif" alt="Jr. Member" title="Jr. Member" border="0"><br>
 

Stan001
Member

Mon Jul 28, 2008 2:39 pm   Post subject:
FOUND THE PROBLEM !!!!

FIND in class_base.php

Code:

                        foreach($this->ranks as $v)
                        {
                                if ( $user_data['user_posts'] >= $v['rank_min'] && !$v['rank_special'] )
                                {
                                        $rank_title = $v['rank_title'];
                                        break;
                                }
                        }


CHANGE TO

Code:

                        foreach($this->ranks as $v)
                        {
                                if ( $user_data['user_posts'] >= $v['rank_min'] && !$v['rank_special'] )
                                {
                                        $rank_title = $v['rank_title'];
////                                        break;
                                }
                        }
 

Page 1 of 1
Display posts from previous: