User Color in browse
Hi something not working so I need any idea
I put this in global.php PHP Code:
and add in fuctions.php PHP Code:
and still not work, what I missed, thanks for help |
Just a quick glance, you are doubling the '#' sign.
|
where you see, its only one
|
case UC_USER: return "#f9a950";
case UC_POWER_USER: return "#f9a200"; case UC_VIP: return "#009F00"; case UC_UPLOADER: return "#6464FF"; case UC_MODERATOR: return "#ff5151"; case UC_ADMINISTRATOR: return "#B000B0"; case UC_SYSOP: return "#2587A7"; case UC_STAFFLEADER: return "#0F6CEE"; Looks like 2 to me. |
ok I change this line and not work
PHP Code:
|
You're going to have to be more specific, what doesn't work? What is the exact error, etc?
|
on browse got same color users not different
|
Where is row['class'] coming from? Is it from a join to users? Is the query correct? Are the results correct? What color is displayed? What class does that match?
|
can we go step by step...
Test is User color black SlaTkis is StaffLeader color black must be darkred http://shrani.si/f/1r/XI/1ZqmnIci/12.png |
I have to guess, because you have not answered the previous questions.
It appears that your query, more specifically your join is flawed. If you look at your error log, you may see that index 'class' does not exist. If you do, simple fix, add the proper join Code:
LEFT JOIN users ON torrents.owner = users.id But without more information, I am only guessing. |
All times are GMT +2. The time now is 23:43. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.