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
 bizarre problem with avatars!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ScrubUp
Starting Member

United Kingdom
45 Posts

Posted - 07 December 2006 :  15:28:02  Show Profile  Visit ScrubUp's Homepage
Ok:

Forum version 3.4.5
Avatar mod on succesfully installed
Zules Add on succesfully installed - working fine

Proceeded to play with the rest of the site for some time (cant remember what changes were made, it was ages ago)

Now here is a bizarre problem I having with the avatars.

I go to edit the avatar from my member profile, and on the page, it lists all the categories of avatars I have installed:

eg: Sports, Funny, Sexy etc
It also says how much images are in each category.

But when I click on the category, to view the avatars, nothing shows up.

The upload function works fine, if i upload an avatar, it becomes my avatar, and is in the admin section as normal, but if i were to click on the Private category (to see al my private categories), again the avatars arent displayed.

Have a look at the following images to see if they make sense!



and



I suspect its a problem with avatars_data.asp but what?
Any ideas what to do?!?!!?

ScrubUp
Starting Member

United Kingdom
45 Posts

Posted - 07 December 2006 :  21:00:31  Show Profile  Visit ScrubUp's Homepage
hmm somehow its working now - i dont know what i did, just playing with the files and admin and its working again - certainly have no idea what specific i thing i did to work it

so you may all ignore my post lol

thanks for l@@king! ebay style!
Go to Top of Page

garyrobar
New Member

Canada
90 Posts

Posted - 26 April 2007 :  01:10:51  Show Profile  Visit garyrobar's Homepage
I too am having a similar problem. I'm using the same mod, but avatars uploaded to the public folder are not able to be displayed.

Is anyone familliar with the code? I've narrowed it down to one function, but I have no idea how to fix..
in incAvatarData.asp, there is func called populateCategoryInformation()

Private Sub populateCategoryInformation() 'Determine Method Type
	Dim iCat, iCatCount, categoryResults
	
	categoryResults = getCategoryRecords()
	
	Select Case (boolError) 'Set Postback to Main pg if no Cats Exist
		Case True
			url = "frmAvatarMain.asp"
			Exit Sub
		Case Else: 'Do Nothing
	End Select
	
	If not BoolError Then
		iCatCount = UBound(categoryResults,2)
		
		'Loop Through Record Sets
		For iCat = 0 to iCatCount
			strCatName = categoryResults(0, iCat)
			Select Case (Request.QueryString("Select"))
				Case privateFolderName, "ViewAll"
					If (mLev = 4) Then 
						setCategoryInformation(privateFolderName)
						Exit For
					Else
						'If Strings Don't Match and Loop is on Last Record, Set Avatar Path to 1st Record
						Select Case (iCat = iCatCount)
							Case True
								setCategoryInformation(categoryResults(0, 0))
								Exit For
							Case Else: 'Do Nothing
						End Select
					End If
				Case Else
					Select Case (Request.QueryString("Select") = strCatName)
						' If Strings Match, Set the Avatar Path
						Case True
							setCategoryInformation(strCatName)
							Exit For
						Case Else
							'Do Nothing
							setCategoryInformation(strCatName)
							'If Strings Don't Match and Loop is on Last Record, Set Avatar Path to 1st Record
							'Select Case (iCat = iCatCount)
								'Case True
									'setCategoryInformation(categoryResults(0, 0))
									'cot = iCat
									'coty = iCount
									'Exit For
								'Case Else: 'Do Nothing
							'End Select
					End Select					
			End Select				
		Next
	End If
Exit Sub
End Sub



Basically I figure that it is taking the last case where the comment says "If Strings Don't Match and Loop is on Last Record, Set Avatar Path to 1st Record"

Any suggestions to fix?

SEO For Snitz Forum
Go to Top of Page

garyrobar
New Member

Canada
90 Posts

Posted - 26 April 2007 :  08:53:10  Show Profile  Visit garyrobar's Homepage
Thanks to those who looked,, but i've fixed. All i had to do was change

setCategoryInformation(categoryResults(0, 0))

to

setCategoryInformation(privatefolder)

Since this implies administrator view though, I had to do a little tweaking in incAvatarData.asp incase a non-admin typed an admin command in the querystring manually. I added:

getQueryStringFolder = trim(LCase(Request.QueryString("Select")))
if mlev < 4 AND trim(getQueryStringFolder) = "viewall" then 
			response.redirect("frmAvatarMain.asp?Select=personal&method=Main")

end if

SEO For Snitz Forum
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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07