HOW TO make names and pictures clickable in subsilver2

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

HOW TO make names and pictures clickable in subsilver2

Post 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 :)
If You Still have The power to smile..You have everything... :)
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

Re: HOW TO make names and pictures clickable in subsilver2

Post 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>
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

Re: HOW TO make names and pictures clickable in subsilver2

Post 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?
If You Still have The power to smile..You have everything... :)
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

Re: HOW TO make names and pictures clickable in subsilver2

Post 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.
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

Re: HOW TO make names and pictures clickable in subsilver2

Post by PrinceWords »

oh, I thought all subsilver2 based style are the same..well, I use Avalon style. why differ?
If You Still have The power to smile..You have everything... :)
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

Re: HOW TO make names and pictures clickable in subsilver2

Post 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.
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

Re: HOW TO make names and pictures clickable in subsilver2

Post 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>
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

Re: HOW TO make names and pictures clickable in subsilver2

Post by PrinceWords »

worked like magic! Thanks so much mej for your time and help :)
If You Still have The power to smile..You have everything... :)
Locked

Return to “[3.0.x] Styles Support & Discussion”