Kod: Tümünü seç
##############################################################
## MOD Title: Link to Profile from avatar
## MOD Author: SupremeWeapon< Snaggs5899@msn.com > (Chris Wilhelms)
http://12.241.136.2/styles_demo/
## MOD Description: Links your avatar to your profile so users have easy access to your profile
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 3 Minutes
## Files To Edit: Viewtopic.php viewtopic_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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/
##############################################################
## Author Notes:
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[OPEN]-------------------
#
Viewtopic.php
#
#----[FIND]----------------------------
#
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
$profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>';
$profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';
#
#----[REPLACE WITH]-----------------
#
$profile_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
#
#----[FIND]---------------------------
#
$profile_img = '';
$profile = '';
#
#-----[REPLACE WITH]-----------
#
$profile_url = '';
#
#----[FIND]-----------------
#
'PROFILE_IMG' => $profile_img,
'PROFILE' => $profile,
#
#-----[REPLACE WITH]---------------
#
'PROFILE_URL' => $profile_url,
#
#-------------[OPEN]-------------------
#
templates/subSilver/viewtopic_body.tpl
#
#--------[FIND]-----------------
#
{postrow.POSTER_AVATAR}
#
#----[REPLACE WITH]--------------------
#
<a href="{postrow.PROFILE_URL}">{postrow.POSTER_AVATAR}</a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM