Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Using avatar as a link to profile
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

i011877
Junior Member

Denmark
169 Posts

Posted - 20 July 2006 :  14:50:12  Show Profile  Visit i011877's Homepage
Hey guys

I am using the avatar-MOD and have a question?

When viewing a topic I would like to have the avatar work as a link to the users profile, instead of clicking their name.

Is this difficult to alter?


laser
Advanced Member

Australia
3859 Posts

Posted - 21 July 2006 :  08:18:06  Show Profile
Not difficult at all. Where you add the avatar code to topic.asp there will be a link to the profile. Just change that

If you don't know how to change the code let me know !
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 22 July 2006 :  18:26:12  Show Profile  Visit i011877's Homepage
Well, I haven't tried it yet :)
Could it be an issue if the user do not have an avatar?

I guess it's this code that have to be altered:
if StrShowAvatar = "1" then
			if not Reply_MemberAvatar = "" then
			Response.Write "<br /><img width=""" & Reply_MemberAvatarW & """ height=""" & Reply_MemberAvatarH & """ src='" & Reply_MemberAvatar & "'><br />"
			end if


Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 22 July 2006 :  20:51:40  Show Profile
That looks pretty close to me
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 23 July 2006 :  04:13:15  Show Profile  Visit i011877's Homepage
Eeeh.. could I bother you to alter the code?

http://www.myforum.dk/topic.txt


Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 23 July 2006 :  17:57:05  Show Profile
Will do tonight ... that's in about 12hrs from now
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 26 July 2006 :  04:04:36  Show Profile  Visit i011877's Homepage
Reminder!


Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 26 July 2006 :  04:29:25  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Find the following code (approx. lines 765-771):

			'#######Avatar Start########
			if StrShowAvatar = "1" then
			if not Reply_MemberAvatar = "" then
			Response.Write "<br /><img width=""" & Reply_MemberAvatarW & """ height=""" & Reply_MemberAvatarH & """ src='" & Reply_MemberAvatar & "'><br />"
			end if
			end if
			'#######Avatar End##########


and replace it with the following code:

			'#######Avatar Start########
			if StrShowAvatar = "1" then
			if not Reply_MemberAvatar = "" then
			Response.Write "<br /><a href=""pop_profile.asp?mode=display&id=" & Reply_MemberID & """><img width=""" & Reply_MemberAvatarW & """ height=""" & Reply_MemberAvatarH & """ src='" & Reply_MemberAvatar & "'></a><br />"[/red]
			end if
			end if
			'#######Avatar End##########


Now find the following code (approx. lines 985-991):

	'#######Avatar Start########
	if StrShowAvatar = "1" then
	if not Member_Avatar = "" then
	Response.Write "<br /><img width=""" & Member_AvatarW & """ height=""" & Member_AvatarH & """ src='" & Member_Avatar & "'><br />"
	end if
	end if
	'#######Avatar End##########


and replace it with the following code:

	'#######Avatar Start########
	if StrShowAvatar = "1" then
	if not Member_Avatar = "" then
	Response.Write "<br /><a href=""pop_profile.asp?mode=display&id=" & TMember_ID & """><img width=""" & Member_AvatarW & """ height=""" & Member_AvatarH & """ src='" & Member_Avatar & "'></a><br />"
	end if
	end if
	'#######Avatar End##########

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 26 July 2006 :  05:07:27  Show Profile  Visit i011877's Homepage
Top nice!
Works 100%

It does make a 2pxl black border around the avatar though. How do I remove that? <border=""0""> somewhere or..?



Edited by - i011877 on 26 July 2006 05:13:40
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 26 July 2006 :  05:53:37  Show Profile  Visit i011877's Homepage
Got it:
'#######Avatar Start########
	if StrShowAvatar = "1" then
	if not Member_Avatar = "" then
	Response.Write "<br /><a href=""pop_profile.asp?mode=display&id=" & TMember_ID & """><img width=""" & Member_AvatarW & """ height=""" & Member_AvatarH & """ src='" & Member_Avatar & "' border=""0""></a><br />"
	end if
	end if
	'#######Avatar End##########

Thanks again


Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 26 July 2006 :  06:51:58  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
You're welcome.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 26 July 2006 :  08:10:36  Show Profile
Woops !!! ... forgot

I know it's working now, but pop_profile was what I was thinking of but the code was just doing a function call.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07