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
 Multiple Avatar Entry Problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kgrammer
Starting Member

USA
16 Posts

Posted - 29 October 2009 :  15:44:12  Show Profile  Visit kgrammer's Homepage
I loaded Avatar 1.3 Mod, then Zuel's Avatar Add-on on top of a clean install of Snitz 3.4.07 release. This was an upgrade from 3.4.05 that also had these MODS installed for a day before I updated to 3.4.07.

I have personal uploads set to no and I am not creating subcategories in the Zuel admin section. I only wanted to allow user to set a URL link to remote avatars, which is working as expected.

However, when I go to "Review/Edit Avatars", I see every URL avatar attempt, meaning I may see several different avatars URLs for a single member. I expected to see one... the latest entry... in the table.

I assume that the code is always doing an non-unique insert into the AVATAR table since the system was originally written to allow multiple avatars to be uploaded by a user.

My concern is, of course, that the AVATAR table will get full of a avatar changes that are no longer valid.

Has anyone else seen this problem? Is there an "easy" fix?

Thanks.

Ken Grammer
Used Snitz on SpecRacer.com and GT_RaceCar.com

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 30 October 2009 :  01:41:55  Show Profile
In "inc_avatardata.asp", look for the following line:
				Call addToReviewDB(avatarURL, strDBNTUsername)

Remark it out (put an apostrophe in front of it).
Go to Top of Page

kgrammer
Starting Member

USA
16 Posts

Posted - 02 November 2009 :  11:07:52  Show Profile  Visit kgrammer's Homepage
I think that might work. I'll have a closer look.

Thanks.

Ken Grammer
Used Snitz on SpecRacer.com and GT_RaceCar.com
Go to Top of Page

kgrammer
Starting Member

USA
16 Posts

Posted - 18 November 2009 :  23:32:06  Show Profile  Visit kgrammer's Homepage
Quick follow up...

I looked at just commenting out this line as suggested, but I haven't done that yet. As it turns out, having the "last/current" Avatar setting attempt logged has been a good thing as it's helped me identify problems with people posting linkks that are to web pages and not actual image files. So... what I think needs to be done is a little more coding... as in an add/update where the table gets added if this if the first avatar setting, but gets updated on subsequent changes the avatar.

As I said, having the avatar setting in the file is useful... :)

Ken Grammer
Used Snitz on SpecRacer.com and GT_RaceCar.com
Go to Top of Page

kgrammer
Starting Member

USA
16 Posts

Posted - 22 November 2009 :  22:25:58  Show Profile  Visit kgrammer's Homepage
Well, I pulled the Avatar stuff back out and simplified it back down to allowing each user to set a personal avatar link in their profile. This is all I wanted/needed anyway. I also added code to properly scale the avatars based on their original size so they aren't distorted if they aren't exactly the same sizes as the avatar settings. And I added code to check the avatar link to ensure it is a proper graphic file.

I did keep the admin avatar settings so I can define (or redefine) avatar settings if I need to without having to change code.

Next I plan on using the same image file check/resize code on the user's photos...

Ken Grammer
Used Snitz on SpecRacer.com and GT_RaceCar.com
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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07