Page 1 of 1

HOW TO make names and pictures clickable in subsilver2

Posted: Fri Jan 02, 2009 7:21 pm
by PrinceWords
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 :)

Re: HOW TO make names and pictures clickable in subsilver2

Posted: Sat Jan 03, 2009 2:20 am
by mej284
PrinceWords 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 :)
To make the avatar link work like prosilver

Open: veiwtopic_body.html

Find:

Code: Select all

<!-- IF postrow.POSTER_AVATAR -->
				<tr>
					<td>{postrow.POSTER_AVATAR}</td>
				</tr>
			<!-- ENDIF -->
Replace with:

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 -->
For the name same file

Find:

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>
Replace with:

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>

Re: HOW TO make names and pictures clickable in subsilver2

Posted: Sat Jan 03, 2009 6:06 pm
by PrinceWords
umm its weird :? when I try to find what you mentioned it look like this:

Code: Select all

<!-- IF postrow.POSTER_AVATAR --><div class="postavatar">{postrow.POSTER_AVATAR}</div><!-- ENDIF -->
its different than what u wrote...so?

Re: HOW TO make names and pictures clickable in subsilver2

Posted: Sat Jan 03, 2009 10:35 pm
by mej284
PrinceWords wrote:umm its weird :? when I try to find what you mentioned it look like this:

Code: Select all

<!-- IF postrow.POSTER_AVATAR --><div class="postavatar">{postrow.POSTER_AVATAR}</div><!-- ENDIF -->
its different than what u wrote...so?
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.

Re: HOW TO make names and pictures clickable in subsilver2

Posted: Sun Jan 04, 2009 4:10 pm
by PrinceWords
oh, I thought all subsilver2 based style are the same..well, I use Avalon style. why differ?

Re: HOW TO make names and pictures clickable in subsilver2

Posted: Sun Jan 04, 2009 4:26 pm
by mej284
PrinceWords wrote:oh, I thought all subsilver2 based style are the same..well, I use Avalon style. why differ?
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.

Re: HOW TO make names and pictures clickable in subsilver2

Posted: Sun Jan 04, 2009 5:23 pm
by mej284
Open: veiwtopic_body.html

Find:

Code: Select all

<!-- IF postrow.POSTER_AVATAR --><div class="postavatar">{postrow.POSTER_AVATAR}</div><!-- ENDIF -->
Replace with:

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 -->
Find:

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>
Replace with:

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>

Re: HOW TO make names and pictures clickable in subsilver2

Posted: Wed Jan 07, 2009 9:02 pm
by PrinceWords
worked like magic! Thanks so much mej for your time and help :)