verisyon: 1.0.0
Yazarı: Kevin
Modun işlevi: giriş yapmamış üyelerden www linklerini gizleme yazar...
mesajlar, özel mesajlar, üye listesindeki ve profil görüntülemedeki linkler giriş yapmamış üyelere görünmez...
- Kod: Tümünü seç
##############################################################
## MOD Title: Hide WWW links from users not Logged In
## MOD Author: Kevin < N/A > (N/A) http://www.tacktech.com
## MOD Description: This is a simple program to Hide WWW links from users not Logged In
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: memberlist.php, privmsg.php,
viewtopic.php, includes/usercp_viewprofile.php
## Included Files: (N/A)
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: Hide WWW links from users not Logged In
##############################################################
## MOD History:
##
## 2006-09-23 - Version 1.0.0
## - Hide WWW Links When User Not Logged
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['session_logged_in'] )
{
#
#-----[ FIND ]------------------------------------------
#
$www = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : ';
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
else
{
$www_img = ' ';
$www = ' ';
}
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $privmsg['user_website'] ) ? '<a href="' . $privmsg['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['session_logged_in'] )
{
#
#-----[ FIND ]------------------------------------------
#
$www = ( $privmsg['user_website'] ) ? '<a href="' . $privmsg['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : ';
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
else
{
$www_img = ' ';
$www = ' ';
}
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $postrow[$i]['user_website'] ) ? '<a href="' . $postrow[$i]['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['session_logged_in'] )
{
#
#-----[ FIND ]------------------------------------------
#
$www = ( $postrow[$i]['user_website'] ) ? '<a href="' . $postrow[$i]['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : ';
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
else
{
$www_img = ' ';
$www = ' ';
}
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ' ';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['session_logged_in'] )
{
#
#-----[ FIND ]------------------------------------------
#
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : ' ';
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
else
{
$www_img = ' ';
$www = ' ';
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM