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
 Inserting avatar url into blank table fields
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dabugster
Junior Member

USA
168 Posts

Posted - 24 September 2005 :  17:19:01  Show Profile  Visit dabugster's Homepage  Send dabugster an AOL message  Send dabugster a Yahoo! Message
I have been searching and testing for about 2 hours and i cannot come up with an aswer to this problem.

I have avatars installed on my board but they are not required so some users don't have the feild filled in.
But i want to insert this url into the fields that are left blank.


I searched around and found an email fix that ruirib posted for some one here:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=59077#322565

And i tried to adapt it to do what i wanted it to do, but i have had no luck so far.

Anyone have a suggestion or the corect code that i need to run for this?

Thanks

BUG

Edited by - dabugster on 24 September 2005 17:22:01

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 24 September 2005 :  17:30:31  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Here's a quick solution; simply change the code in topic.asp to display the icon you posted for those members who have no avatar selected.


Find the following code in topic.asp:
		 	if Reply_MemberAvatar <> "noavatar.gif" then
		 		    response.write"		<img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />"
		 	end if

and replace it with the following code:
		 	if Reply_MemberAvatar <> "noavatar.gif" then
		 		    response.write"		<img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />"
			else
		 		    response.write"		<img src=""path_to_your_no_avatar_image"" width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />"
		 	end if


Now find the following code:
		if Member_Avatar <> "noavatar.gif" then
		 		    response.write"		<img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />"
		end if

and replace it with the following code:
		if Member_Avatar <> "noavatar.gif" then
		 		    response.write"		<img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />"
		else
		 		    response.write"		<img src=""path_to_your_no_avatar_image"" width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />"
		end if


Replace the red code with the path/url to the image you want to display for members without avatars.

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

dabugster
Junior Member

USA
168 Posts

Posted - 25 September 2005 :  00:20:33  Show Profile  Visit dabugster's Homepage  Send dabugster an AOL message  Send dabugster a Yahoo! Message
Thanks OWM

That worked perfectly!
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 25 September 2005 :  07:51:21  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

dabugster
Junior Member

USA
168 Posts

Posted - 25 September 2005 :  12:30:15  Show Profile  Visit dabugster's Homepage  Send dabugster an AOL message  Send dabugster a Yahoo! Message
I know it was something stypid, but it kinda irked me to see no avatar on peoples post. Plus i have an old GML or Crash (forget who did it originally) mod where the members avatar is displayed on the members.asp page and i was tired of looking at a bunch of little red x's!
LOL
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.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07