Formated by GeSHi
################################################################ ## COLOR GROUPS ## ## 1.2.1 ## ################################################################ ## ## Popis modu: This mod will replace the current ## name colorization with a group ## system. You may define your group ## name, group color, and group members. ## ## Compatibility: phpBB - 2.0.4 - 2.0.6, 2.0.13 - 2.0.17 ## (probably works with any version above 2.0.5) ## php - 4.0.1 or above ################################################################ ## This hack brought to you by donation support from Kozy. ## ## Visit him at Kozy Net (http://www.kozysplace.net) to ## ## offer your thanks. ## ################################################################ **************************************************************** ** Autor: Nivisec (support@nivisec.com) ** ** http://www.nivisec.com ** ** Translator: http://www.phpbbhacks.sk/ ** ** Language ** ** Files At: http://www.nivisec.com/phpbb.php?l=la ** **************************************************************** ################################################################ ## Obtiažnosť: Lahká ## Čas inštalacie : 10-15 minutes ## ## Author Notes: ## Once installed, you will have a new admin panel ## option called "Color Groups" under the "Group Admin" ## area. ## ## Support: http://www.phpbbhacks.com/forums ## Copyright: ©2002-2003 Nivisec.com ## ############################################################## ## Pred začatím inštalácie si zálohujte všetky súbory !!!!!!!! ############################################################## # #-----[ Uploadni na FTP ]------------------------------------------ # # # nivisec_install.php do / nivisec_schema/*.* do nivisec_schema/ admin/admin_color_groups.php do admin/ language/lang_english/lang_color_groups.php do language/lang_english/ includes/functions_color_groups.php do includes/ templates/subSilver/admin/*.* do templates/subSilver/admin/ # #-----[ Spusti ]------------------------------------------ # nivisec_install.php # #-----[ Otvor ]------------------------------------------ # includes/constants.php # #-----[ Nájdi ]------------------------------------------ # define('CATEGORIES_TABLE', $table_prefix.'categories'); # #-----[ Pridaj za ]------------------------------------------ # define('COLOR_GROUPS_TABLE', $table_prefix.'color_groups'); # #-----[ Otvor ]------------------------------------------ # index.php # #-----[ Nájdi ]------------------------------------------ # // // End session management // # #-----[ Pridaj za ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); color_groups_setup_list(); # #-----[ Nájdi ]------------------------------------------ # $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> '; # #-----[ Prepíš za ]------------------------------------------ # $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']); # #-----[ otvor ]------------------------------------------ # templates/subSilver/index_body.tpl # #-----[ Nájdi ]------------------------------------------ # [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ] # #-----[ Prepíš za ]------------------------------------------ # {COLOR_GROUPS_LIST} # #-----[ Otvor ]------------------------------------------ # includes/page_header.php # #-----[ Nájdi ]------------------------------------------ # if (defined('SHOW_ONLINE')) { # #-----[ Pridaj za ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ Nájdi ]------------------------------------------ # $style_color = ''; if ( $row['user_level'] == ADMIN ) { $row['username'] = '<b>' . $row['username'] . '</b>'; $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; } else if ( $row['user_level'] == MOD ) { $row['username'] = '<b>' . $row['username'] . '</b>'; $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; } if ( $row['user_allow_viewonline'] ) { $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>'; $logged_visible_online++; } else { $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>'; $logged_hidden_online++; } # #-----[ Prepíš za ]------------------------------------------ # $user_online_link = color_group_colorize_name($row['user_id']); if ( $row['user_allow_viewonline'] ) { $logged_visible_online++; } else { $logged_hidden_online++; } # #-----[ Otvor ]------------------------------------------ # viewonline.php # #-----[ Nájdi ]------------------------------------------ # $username = $row['username']; $style_color = ''; if ( $row['user_level'] == ADMIN ) { $username = '<b style="color:#' . $theme['fontcolor3'] . '">' . $username . '</b>'; } else if ( $row['user_level'] == MOD ) { $username = '<b style="color:#' . $theme['fontcolor2'] . '">' . $username . '</b>'; } # #-----[ Prepíš za ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); $username = color_group_colorize_name($user_id, true); # #-----[ Otvor ]------------------------------------------ # viewtopic.php # #-----[ Nájdi ]------------------------------------------ # include($phpbb_root_path . 'includes/bbcode.'.$phpEx); # #-----[ Pridaj za ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ Nájdi ]------------------------------------------ # 'POSTER_NAME' => $poster, # #-----[ Prepíš za ]------------------------------------------ # 'POSTER_NAME' => ($poster_name = color_group_colorize_name($poster_id, true)) ? $poster_name : $poster, # #-----[ Otvor ]------------------------------------------ # memberlist.php # #-----[ Nájdi ]------------------------------------------ # include($phpbb_root_path . 'common.'.$phpEx); # #-----[ Pridaj za ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ Nájdi ]------------------------------------------ # 'USERNAME' => $username, # #-----[ Prepíš za ]------------------------------------------ # 'USERNAME' => color_group_colorize_name($user_id, true), # #-----[ otvor ]------------------------------------------ # privmsg.php # #-----[ Nájdi ]------------------------------------------ # include($phpbb_root_path . 'includes/functions_post.'.$phpEx); # #-----[ Pridaj za ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ Nájdi ]------------------------------------------ # $username_from = $privmsg['username_1']; # #-----[ Prepíš za ]------------------------------------------ # $username_from = color_group_colorize_name($privmsg['user_id_1'], true); # #-----[ Nájdi ]------------------------------------------ # $username_to = $privmsg['username_2']; # #-----[ Prepíš za ]------------------------------------------ # $username_to = color_group_colorize_name($privmsg['user_id_2'], true); # #-----[ Nájdi ]------------------------------------------ # 'FROM' => $msg_username, # #-----[ Prepíš za ]------------------------------------------ # 'FROM' => color_group_colorize_name($msg_userid, true), # #-----[ otvor ]------------------------------------------ # viewforum.php # #-----[ Nájdi ]------------------------------------------ # include($phpbb_root_path . 'common.'.$phpEx); # #-----[ Pridaj za ]------------------------------------------ # include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx); # #-----[ Nájdi ]------------------------------------------ # $moderators[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>'; # #-----[ Prepíš za ]------------------------------------------ # $moderators[] = color_group_colorize_name($row['user_id']); # #-----[ Nájdi ]------------------------------------------ # $topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']) . '">' : ''; $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] ); $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; # #-----[ Prepiš za ]------------------------------------------ # $topic_author = ($topic_rowset[$i]['user_id'] == ANONYMOUS ) ? (($topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] ) : color_group_colorize_name($topic_rowset[$i]['user_id']); # #-----[ Ulož & Zatvor všetkz zložky ]-------------------------- # #Koniec Parsed in 0.03175497 seconds
| :: Download | ||||
| :: Print into | ||||
:: Make Diff
:: Erase Post