[Dev] Member 's name : link to profil

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

[Dev] Member 's name : link to profil

Post by morpheus2matrix »

Code: Select all

################################################################# 
## Mod Title: Member's name : Link to profile 
## Mod Version: 1.0.0 
## Author: Morpheus => morpheus2matrix@caramail.com 
## Description: This mod gives you the right to clic on the name of a member to see his/her profile 
## 
## Installation Level: easy 
## Installation Time: 1 minute 
## Files To Edit: 2 
################################################################# 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites without the direct permission of the author 
################################################################# 
## 
## Author Note: Thanks for all who have (or try) to help me :) 
##          
## 
################################################################# 
## 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>'; 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
$profile2 = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $poster_id);
# 
#-----[ FIND ]------------------------------------------ 
# 
'PROFILE' => $profile,'PROFILE' => $profile, 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
'U_VIEW_PROFILE' => $profile2, 

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

# 
#-----[ FIND ]------------------------------------------ 
# 
{postrow.POSTER_NAME}<br /> 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
<a href="{postrow.U_VIEW_PROFILE}">{postrow.POSTER_NAME}</a><br /> 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
#EoM 
Last edited by morpheus2matrix on Thu May 16, 2002 8:46 pm, edited 1 time in total.
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

desean84
Registered User
Posts: 205
Joined: Thu Jan 03, 2002 8:53 am
Location: Singapore

Post by desean84 »

isn't this the same as Direct user link by Niels?

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix »

yes it's look similar :oops:

but the mod of niels is better than mine because it take a look if user is admin or not !

i didn't know that this mod already exist :oops:
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

Post Reply

Return to “[2.0.x] MODs in Development”