Recent
:: This post is secret Bystroushaak
42 mins ago
:: RIFAS
3 hrs ago
:: buy clomid onli
4 hrs ago
:: RIFAS
4 hrs ago
:: anonymous
5 hrs ago
:: anonymous
5 hrs ago
:: anonymous
5 hrs ago
:: This post is secret DarckALexXP
5 hrs ago
:: DarckALexXP
5 hrs ago
:: s3v3n
7 hrs ago
:: anonymous
7 hrs ago
:: s3v3n
7 hrs ago
:: s3v3n
7 hrs ago
:: This post is secret KOLOU
13 hrs ago
:: This post is secret Chris
21 hrs ago
rss 2.0 feed

Make New Post
Posts: 19124

Syntax:       Wrapping:  

   #15397 Posted by mato1182 2009-07-04 11:10:34
Formated by GeSHi
  1. ################################################################
  2. ## COLOR GROUPS ##
  3. ## 1.2.1 ##
  4. ################################################################
  5. ##
  6. ## Popis modu: This mod will replace the current
  7. ## name colorization with a group
  8. ## system. You may define your group
  9. ## name, group color, and group members.
  10. ##
  11. ## Compatibility: phpBB - 2.0.4 - 2.0.6, 2.0.13 - 2.0.17
  12. ## (probably works with any version above 2.0.5)
  13. ## php - 4.0.1 or above
  14. ################################################################
  15. ## This hack brought to you by donation support from Kozy. ##
  16. ## Visit him at Kozy Net (http://www.kozysplace.net) to ##
  17. ## offer your thanks. ##
  18. ################################################################
  19. ****************************************************************
  20. ** Autor: Nivisec (support@nivisec.com) **
  21. ** http://www.nivisec.com **
  22. ** Translator: http://www.phpbbhacks.sk/ **
  23. ** Language **
  24. ** Files At: http://www.nivisec.com/phpbb.php?l=la **
  25. ****************************************************************
  26. ################################################################
  27. ## Obtiažnosť: Lahká
  28. ## Čas inštalacie : 10-15 minutes
  29. ##
  30. ## Author Notes:
  31. ## Once installed, you will have a new admin panel
  32. ## option called "Color Groups" under the "Group Admin"
  33. ## area.
  34. ##
  35. ## Support: http://www.phpbbhacks.com/forums
  36. ## Copyright: ©2002-2003 Nivisec.com
  37. ##
  38. ##############################################################
  39. ## Pred začatím inštalácie si zálohujte všetky súbory !!!!!!!!
  40. ##############################################################
  41. #
  42. #-----[ Uploadni na FTP ]------------------------------------------
  43. #
  44. #
  45. #
  46. nivisec_install.php do /
  47. nivisec_schema/*.* do nivisec_schema/
  48. admin/admin_color_groups.php do admin/
  49. language/lang_english/lang_color_groups.php do language/lang_english/
  50. includes/functions_color_groups.php do includes/
  51. templates/subSilver/admin/*.* do templates/subSilver/admin/
  52.  
  53. #
  54. #-----[ Spusti ]------------------------------------------
  55. #
  56. nivisec_install.php
  57.  
  58. #
  59. #-----[ Otvor ]------------------------------------------
  60. #
  61. includes/constants.php
  62.  
  63. #
  64. #-----[ Nájdi ]------------------------------------------
  65. #
  66. define('CATEGORIES_TABLE', $table_prefix.'categories');
  67.  
  68. #
  69. #-----[ Pridaj za ]------------------------------------------
  70. #
  71. define('COLOR_GROUPS_TABLE', $table_prefix.'color_groups');
  72.  
  73. #
  74. #-----[ Otvor ]------------------------------------------
  75. #
  76. index.php
  77.  
  78. #
  79. #-----[ Nájdi ]------------------------------------------
  80. #
  81. //
  82. // End session management
  83. //
  84.  
  85. #
  86. #-----[ Pridaj za ]------------------------------------------
  87. #
  88. include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
  89. color_groups_setup_list();
  90.  
  91. #
  92. #-----[ Nájdi ]------------------------------------------
  93. #
  94. $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&amp;" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
  95.  
  96. #
  97. #-----[ Prepíš za ]------------------------------------------
  98. #
  99. $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']);
  100. #
  101. #-----[ otvor ]------------------------------------------
  102. #
  103. templates/subSilver/index_body.tpl
  104.  
  105. #
  106. #-----[ Nájdi ]------------------------------------------
  107. #
  108. [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]
  109.  
  110. #
  111. #-----[ Prepíš za ]------------------------------------------
  112. #
  113. {COLOR_GROUPS_LIST}
  114.  
  115. #
  116. #-----[ Otvor ]------------------------------------------
  117. #
  118. includes/page_header.php
  119.  
  120. #
  121. #-----[ Nájdi ]------------------------------------------
  122. #
  123. if (defined('SHOW_ONLINE'))
  124. {
  125.  
  126.  
  127. #
  128. #-----[ Pridaj za ]------------------------------------------
  129. #
  130. include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
  131.  
  132. #
  133. #-----[ Nájdi ]------------------------------------------
  134. #
  135. $style_color = '';
  136. if ( $row['user_level'] == ADMIN )
  137. {
  138. $row['username'] = '<b>' . $row['username'] . '</b>';
  139. $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
  140. }
  141. else if ( $row['user_level'] == MOD )
  142. {
  143. $row['username'] = '<b>' . $row['username'] . '</b>';
  144. $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
  145. }
  146. if ( $row['user_allow_viewonline'] )
  147. {
  148. $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
  149. $logged_visible_online++;
  150. }
  151. else
  152. {
  153. $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
  154. $logged_hidden_online++;
  155. }
  156.  
  157. #
  158. #-----[ Prepíš za ]------------------------------------------
  159. #
  160. $user_online_link = color_group_colorize_name($row['user_id']);
  161. if ( $row['user_allow_viewonline'] )
  162. {
  163. $logged_visible_online++;
  164. }
  165. else
  166. {
  167. $logged_hidden_online++;
  168. }
  169.  
  170. #
  171. #-----[ Otvor ]------------------------------------------
  172. #
  173. viewonline.php
  174.  
  175. #
  176. #-----[ Nájdi ]------------------------------------------
  177. #
  178. $username = $row['username'];
  179.  
  180. $style_color = '';
  181. if ( $row['user_level'] == ADMIN )
  182. {
  183. $username = '<b style="color:#' . $theme['fontcolor3'] . '">' . $username . '</b>';
  184. }
  185. else if ( $row['user_level'] == MOD )
  186. {
  187. $username = '<b style="color:#' . $theme['fontcolor2'] . '">' . $username . '</b>';
  188. }
  189.  
  190. #
  191. #-----[ Prepíš za ]------------------------------------------
  192. #
  193. include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
  194. $username = color_group_colorize_name($user_id, true);
  195.  
  196. #
  197. #-----[ Otvor ]------------------------------------------
  198. #
  199. viewtopic.php
  200.  
  201. #
  202. #-----[ Nájdi ]------------------------------------------
  203. #
  204. include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
  205.  
  206. #
  207. #-----[ Pridaj za ]------------------------------------------
  208. #
  209. include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
  210.  
  211. #
  212. #-----[ Nájdi ]------------------------------------------
  213. #
  214. 'POSTER_NAME' => $poster,
  215.  
  216. #
  217. #-----[ Prepíš za ]------------------------------------------
  218. #
  219. 'POSTER_NAME' => ($poster_name = color_group_colorize_name($poster_id, true)) ? $poster_name : $poster,
  220.  
  221. #
  222. #-----[ Otvor ]------------------------------------------
  223. #
  224. memberlist.php
  225.  
  226. #
  227. #-----[ Nájdi ]------------------------------------------
  228. #
  229. include($phpbb_root_path . 'common.'.$phpEx);
  230.  
  231. #
  232. #-----[ Pridaj za ]------------------------------------------
  233. #
  234. include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
  235.  
  236. #
  237. #-----[ Nájdi ]------------------------------------------
  238. #
  239. 'USERNAME' => $username,
  240.  
  241. #
  242. #-----[ Prepíš za ]------------------------------------------
  243. #
  244. 'USERNAME' => color_group_colorize_name($user_id, true),
  245.  
  246. #
  247. #-----[ otvor ]------------------------------------------
  248. #
  249. privmsg.php
  250.  
  251. #
  252. #-----[ Nájdi ]------------------------------------------
  253. #
  254. include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
  255.  
  256. #
  257. #-----[ Pridaj za ]------------------------------------------
  258. #
  259. include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
  260.  
  261. #
  262. #-----[ Nájdi ]------------------------------------------
  263. #
  264. $username_from = $privmsg['username_1'];
  265.  
  266. #
  267. #-----[ Prepíš za ]------------------------------------------
  268. #
  269. $username_from = color_group_colorize_name($privmsg['user_id_1'], true);
  270.  
  271. #
  272. #-----[ Nájdi ]------------------------------------------
  273. #
  274. $username_to = $privmsg['username_2'];
  275.  
  276. #
  277. #-----[ Prepíš za ]------------------------------------------
  278. #
  279. $username_to = color_group_colorize_name($privmsg['user_id_2'], true);
  280.  
  281. #
  282. #-----[ Nájdi ]------------------------------------------
  283. #
  284. 'FROM' => $msg_username,
  285.  
  286. #
  287. #-----[ Prepíš za ]------------------------------------------
  288. #
  289. 'FROM' => color_group_colorize_name($msg_userid, true),
  290.  
  291. #
  292. #-----[ otvor ]------------------------------------------
  293. #
  294. viewforum.php
  295.  
  296. #
  297. #-----[ Nájdi ]------------------------------------------
  298. #
  299. include($phpbb_root_path . 'common.'.$phpEx);
  300.  
  301. #
  302. #-----[ Pridaj za ]------------------------------------------
  303. #
  304. include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
  305.  
  306. #
  307. #-----[ Nájdi ]------------------------------------------
  308. #
  309. $moderators[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';
  310.  
  311. #
  312. #-----[ Prepíš za ]------------------------------------------
  313. #
  314. $moderators[] = color_group_colorize_name($row['user_id']);
  315.  
  316. #
  317. #-----[ Nájdi ]------------------------------------------
  318. #
  319. $topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']) . '">' : '';
  320. $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );
  321.  
  322. $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
  323.  
  324. #
  325. #-----[ Prepiš za ]------------------------------------------
  326. #
  327. $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']);
  328.  
  329. #
  330. #-----[ Ulož & Zatvor všetkz zložky ]--------------------------
  331. #
  332. #Koniec
  333.  
Parsed in 0.03175497 seconds
::  Inline view Inline view ::  Email this post Email  ::  Print Print   

:: Download   Download Text File15397.txt   Download Gziped text File15397.txt.gz   Download HTML File15397.html   Download PDF File15397.pdf
:: Print into    Print into HTML FileHTML document   Print into PDF FilePDF document

:: Make Diff

:: Erase Post

* Code:

To highlight particular lines, prefix each line with @@


Description:


Secret key (for later deletion)
Syntax:     


comments (0)


Copyright © 2006 Openpastebin