Konu İçeriğinde Kullanıcı IP Numarası

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

Konu İçeriğinde Kullanıcı IP Numarası

İleti CeNK 27.11.2005, 00:19

[syntax="php"]#################################################################
## MOD Title: View Poster's IP on thread
## MOD Author: Smartor < smartor_xp@hotmail.com > (Hoang Ngoc Tu) http://smartor.is-root.com
## Description: This will add the poster's IP with a link to the
## Whois query on the 'view topic' page. Will only
## display the IP when user is ADMIN or MODERATOR. You
## can choose this Mod will display [ IP : Logged ]
## when user is USER. It will not removed the
## built-in IP button.
## MOD Version: 1.0.3
##
## Installation Level: easy
## Installation Time: 3 Minutes
##
## Files To Edit: 2
## viewtopic.php,
## templates/subSilver/viewtopic_body.tpl
##
## 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 Note:
##
#################################################################
##
## Revision History:
##
## v1.0.3
## - included a fix for IP appearance - by Invisus
## v1.0.2
## - fixed a template issue
## v1.0.1
## - Open Whois query in a separated window
## v1.0.0
## - Initial Release and Final.
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################


#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$ip = '<a href="' . $temp_url . '">' . $lang['View_IP'] . '</a>';

#
#-----[ REPLACE WITH ]------------------------------------------
#
$ip = decode_ip($postrow[$i]['poster_ip']);
$ip = "[ IP : <a href='http://www.nic.com/cgi-bin/whois.cgi?query=" . $ip . "' target='_blank'>" . $ip . "</a> ]";

#
#-----[ FIND ]------------------------------------------
#
$ip = '';

#
# Unless you want normal users can see [ IP : Logged ] you can skip this step
#-----[ REPLACE WITH ]----------------------------------
#
$ip = '[ IP : Logged ]';


#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]-----------------------------------------
#
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap">

#
#-----[ AFTER ADD ]------------------------------------
#
<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>

#
#-----[ FIND ]------------------------------------------
#
<noscript>{postrow.ICQ_IMG}</noscript></td>
</tr>
</table></td>

#
#-----[ AFTER, ADD ]------------------------------------
#
<td align="right"><span class="gensmall">{postrow.IP}</span></td></tr></table></td>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM[/syntax]
Kullanıcı avatarı
CeNK
Üye
Üye
 
İleti: 584
Kayıt: 01.11.2005, 15:21
Konum: İstanbul

selam

İleti erhanby 10.02.2006, 15:27

bunu ftp ile mi atacağız yoksa kod değişikliğimi yardım!!!!!!!!!
erhanby
Üye
Üye
 
İleti: 204
Kayıt: 23.01.2006, 13:22

İleti fatihbaz 10.02.2006, 18:16

viewtopic_body.tpl ve viewtopic.php de cenk kardeşimin söyledigi yerleri düzenleyecek ve onu ftp den eskisinin yerine atacaksın.

teşekkürler cenk,işi yarar bişeye benziyor.
Kullanıcı avatarı
fatihbaz
Üye
Üye
 
İleti: 870
Kayıt: 25.11.2005, 12:26
Konum: Kahramanmaraş


Duyurular & Güncellemeler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron