How to link post author's name to their profile?

mystex

Reputable
Joined
Nov 15, 2009
Messages
115
Reaction score
0
FP$
6
How do I link a post author's name (default is not linked in some styles (like mine))? For example, on this forum, which is phpBB3 like mine, you can click on someone's name and be taken to their profile page, but on my forum you can't (it's just not linked).

Example page: http://www.trance-life.org/forums/viewt ... f=42&t=159

As you can see here, the post author's name is not linked. I found that this puts the author's name above the avatar: {postrow.POST_AUTHOR}, but I don't know where "postrow" is located, so I can't edit it.

Any suggestions?
 
It always comes with the theme, try uploading the theme again.
I'm not so sure either on why this happening.
 
It's how majority of subsilver2 styles are.

Open:
Styles/yourstyle/template/viewtopic_body.html

Find:

Code:
<div class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</div>

Replace with:

Code:
<div class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->><a href="{postrow.U_POST_AUTHOR}">{postrow.POST_AUTHOR}</div>

Good luck.
 
Thanks Nathan for the help! I had to edit your little segment of code a little bit, but it wasn't much. I just had to put the color back in, because for some reason the profile link for everyone was the same color, despite rank differences.

New code that works for the Hermes phpBB3 style:

Code:
<div class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->><a href="{postrow.U_POST_AUTHOR}" style="color: {postrow.POST_AUTHOR_COLOUR}">{postrow.POST_AUTHOR}</a></div>
 
Back
Top Bottom