Page 12 of 29

Re: Simple Colored Usergroups

Posted: Sat Apr 07, 2007 7:00 pm
by Prosk8er
the first appearance of it

Re: Simple Colored Usergroups

Posted: Sat Apr 07, 2007 7:12 pm
by jalaln
bprsk8r4272 wrote: the first appearance of it
Thank you.
BTW kkroo, how do you do it so that all other members are blue-bold and fill in the "Users" group?

Re: Simple Colored Usergroups

Posted: Sat Apr 07, 2007 9:23 pm
by kkroo
You can do that by installing an auto groups mod such as this one: http://www.phpbb.com/community/viewtopi ... iew=unread

Then apply the coloring to the group.

Hope that is what you want

Re: Simple Colored Usergroups

Posted: Sun Apr 08, 2007 9:40 am
by jalaln
Hi again, I've got a final question:

While installing Global Coloring Addon (scu_global.mod) You have to add before two href ' . $last_post_author_color . ' and ' . $style_color . '

so it will be:

'<a ' . $style_color . '' . $last_post_author_color . 'href="'

Is it correct?

Code: Select all

Also you have to add successively:
$style_color = ($user_color = color_groups_user($topic_rowset[$i]['id2'])) ? 'style="font-weight:bold;color: #' . $user_color . '" ' : '';
and
$last_post_author_color = ($user_color = color_groups_user($topic_rowset[$i]['id2'])) ? 'style="font-weight:bold;color: #' . $user_color . '" ' : '';
Is it correct too :?:

Thanks, Jalal.

Re: Simple Colored Usergroups

Posted: Sun Apr 08, 2007 9:57 am
by kkroo
It would look like this:

Code: Select all

'<a ' . $last_post_author_color . ' href="'

Re: Simple Colored Usergroups

Posted: Sun Apr 08, 2007 10:12 am
by jalaln
kkroo wrote: It would look like this:

Code: Select all

'<a ' . $last_post_author_color . ' href="'

oh, ok then you have to correct it in scu_global.mod.

Code: Select all

But, do we have to add:

$style_color = ($user_color = color_groups_user($topic_rowset[$i]['id2'])) ? 'style="font-weight:bold;color: #' . $user_color . '" ' : '';

and

$last_post_author_color = ($user_color = color_groups_user($topic_rowset[$i]['id2'])) ? 'style="font-weight:bold;color: #' . $user_color . '" ' : '';

before

$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';

?
I will send you my viewforum.php. Could you please take a look and tell me if it is correct.

Here it is: http://www.savefile.com/files/619248.

Thank you.

Re: Simple Colored Usergroups

Posted: Sun Apr 08, 2007 1:08 pm
by kkroo
It appears you are installing it incorrectly, try using easymod or view the KB article on installing mods

Re: Simple Colored Usergroups

Posted: Mon Apr 09, 2007 12:22 am
by lefty74
great mod, thanks very much.

I moved over from the Advanced Username Color since this one manages the group and color in one rather than having to make groups for the colour assingment as well.

I did have issues with getting the groups in the right order though so eventually put the order in the database manually.

Thanks again

Re: Simple Colored Usergroups

Posted: Mon Apr 09, 2007 9:27 am
by jalaln
Hi, the first group I have created is groupcp.php?g=6758 Why?! :|

Re: Simple Colored Usergroups

Posted: Mon Apr 09, 2007 11:57 am
by Prosk8er
jalaln wrote: Hi, the first group I have created is groupcp.php?g=6758 Why?! :|


you can change it in phpmyadmin

Re: Simple Colored Usergroups

Posted: Mon Apr 09, 2007 12:07 pm
by jalaln
bprsk8r4272 wrote:
jalaln wrote: Hi, the first group I have created is groupcp.php?g=6758 Why?! :|


you can change it in phpmyadmin

Thanks.

Re: Simple Colored Usergroups

Posted: Fri Apr 13, 2007 9:22 pm
by AstRonotTR
How I can answer the problem?(s0rry I can not speak english vell)
error picture :(
Image

Re: Simple Colored Usergroups

Posted: Sat Apr 14, 2007 4:08 am
by kkroo
I cant see the part of the picture i need. Could you copy and paste the error message?

Re: Simple Colored Usergroups

Posted: Sat Apr 14, 2007 7:21 am
by AstRonotTR
error message

Code: Select all

Genel Hata
Could not obtain group list

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' group_colored, group_colors, group_order <> 1 ORDER BY group_name' at line 3

SELECT group_id, group_name FROM phpbb_groups WHERE group_single_user, group_colored, group_colors, group_order <> 1 ORDER BY group_name

Line : 481
File : admin_groups.php

Re: Simple Colored Usergroups

Posted: Sat Apr 14, 2007 8:56 am
by kkroo
You have installed the mod incorrectly, you put group_colored, group_colors, group_order under the WHERE rather than under the SELECT. Refer to the install file to fix this.