To make the avatar link work like prosilverPrinceWords wrote:hi, I use subsilver2 based style and i want to know how I can make username and avatar link to the user profile normally like prosilver...thx in advance
Code: Select all
<!-- IF postrow.POSTER_AVATAR -->
<tr>
<td>{postrow.POSTER_AVATAR}</td>
</tr>
<!-- ENDIF -->
Code: Select all
<!-- IF postrow.POSTER_AVATAR -->
<tr>
<td><!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --></td>
</tr>
<!-- ENDIF -->
Code: Select all
<td align="center" valign="middle">
<!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>
<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b>
</td>
Code: Select all
<td align="center" valign="middle">
<!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a><b class="postauthor">
<!-- IF not postrow.U_POST_AUTHOR -->{postrow.POST_AUTHOR}<!-- ELSE --><a href="{postrow.U_POST_AUTHOR}"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</a>
<!-- ENDIF --></b>
</td>
Code: Select all
<!-- IF postrow.POSTER_AVATAR --><div class="postavatar">{postrow.POSTER_AVATAR}</div><!-- ENDIF -->
Are you creating your own style or modifing someones style. If you are modifing let me know the style and I can give you the exact code.PrinceWords wrote:umm its weird when I try to find what you mentioned it look like this:
its different than what u wrote...so?Code: Select all
<!-- IF postrow.POSTER_AVATAR --><div class="postavatar">{postrow.POSTER_AVATAR}</div><!-- ENDIF -->
Everystyle is based off one of the two styles, but that doesn't mean they keep all the code the same. Give me twenty minutes and I will have your answer.PrinceWords wrote:oh, I thought all subsilver2 based style are the same..well, I use Avalon style. why differ?
Code: Select all
<!-- IF postrow.POSTER_AVATAR --><div class="postavatar">{postrow.POSTER_AVATAR}</div><!-- ENDIF -->
Code: Select all
<!-- IF postrow.POSTER_AVATAR --><div class="postavatar"><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a></div><!-- ELSE --><div class="postavatar">{postrow.POSTER_AVATAR}</div><!-- ENDIF -->
Code: Select all
<!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>
<div class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</div>
Code: Select all
<div class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->><!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POST_AUTHOR}</a><!-- ELSE -->{postrow.POST_AUTHOR}<!-- ENDIF --></div>