4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: trez on February 21, 2006, 10:02:10 AM

Title: Link username & avatar in comments to user-profile
Post by: trez on February 21, 2006, 10:02:10 AM
I have many users asking why th useravatar and the name in the comments isn't linked to the profile, so the exact function {comment_user_profile_button} does. Anyone can help me ?
Title: Re: Link username & avatar in comments to user-profile
Post by: IcEcReaM on February 21, 2006, 11:58:53 AM
not the name is linked,
but at the bottom of each comment, there is a profile link?
Title: Re: Link username & avatar in comments to user-profile
Post by: trez on February 21, 2006, 12:10:20 PM
yes, at the bottom is the profile link, but what i have to do is MAKE the username and useravatar LINK to the user-profile ;)
Title: Re: Link username & avatar in comments to user-profile
Post by: IcEcReaM on February 21, 2006, 01:00:44 PM
To link the username with the profile.

Open details.php
search for:
Code: [Select]
        $comment_user_profile_button = "<a href=\"".$comment_user_profile_link."\"><img src=\"".get_gallery_image("profile.gif")."\" border=\"0\" alt=\"".$comment_user_name."\" /></a>";
insert below
Code: [Select]
        // Commentusername mit Profil verlinken
        $comment_user_name = "<a href=\"".$comment_user_profile_link."\">".$comment_user_name."</a>";

Wenn du auch das Userpic verlinken willst,
sind 2-3 änderungen mehr nötig,
da das userpic im template selbst verlinkt wird,
man müsste dann ne varilabe mehr registern.
Aber an sich reicht doch die Verlinkung des Usernamens?
Title: Re: Link username & avatar in comments to user-profile
Post by: trez on February 21, 2006, 01:18:14 PM
thanks, you made my day ;) (again!)

PS: Das mit dem userpic ist nicht so wichtig. Ich denke auch das das reicht, danke
Title: Re: Link username & avatar in comments to user-profile
Post by: surferboy on April 19, 2010, 07:40:18 PM
Hi -

Some feedback for those who have these two MODs installed:

Shoutbox/Guestbook: http://www.4homepages.de/forum/index.php?topic=22492.0

Show Received Comments V.2: http://www.4homepages.de/forum/index.php?topic=12695.0

and you have made the additional modifications listed on page 2 to the member.php file ...
http://www.4homepages.de/forum/index.php?topic=12695.msg78414#msg78414

then you have two examples of the code that this MOD is saying to find and add new code underneath.  If you just follow the instructions in this MOD, the profile link does not take in the comment section, it takes in the Shoutbox.  So to fix the profile link in the comment box, you need to open your member.php file and look for the same code, although it is slightly different but just copy the code from this MOD into CTRL-F and search the Member.php file and you'll find it.  Now just do the same insert again, below, and you're all set. Link profiles in both places.

This is such a great MOD. If anyone has the time, read Steve Krug's book "Don't Make Me Think" about website design and usability.  This MOD takes the thinking away. A community website visitor, at least for us, can just immediately see the linked named and know to click on it and see their profile. So easy.

Thanks so much!

- Brian