Ajax Shoutbox and Nivisec Color Groups
-----
| Author | Message | |
|---|---|---|
|
Divvy |
||
| Wed May 16, 2007 7:00 pm Post subject: Ajax Shoutbox and Nivisec Color Groups | ||
|
Please, can someone help me integrating this mod:
http://www.phpbb.com/community/viewtopic.php?f=16&t=389032 with this one? http://www.phpbbhacks.com/download/5355 I need to put colors in the usernames... Maybe this line helps: Code: #
#-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # include($phpbb_root_path . 'includes/bbcode.'.$phpEx); # #-----[ AFTER, ADD ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ FIND ]------------------------------------------ # 'POSTER_NAME' => $poster, # #-----[ REPLACE WITH ]------------------------------------------ # 'POSTER_NAME' => ($poster_name = color_group_colorize_name($poster_id, true)) ? $poster_name : $poster, |
||
|
Thoul |
||
| Thu May 17, 2007 4:12 pm Post subject: Re: Ajax Shoutbox and Nivisec Color Groups | ||
|
There are some generic integration instructions for Color Groups here. That real site for that appears to be down now, so this is the Google cache version. Hopefully that will help you out with this.
|
||
|
Divvy |
||
| Fri May 18, 2007 4:46 am Post subject: Re: Ajax Shoutbox and Nivisec Color Groups | ||
|
Thank you for your reply Thoul
I already did It puting colors in the chat.php with this changes: Code: #
#-----[ OPEN ]------------------------------------------ # chat.php # #-----[ FIND ]------------------------------------------ # include($phpbb_root_path."includes/functions_shoutbox.".$phpEx); # #-----[ AFTER, ADD ]------------------------------------------ # include($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ FIND & REMOVE ]------------------------------------------ # if ( $user_level == ADMIN ) { $username = '<b style="color:#' . $theme['fontcolor3'] . '">' . $username . '</b>'; } else if ( $user_level == MOD ) { $username = '<b style="color:#' . $theme['fontcolor2'] . '">' . $username . '</b>'; } # #-----[ FIND ]------------------------------------------ # $shouter = utf8dec($row[$x]['username']); # #-----[ AFTER, ADD ]------------------------------------------ # $shouter = ($color_name = color_group_colorize_name($row[$x]['user_id'], true)) ? utf8dec($color_name) : $shouter; # #-----[ FIND ]------------------------------------------ # $username = $online['username']; # #-----[ REPLACE WITH ]------------------------------------------ # $username = ($poster_name = color_group_colorize_name($online['user_id'], true)) ? $poster_name : $online['username']; # #-----[ FIND ]------------------------------------------ # 'USERNAME' => $top_shouters['username'], # #-----[ REPLACE WITH ]------------------------------------------ # 'USERNAME' => ($poster_name = color_group_colorize_name($top_shouters['user_id'], true)) ? $poster_name : $top_shouters['username'], Chat.php is now complete But now I need to do the same with the shoutbox.php but I cant do It! Here what I did: Code: #
#-----[ OPEN ]------------------------------------------ # shoutbox.php # #-----[ FIND ]------------------------------------------ # include($phpbb_root_path . 'common.'.$phpEx); # #-----[ AFTER, ADD ]------------------------------------------ # include($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ FIND ]------------------------------------------ # 'USER' => $online['username'], # #-----[ REPLACE WITH ]------------------------------------------ # 'USER' => ($poster_name = color_group_colorize_name($online['user_id'], true)) ? $poster_name : $online['username'], # #-----[ FIND ]------------------------------------------ # $shouter = $row[$x]['username']; # #-----[ REPLACE WITH ]------------------------------------------ # $shouter = ($color_name = color_group_colorize_name($row[$x]['user_id'], true)) ? ($color_name) : $shouter; What I am doing wrong? Can you help me? P.S. Please sorry for my poor english... |
||
|
Thoul |
||
| Sat May 19, 2007 3:59 pm Post subject: Re: Ajax Shoutbox and Nivisec Color Groups | ||
|
I'm not sure, it looks correct to me. I don't know why it is not working. Try reuploading the file. It might not have uploaded correctly after you made those changes.
|
||
|
Divvy |
||
| Thu May 24, 2007 8:04 am Post subject: Re: Ajax Shoutbox and Nivisec Color Groups | ||
|
Didnīt work...
|
||
|
Divvy |
||
| Tue May 29, 2007 6:22 am Post subject: Re: Ajax Shoutbox and Nivisec Color Groups | ||
|
*BUMP*
|
||
|
Thoul |
||
| Tue May 29, 2007 5:04 pm Post subject: Re: Ajax Shoutbox and Nivisec Color Groups | ||
|
I've no idea, then. Based on the other set of changes, which you say worked, I would think the second set would work also.
|
||
Page 1 of 1