Kod: Tümünü seç
##############################################################
## MOD Title: Color Groups modu için banlanan kullanıcı adının üzerinin çizilmesi (strikeout of banned usernames for Color Groups Mod)
## MOD Author: ESQARE < admin@turkiyeforum.com > http://www.phpbbturkey.com/
## MOD Description: Bu mod sayesinde Color Groups (Renk grupları)
## modu kurulu olan phpBB forumlardaki banlanan kullanıcıların üzeri çizilir
## MOD Version: 1.0.1
##
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: 1
## includes/functions_color_groups.php
##
## Included Files: N/A
##############################################################
## 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/
##############################################################
## Author Notes:
## Fikir için emrag arkadaşımıza teşekkürler (thanks to emrag)
##
##############################################################
## MOD History:
##
## 2006-04-22 - Version 1.0.1
## - First release
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_color_groups.php
#
#-----[ FIND ]------------------------------------------
#
// Make the profile link or no and return it //
if ($no_profile)
{
$user_link = "<span $style_color>$username</span>";
}
else
{
$user_link = '<a href="' . append_sid($phpbb_root_path."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id") . '"' . $style_color .'>' . $username . '</a>';
}
return($user_link);
}
else
{
return false;
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
// Make the profile link or no and return it //
$sql = "SELECT b.ban_userid, u.username, u.user_id
FROM " . BANLIST_TABLE . " b, " . USERS_TABLE . " u
WHERE b.ban_userid = $user_id
AND u.user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
return false;
}
$row = $db->sql_fetchrow($result);
if(isset($row['ban_userid']))
{
$user_link = "<strike><span $style_color>$username</span></strike>";
}
else if ($no_profile)
{
$user_link = "<span $style_color>$username</span>";
}
else
{
$user_link = '<a href="' . append_sid($phpbb_root_path."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id") . '"' . $style_color .'>' . $username . '</a>';
}
return($user_link);
}
else
{
return false;
}
}
#
#-----[ SAVE & CLOSE ALL FILES ]------------------------------------------
#
# EoM