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
 Avatar Mod
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

jgs
New Member

Netherlands
95 Posts

Posted - 19 January 2009 :  13:39:39  Show Profile
I've installed the Avatar Mod on the 3.04.6 version.

At first glance it worked, but I'm having some troubles.

1. The avatar shows up in the profiles but not in topic. How do them make show up in topics?

2. Is it normal you have permanently a selectionlist in your own profile? Once selected the image stays in the profile (as does the selectionlist).

3. I've made a avatarsupload and a avatars dir. When installing images from avatarsupload, I get the OK. But the avatar name can be selected, the image shows only after moving the images by hand from avatarsupload to avatars.

Are there modifications nessacary for the laters version?<

Info about my forum: http://www.govvd.nl/forumsoftware.htm list of Mods included.
Most of userinterface translated into Dutch.

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 19 January 2009 :  13:59:27  Show Profile
Edit your topic.asp file as follows to make the avatar show on topics as well as replies.

Search for this line in "topic.asp" (appx 767):
	if strCountry = "1" and trim(Member_Country) <> "" then

Immediately above it, insert the following:
	if (Member_Avatar > " ") and (Member_Avatar <> "1") and (Member_Avatar <> "noavatar.gif") then
		Response.Write "<table width=""" & intAvatarWidth & """ height= """ & intAvatarHeight & """ cellspacing=""0"" cellpadding=""0"" border=""0"" style="" background-image: url('" & Member_Avatar & "');background-repeat: no-repeat; background-position: center;"">" & vbNewLine & _
					"	<tr>" & vbNewLine & _
					"			<td align=""center""><img src=""" & strImageURL & "noavatar.gif"" width=""96"" height=""96"" border=""0""></td>" & vbNewLine & _
					"		</tr>" & vbNewLine & _
					"	</table>" & vbNewLine

	end if


Search for this line in "topic.asp" (appx 562):
			if strCountry = "1" and trim(Reply_MemberCountry) <> "" then

Immediately above it, insert the following:
			if Reply_MemberAvatar="1" then Reply_MemberAvatar="noavatar.gif"
			if Reply_MemberAvatar <> "noavatar.gif" then
				Response.Write "<table width=""" & intAvatarWidth & """ height= """ & intAvatarHeight & """ cellspacing=""0"" cellpadding=""0"" border=""0"" style="" background-image: url('" & Reply_MemberAvatar & "');background-repeat: no-repeat; background-position: center;"">" & vbNewLine & _
					"	<tr>" & vbNewLine & _
					"			<td align=""center""><img src=""" & strImageURL & "noavatar.gif"" width=""96"" height=""96"" border=""0""></td>" & vbNewLine & _
					"		</tr>" & vbNewLine & _
					"	</table>" & vbNewLine
			end if
<
Go to Top of Page

jgs
New Member

Netherlands
95 Posts

Posted - 19 January 2009 :  15:10:20  Show Profile
Thanks, it solved the problem.
I've solved the second by adding the gallery.

Any comment on the third point.

Meanwhile I've encoutered another problem. I do have the avatars, but with the broken link symbol in the top left corner. Now I found a topic on this (standard noavatar) but can't find it back.<

Info about my forum: http://www.govvd.nl/forumsoftware.htm list of Mods included.
Most of userinterface translated into Dutch.
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 19 January 2009 :  22:55:05  Show Profile
Can you post a link to a snapshot of the error? That'll give me some idea of where to look.

You need to replace the image file "noavatar.gif" from Zuel's Avatar mod or download it from here. Copy it into your default forum image directory.<

Edited by - Carefree on 19 January 2009 23:04:31
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 19 January 2009 :  23:00:26  Show Profile
As far as the manual movement of avatars, the "mass avatar add" function works to move them in bulk using the admin panel.<
Go to Top of Page

jgs
New Member

Netherlands
95 Posts

Posted - 20 January 2009 :  00:31:16  Show Profile
quote:
Originally posted by Carefree
You need to replace the image file "noavatar.gif" from Zuel's Avatar mod or download it from here. Copy it into your default forum image directory.



I get the trick (transparant avatar), but now I have the little red cross, (different PC).
I'm afraid it needs a little tumbling around, somewhere .......

Found it (thanks to IE instead of Firefox) It was looking for noavatar.gif in the standard forum image directory, not in an avatar directory


Thanks.<

Info about my forum: http://www.govvd.nl/forumsoftware.htm list of Mods included.
Most of userinterface translated into Dutch.

Edited by - jgs on 20 January 2009 00:38:03
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 20 January 2009 :  01:09:06  Show Profile
You're welcome. Glad it's working.<
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 20 January 2009 :  02:33:59  Show Profile
hello... good day to all... :)

about jgs problem "add mass avatar" problem, im also having the same problem with it, its not transferring or adding the avatar to the assigned oldfolder.... its still stays in the newfolder where the newavatars are kept and then the link of the avatars are now assigned in that newfolder.

and i also encountered some prob with the database, when i erase or delete the avatar in the admin panel, its not erasing the avatar in the assigned folder and also in the database.... i followed the installation properly, but no luck at all.... :( the only way i can delete or erase it is by manual removal...

<

Edited by - phoenixtaz13 on 20 January 2009 02:36:58
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 20 January 2009 :  13:42:26  Show Profile  Visit modifichicci's Homepage
ad mass avatr doesn't move files, only write in the db the new location. Files have to be moved manually.
Deleting an avatar doesn't delete the file, only the db entry.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 29 January 2009 :  15:48:13  Show Profile
oh i see, got it... :)

thanks for your time....

btw, im getting this error

Syntax error in INSERT INTO statement.
/forum/avatar_upload.asp, line 200

it points out to this...
200 dbConn.Execute (strSql),,adCmdText + adExecuteNoRecords


im clueless on what to do....
<

Edited by - phoenixtaz13 on 29 January 2009 15:49:50
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 29 January 2009 :  15:53:58  Show Profile  Visit modifichicci's Homepage
put a response.write strSql before that line ans see what string you have<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 29 January 2009 :  17:02:26  Show Profile
quote:
Originally posted by modifichicci

put a response.write strSql before that line ans see what string you have



how?... sorry for the dumbness, im new to asp...

like this:
response.write"(strSql),,adCmdText + adExecuteNoRecords"<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 29 January 2009 :  18:31:50  Show Profile
No, simply
Response.Write	strSql
Response.End


That will cause the page to stop outputting any data and print the content of the Sql string so we can determine where the problem is.<
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 30 January 2009 :  07:40:50  Show Profile
Did what u told me.

this is the thing that came out:
INSERT INTO FORUM_AVATAR (A_URL, A_NAME, A_MEMBER_ID, A_CATID) VALUES ('/forum/oldavatars/angel.jpg', 'angel', 0, )


i installed the avatar add-on of sisl
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=59564

thanks for ur time....


quote:
Originally posted by Carefree

No, simply
Response.Write	strSql
Response.End


That will cause the page to stop outputting any data and print the content of the Sql string so we can determine where the problem is.

<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 January 2009 :  07:47:10  Show Profile  Visit HuwR's Homepage
you seem to have no value for A_CATID whaich is why it is failing<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 30 January 2009 :  07:47:55  Show Profile
There shouldn't be a comma after the 0 there. Can you post the lines immediately preceding that that are building the strSql string so we can show you what to remove?

Ignore the above; I looked at it the wrong way and counted the values incorrectly

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 30 January 2009 07:49:13
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07