Darkenshin Membres actifs

Inscrit le: 23 Déc 2004 Messages: 601
|
Posté le: Dim 06 Mar 2005 à 1:34 Sujet du message: [Addon] Extend ranks color evrywhere |
|
|
| Code: | ## EasyMod 0.1.13 compliant
########################################################
## MOD Title: [Addon] Extend ranks color evrywhere
## MOD Author: Oyo (n/a) http://www.u-web.org/
## MOD Description: Ajoute la couleur des utilisateurs dans la liste des derniers messages postés
## dans viewforum
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit 7
## index.php
## memberlist.php
## templates/subSilver/memberlist_body.tpl
## privmsgs.php
## templates/subSilver/privmsgs_body.tpl
## search.php
## viewforum.php
## viewtopic.php
## Included Files: 1
## root/includes/functions_erc.php
########################################################
##
## Version History:
## 4/03/2005 - Update functions_erc.php
## - Compatibility with search
## - Compatibility with privmsgs
## - Compatibility with viewforum
## - Compatibility with viewtopic
## - Compatibility with memberlist
##
## 3/03/2005 - first addon release
##
########################################################
## Author Notes:
##
## Cette install requière le mod Extend ranks color
##
########################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
########################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
###############################################
#
#-----[ COPY ]------------------------------------------------
#
copy root/includes/functions_erc.php to includes/functions_erc.php
#
#-----[ OPEN ]------------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#
#-----[ AFTRE, ADD ]------------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_erc.'.$phpEx);
#
#-----[ FIND ]------------------------------------------------
#
$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> ';
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_erc_name($forum_data[$j]['user_id']) ;
#
#-----[ OPEN ]------------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------------
#
$user_id = $row['user_id'];
#
#
#-----[ AFTER, ADD ]------------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_erc.'.$phpEx);
$user_id_2 = color_erc_name($row['user_id']);
#
#-----[ FIND ]------------------------------------------------
#
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
'U_VIEWPROFILE' => $user_id_2)
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a>
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
{memberrow.U_VIEWPROFILE}
#
#-----[ OPEN ]------------------------------------------------
#
privmsgs.php
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
#
#
#-----[ AFTER, ADD ]------------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_erc.'.$phpEx);
#
#-----[ FIND ]------------------------------------------------
#
$user_id_to = $privmsg['user_id_2'];
#
#
#-----[ AFTER, ADD ]------------------------------------------------
#
$user_id_from_2 = color_erc_name($privmsg['user_id_1']);
$user_id_to_2 = color_erc_name($privmsg['user_id_2']);
#
#-----[ FIND ]------------------------------------------------
#
'MESSAGE_TO' => $username_to,
'MESSAGE_FROM' => $username_from,
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
'MESSAGE_TO' => $user_id_to_2,
'MESSAGE_FROM' => $user_id_from_2,
#
#-----[ FIND ]------------------------------------------------
#
$msg_username = $row['username'];
#
#
#-----[ AFTER, ADD ]------------------------------------------------
#
$u_from_user_color = color_erc_name($row['user_id']);
#
#-----[ FIND ]------------------------------------------------
#
'U_FROM_USER_PROFILE' => $u_from_user_profile)
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
'U_FROM_USER_PROFILE' => $u_from_user_color)
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/privmsgs_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
#
<a href="{listrow.U_FROM_USER_PROFILE}" class="name">{listrow.FROM}</a>
#
#-----[ REPLACE WITH ]------------------------------------------------
#
{listrow.U_FROM_USER_PROFILE}
#
#-----[ OPEN ]------------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
#
#
#-----[ AFTER, ADD ]------------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_erc.'.$phpEx);
#
#-----[ FIND ]------------------------------------------------
#
$topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['user_id']) . '">' : '';
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] );
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$topic_author = ($searchset[$i]['user_id'] == ANONYMOUS ) ? (($searchset[$i]['username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] ) : color_erc_name($searchset[$i]['user_id']) ;
#
#-----[ FIND ]------------------------------------------------
#
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>';
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : color_erc_name($searchset[$i]['id2']);
#
#-----[ OPEN ]------------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------------
#
$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>' : '';
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_erc.'.$phpEx);
$topic_author = ($topic_rowset[$i]['user_id'] == ANONYMOUS ) ? (($topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] ) : color_erc_name($topic_rowset[$i]['user_id']) ;
#
#-----[ FIND ]------------------------------------------------
#
$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>';
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : color_erc_name($topic_rowset[$i]['id2']) ;
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
#
#
#-----[ AFTER, ADD ]------------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_erc.'.$phpEx);
#
#-----[ FIND ]------------------------------------------------
#
$poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username'];
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : color_erc_name($postrow[$i]['user_id']);
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM |
un petit plus aussi :
| Code: | ## EasyMod 0.1.13 compliant
########################################################
## MOD Title: [Addon] Extend ranks color on birthday
## MOD Author: Oyo (n/a) http://www.darkenshin.fr.dt
## MOD Description: Ajoute la couleur des utilisateurs dans la liste des anniversaires
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit 1
## index.php
## Included Files: 0
########################################################
##
## Version History:
## 4/03/2005 - first addon release
##
########################################################
## Author Notes:
##
## Cette install requière le mod Extend ranks color et Birthday
##
########################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
########################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
###############################################
#
#-----[ OPEN ]------------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------------
#
switch ($birthdayrow['user_level'])
{
case ADMIN :
$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
break;
case MOD :
$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
break;
default: $style_color = '';
}
$birthday_week_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .'>' . $birthdayrow['username'] . ' ('.$user_age.')</a>,';
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$style_color = color_erc_name($birthdayrow['user_id']);
$birthday_week_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .' ('.$user_age.')</a>,';
#
#-----[ FIND ]------------------------------------------------
#
switch ($birthdayrow['user_level'])
{
case ADMIN :
$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
break;
case MOD :
$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
break;
default: $style_color = '';
}
$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .'>' . $birthdayrow['username'] . ' ('.$user_age.')</a>,';
#
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$style_color = color_erc_name($birthdayrow['user_id']);
$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .' ('.$user_age.')</a>,';
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM |
pour la maj du fichier rien de bien important :
| Code: | #
#-----[ OPEN ]------------------------------------------------
#
includes/functions_erc.php
#
#-----[ FIND ]------------------------------------------------
#
$user_link = '<a href="' . append_sid($phpbb_root_path."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id") . '"' . $style_color .'>' . $username . '</a>';
#
#-----[ REPLACE WITH ]------------------------------------------------
#
$user_link = '<a href="' . append_sid($phpbb_root_path."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id") . '"' . $style_color .' class="gensmall">' . $username . '</a>';
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM |
DL ici _________________ Pas de support par MP ¦ MSN ¦ Mail ¦ Skype ¦ Téléphone ¦ Courrier Postal...
 |
|