MOD download & history

Makes the posts name a link, to his/her profile, admin get a link to user administration

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

MOD download & history

Postby Niels on Wed 10. Apr, 2002 22:14

Code: Select all
##############################################################
## MOD Title:          Direct user link
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description:    Makes the users name as a link when viewing
##                     topic's - that whay more intuitive to get users
##                     profile. If the viewing user have admin rigths
##                     then the link is to the administration profile
## MOD Version:        1.0.6
## MOD Compatibility:  2.0.x
##
## Installation Level: Easy
## Installation Time:  2 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      2
##      viewtopic.php   
##      templates/subSilver/viewtopic_body.tpl   
##
## Included Files:     0
##
##############################################################
## MOD History:
##
##   2003-12-10 - Version 1.0.6
##      - phpBB template & EasyMOD compliance enhancement
##
##   2003-10-10 - Version 1.0.5
##      - change into viewtopic.php
##
##   2003-08-24 - Version 1.0.4
##      - history started
##      - rewrite how-to to be EM ready
##
##############################################################
Last edited by Niels on Thu 18. Dec, 2003 21:50, edited 4 times in total.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Idea

Postby te-ga on Wed 19. Jun, 2002 09:45

Hello!

Would it be hard to validate whether user is registered and if not then add not link - when I click on the user that is not registered it just says that there is no such user. Just check whether user is registered and if true then add link, else - no link. :D
te-ga
Poster
Poster
 
Posts: 7
Joined: Sun 16. Jun, 2002 19:58

Postby Niels on Wed 19. Jun, 2002 14:06

I have updated the how to, new version is 1.0.3, the above request have been implemented, guest postes does now not have there name showen as a link

here are how to upgrade
in viewtopic.php
[FIND]
'U_VIEW_POSTER_PROFILE' => ($userdata['user_level'] != ADMIN)? append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $poster_id) : append_sid("admin/admin_users.$phpEx?mode=edit&amp;u=" . $poster_id) ,

[REPLACE WITH]
'U_VIEW_POSTER_PROFILE' => ($poster_id != ANONYMOUS) ? ('<a href="'.(($userdata['user_level'] != ADMIN)? append_sid('profile.'.$phpEx.'?mode=viewprofile&amp;' . POST_USERS_URL . '=' . $poster_id) : append_sid('admin/admin_users.'.$phpEx.'?mode=edit&amp;u=' . $poster_id)) .'" class="name">'.$poster.'</a>') : $poster ,

in viewtopic_body.tpl
[FIND]
<a href="{postrow.U_VIEW_POSTER_PROFILE}" class="name">{postrow.POSTER_NAME}</a>

[REPLACE WITH]
{postrow.U_VIEW_POSTER_PROFILE}


this should do the trick
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Thank you!

Postby te-ga on Wed 19. Jun, 2002 16:48

Thank you Niels! This did help me! It is also good that you are posting changes right away on the forum. I have downloaded the new .zip but it was old. So thank you for posting changes on the forum! Thank you!!!

With respect, Dima.
te-ga
Poster
Poster
 
Posts: 7
Joined: Sun 16. Jun, 2002 19:58

Postby Niels on Thu 20. Jun, 2002 12:16

Yes, you are rigth, I would where my changes when in the how-to, however I have now "re-done" the how-to, and It should reflect the resent upgrade
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Sun 24. Aug, 2003 20:58

this mod is now EM ready
also change the code, so the link will be in the users color, e.g. admin and mods wil have different colors than usual users
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 10. Oct, 2003 11:18

code is updated to version 1.0.5. please update the code in viewtopic.php
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46


Return to Direct user link [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron