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
 Problem with avatar
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

grass
Starting Member

8 Posts

Posted - 31 August 2002 :  13:23:11  Show Profile
I've got a problem after installig the latest avatar mod, y board version is 3.4.01

The problem is That the threat-starter's avatar never appears the board doesn't find the pic but if the threatstarter reply's his avatar is shown. What could be the problem here ?

Greetz Grass

dayve
Forum Moderator

USA
5820 Posts

Posted - 31 August 2002 :  14:12:14  Show Profile  Visit dayve's Homepage
there are two places in topic.asp that the avatar code must go, one for Topic and one for Replies. Please re-read and verify or post a link to a text copy of your topic.asp

Go to Top of Page

grass
Starting Member

8 Posts

Posted - 31 August 2002 :  16:19:16  Show Profile
I've checked the file but I don't think I've made a mistake Here is a linkt to a txt version of topic.asp http://www.studiant.be/clubmega/forum/topic.asp.txt

Greetz Grass
Go to Top of Page

vesse
New Member

United Kingdom
69 Posts

Posted - 31 August 2002 :  17:05:43  Show Profile  Visit vesse's Homepage  Send vesse an AOL message  Send vesse an ICQ Message
Your problem is that where the Avatar code has been included for the thread starters post you've used the variable Reply_MemberAvatar again instead of Member_Avatar and the IF statement for this avatar uses Reply_MemberAvatar instead of Member_Avatar. The erronous code can be found where you've modified the Sub getFirst() within topic.asp

Corrected Code:
if Member_Avatar <> "noavatar.gif" then
response.write" <img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """>"
end if

I also noticed that on the following line to that you seem to have the code for Member Country wrong as well as thats used Reply_MemberCountry instead of the correct Member_Country.

Corrected Code:
response.write " <p><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Country & "</small></font><br />" & vbNewLine & _

That should solve your problem!


By The Way:

I notice that this implementation of Avatars is essentially very similar to the one I have on my forum based on an upgraded version of Avatar Version 2 for Snitz 3.3.03. (Thus the Width, Height and Border are stored in a DB table and Avatars are also stored in a DB table for users to select from and the URL then stored in the M_AVATAR_URL field like in this Avatar Implementation.

Where did the code for your Avatar MOD come from as I'd be interested in comparing?

Building Web Systems for a new Generation @ http://www.vdesign-studios.com
webmaster@vdesign-studios.com
rvesse@hotmail.com
rvesse@dhtmlshock.com

Edited by - vesse on 31 August 2002 17:10:59
Go to Top of Page

grass
Starting Member

8 Posts

Posted - 01 September 2002 :  09:17:02  Show Profile
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33690

Thx for the help it's working fine now
Go to Top of Page

grass
Starting Member

8 Posts

Posted - 01 September 2002 :  10:06:00  Show Profile
I've Got another problem everything works fine but the avatars appear twice on the reply.
Is this also in topic.asp ??? the link to topic.asp still works
Go to Top of Page

MDGamezz
Junior Member

USA
100 Posts

Posted - 01 September 2002 :  11:55:05  Show Profile  Send MDGamezz an AOL message  Send MDGamezz an ICQ Message
I have not yet even looked at installing avatars on 3.4 so I'm just making a judgement based on what I know from earlier versions.

Look at line 585 - 592.



Response.Write	"                </p>" & vbNewLine
		 	if MemberAvatar <> "noavatar.gif" then
		 	response.write"		<img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """>"
		 	end if 
		 	Response.Write	"                </p>" & vbNewLine
		 	if Reply_MemberAvatar <> "noavatar.gif" then
		 		    response.write"		<img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """>"
		 	end if


From what I can see you have posted the code twice in this area.
Remove the code in red.

I'm going to download the avatars mod an take a look just to make sure.

********* Short Time Passes **********************
Remove the red as stated above.
The instructions only show this code being placed there.

Response.Write	"                </p>" & vbNewLine
		 	if Reply_MemberAvatar <> "noavatar.gif" then
		 		    response.write"		<img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """>"
		 	end if



MDGamezz

Edited by - MDGamezz on 01 September 2002 12:10:48
Go to Top of Page

grass
Starting Member

8 Posts

Posted - 07 September 2002 :  13:44:28  Show Profile
thx m8 everything works fine now

topic can be closed

Edited by - grass on 07 September 2002 13:45:00
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.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07