Advanced Group Color Management - IM 141

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

Re: Advanced Group Color Management - IM 141

PostAuthor: obiku » Thu Feb 19, 2009 1:45 am

Did you make the code change like this post said..

http://www.integramod.com/forum/viewtop ... =45#p25162

Also
OPEN
Code: Select all
/includes/constants.php

FIND
Code: Select all
define('iNA_SCORES', $table_prefix.'ina_scores');

AFTER ADD
Code: Select all
define('COLOR_TABLE', $table_prefix.'color');

FIND
Code: Select all
define('POST_GROUPS_URL', 'g');

AFTER ADD
Code: Select all
define('POST_STYLES_URL', 's');


OPEN
Code: Select all
memberlist.php

FIND
Code: Select all
$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar    FROM " . USERS_TABLE . "    WHERE user_id <ANONYMOUS> $username,

REPLACE WITH
Code: Select all
          'USERNAME' =>  $colors->get_user_color($row['user_group_id'], $row['user_session_time'], $username),
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Advanced Group Color Management - IM 141

PostAuthor: .QUACK.Major.Pain » Thu Feb 19, 2009 5:27 am

I used the pre-modded files.
Like I said before, it worked for a day and a half maybe two days then changed on it's own.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: obiku » Thu Feb 19, 2009 8:21 am

I had the same problem, at first everything seems to work correct. But after I changed something (and I don't know in which order) in my Permissions table and my Advanced Group Color table, everything went wrong.

I think it had to do with the permissions. After installing, all the css names in the def_tree.php where correct. But after changing something in my user/groups permissions, all css names where like username_color_, without the number...

I don't even know if the premodded files have the bugfix in it???
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Advanced Group Color Management - IM 141

PostAuthor: obiku » Thu Feb 19, 2009 8:27 am

I just checked the zip file, but AGCM_IM141e.zip doesn't have the fix in it.

So better check the /includes/functions_categories_hierarchy.php, and make the fix
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Advanced Group Color Management - IM 141

PostAuthor: .QUACK.Major.Pain » Thu Feb 19, 2009 5:42 pm

Thanks - I assumed the fix was already inserted.

That alone doesn't fix it. Still shows the username_color_
You have to assign any member moderator status on any section, and the group name appear.
Then you can remove the users moderator status and everything looks ok.

Helter,

I edited the file and added a note on how to fix the bug.

I attached the modified package if you want to replace the one in the downloads area.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: Wishful » Sat Feb 21, 2009 11:19 pm

I tried adding a user to the moderator list of the forum and removing. It doesn't work. All it does is that instead of showing 'username_color_' it shows 'username_color_x' where x is a group id

Wishful
Newbie
Newbie
 
Posts: 1
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 17, 2009 10:07 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: Helter » Sat Feb 21, 2009 11:26 pm

obiku, can you update the AGC download?
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4246
Likes: 6 posts
Liked in: 23 posts
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 641.55
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Advanced Group Color Management - IM 141

PostAuthor: .QUACK.Major.Pain » Mon Feb 23, 2009 12:07 pm

"Wishful" wrote:I tried adding a user to the moderator list of the forum and removing. It doesn't work. All it does is that instead of showing 'username_color_' it shows 'username_color_x' where x is a group id



Did you do the fix first?

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: obiku » Mon Feb 23, 2009 1:09 pm

"HelterSkelter" wrote:obiku, can you update the AGC download?

I will get into this a.s.a.p.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Advanced Group Color Management - IM 141

PostAuthor: .QUACK.Major.Pain » Sat Mar 07, 2009 2:04 pm

Ok might just be me, but I installed the ACGM and it doesn't allow to change user colors in profile anymore.

I downloaded and reinstallled, and still can't. Not sure why this changed.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: .QUACK.Major.Pain » Thu Mar 12, 2009 4:46 am

Seems to be just on one site - my other site appears ok.
I do notice also, as the page loads, the one group color loads as the proper color and as the page finishes loading, the group changes to the integramod default color. Just the one group, not the others.

Guess something got bugged.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: Helter » Fri Mar 13, 2009 2:54 pm

check your root/profilcp/def/def_user*.php edits and file permissions. should be set to 666
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4246
Likes: 6 posts
Liked in: 23 posts
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 641.55
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Advanced Group Color Management - IM 141

PostAuthor: .QUACK.Major.Pain » Fri Mar 13, 2009 3:20 pm

All set to 666
I'll upload all the root/profilcp/ files and folders again, but still no usergroup color option in the profile settings.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: .QUACK.Major.Pain » Fri Mar 13, 2009 3:22 pm

I tried to do the /forum/install/install.php again, but says all ready up to date.
Thought maybe it was a database issue.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Advanced Group Color Management - IM 141

PostAuthor: golgoth » Thu Oct 15, 2009 7:00 am

I just realized that i have a strange and "random" bug with this mod.

When in index (not in viewforum or in viewtopic) sometimes people do not have the right color, as you can see in this image, where two junior admins (color cyan) looks like normal users (color orange) in a pair of "last post" tables:
[img]http://img129.imageshack.us/img129/7896/93270261.jpg[/img]

The same happens with some other users, for example a moderator that looks like an admin and so on...

Any idea about what's going on?

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 11:29 am
Cash on hand: 0.00

PreviousNext

Return to Mods/Hacks

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot], Vendethiel