1 sayfadan 1. sayfa

Hide WWW links from users not Logged In

İletiTarih: 25.09.2006, 13:47
sabri ünal
Mod adı: Hide WWW links from users not Logged In
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 = '&nbsp;';
$www = '&nbsp;';
}

#
#-----[ 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 = '&nbsp;';
$www = '&nbsp;';
}

#
#-----[ 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 = '&nbsp;';
$www = '&nbsp;';
}

#
#-----[ 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>' : '&nbsp;';

#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['session_logged_in'] )
{

#
#-----[ FIND ]------------------------------------------
#
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : '&nbsp;';

#
#-----[ AFTER, ADD ]------------------------------------------
#
}
else
{
$www_img = '&nbsp;';
$www = '&nbsp;';
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Cvp: Hide WWW links from users not Logged In

İletiTarih: 25.09.2006, 18:14
Romantizma
sabri abi bu modu su şekilde yapabilirmiyiz!...

MEsela siteye üye olan herhangi birisi başka bir kullanıcının profiline girdiğinde e-posta simgesini görüo ve tıklayınca mail adresi çıkıyor!!Ben bu işlevi üyelerin yapmasını istemiyorum!Bunun için bir mod var mı??

İletiTarih: 25.09.2006, 21:19
fatihbaz
teşekkürler sabriünal,hide moddan sıkılmıştım artık :)

Cvp: Hide WWW links from users not Logged In

İletiTarih: 04.11.2006, 15:21
kelkirpi
Süpersin, tam aradığım sağolasın.. :+1:

Cvp: Hide WWW links from users not Logged In

İletiTarih: 05.11.2006, 12:46
kelkirpi
kelkirpi yazdı:Süpersin, tam aradığım sağolasın.. :+1:

Derkeeeenn.. kurdum çalışmadı iyi mi :D