Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Help with Zuel's Avatar addon, please!!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

connietalk
Starting Member

United States
14 Posts

Posted - 29 October 2007 :  15:51:35  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
Hi -

I implemented Zuel's Avatar addon, but I cannot get into the settings for it in the Admin panel, because I get this:

Microsoft OLE DB Provider for ODBC Drivers error '80040e37'

[MySQL][ODBC 3.51 Driver][mysqld-4.1.22-max-log]Table 'ctwordpress.FORUM_Avatar_Extension' doesn't exist

/forum/incAvatarFunctions.asp, line 672

ctwordpress is the name of my MySQL table.

Could someone pleeeeeeease help?

Thanks!

Connie<

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 October 2007 :  16:11:41  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Did you execute the dbs file?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

connietalk
Starting Member

United States
14 Posts

Posted - 29 October 2007 :  21:06:29  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
Yes, although I think I had a few code errors I had to correct since, and reuploaded config, topic, adminhome, a few files. Does that matter? Should I put the dbs back and do it again?<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 October 2007 :  03:26:46  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Yeah, you should try that again. Probably you will have errors for the existing tables, but you need to take notice of the errors regarding non existing tables.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

connietalk
Starting Member

United States
14 Posts

Posted - 31 October 2007 :  00:30:14  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
Weird - okay, I did it, and I got no errors, it said table creations were all successful. But then when I try to go into "Zuel's Avatar Addon" in the Avatar Setup, I still get the same message.

Do I maybe need to specify where my current Avatars folder is somewhere, could that be why? Here's what shows around line 672 on the incAvatarFunctions.asp:

	' =======================================================================
	' ===        Grab all the Current Extensions from the Database        ===
	' =======================================================================
	Function getExtensionValues()
		Dim getExtensionRS, strSql
	
		'=== Set Database Connection ===
		Set getExtensionRS = Server.CreateObject("ADODB.RecordSet")

		'=== Build SQL Query ===
		strSql = "SELECT EXTENSION_NAME, EXTENSION_ID FROM " & strTablePrefix & "Avatar_Extension"

		'=== Open Database Connection ===
		getExtensionRS.open strSql, my_Conn 
		
		Select Case (getExtensionRS.EOF)
			Case True : extensionErrors    = True
			Case Else :	getExtensionValues = getExtensionRS.GetRows()
		End Select
		
		'=== Close Connection and Clear Memory ===
		getExtensionRS.Close
		Set getExtensionRS = Nothing
	Exit Function
	End Function


Thank you so much, ruirib!

<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 31 October 2007 :  04:21:10  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Can you have a look at the DB and see if the table is there, maybe using PhpMyAdmin? If it's not there, execute this in PHPMyAdmin:

CREATE TABLE `forum_avatar_extension` (
  `EXTENSION_ID` int(11) NOT NULL auto_increment,
  `EXTENSION_NAME` varchar(100) NOT NULL default '',
  KEY `FORUM_AVATAR_EXTENSION_EXTENSION_ID` (`EXTENSION_ID`)
) ENGINE=MyISAM;
<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

connietalk
Starting Member

United States
14 Posts

Posted - 01 November 2007 :  00:21:59  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
Yup, I checked, and it's showing that the table is there:



My logon for FTP (hosting logon) is different from the one I use for MySQL/php admin and Snitz. Does that matter? I made the MySQL logon and my Snitz admin logon the same, though. Do I have to somehow specify allow privileges in the pHp admin for that table?

I'm also wondering - was I supposed to type a value in the forum_avatar_extension table for what file type extensions are allowed? Like jpg and gif, somewhere?

I maybe should mention that my hosting is with GoDaddy...sometimes they tend to have very specific conflicts, so just thought I'd mention in case it's a red flag. I'm out of ideas

Also, since I implemented Zuel's add-on, members require approval before getting access and show up in the "Members Pending" folder...I want them to be approved automatically. Any idea how to switch that back?

Thank you so much, you are an absolute gem!!



<

Edited by - connietalk on 01 November 2007 01:41:09
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 November 2007 :  05:31:34  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
connie, I'm thinking it may be a name case issue. Your tables have names all in uppercase and the code is using lowercase. Try changing the name of the problem table to uppercase in that piece of code causing you troubles.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

connietalk
Starting Member

United States
14 Posts

Posted - 01 November 2007 :  16:24:52  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
You're a GENIUS!! That is exactly what it was. Unfortunately, there is a new problem...now, when a user clicks on the "Click here to change your avatar," they get this :

Server.MapPath() error 'ASP 0173 : 80004005'

Invalid Path Character

/forum/incAvatarFunctions.asp, line 108

An invalid character was specified in the Path parameter for the MapPath method.

Here's what I have around line 108 in incAvatarFunctions.asp:

' =======================================================================
	' ===           Returns the Number of Avatars from a User             ===
	' =======================================================================
	Function getPersonalAvatarLimit(userID)
		Dim ObjFSO : Set ObjFSO = CreateObject("Scripting.FileSystemObject")

		'=== Precheck For Folder ===
		Select Case (ObjFSO.FolderExists(Server.MapPath(avatarFolderPath & privateFolderName)))
			Case True
				'=== Set File System Object ===
				Set rootFolder    =  ObjFSO.GetFolder(Server.MapPath(avatarFolderPath & privateFolderName))
				Set files		  =	 rootFolder.Files

				For each File in Files
					Select Case (isAvatarMatch(File.Name, UserID))
						Case True: getPersonalAvatarLimit = getPersonalAvatarLimit + 1
						Case Else: '=== Do Nothing ===
					End Select
				Next
<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 November 2007 :  16:35:20  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Not sure about that one, I don't really know the mod that well. Doesn't the mod allow you to the define the avatar folder?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

connietalk
Starting Member

United States
14 Posts

Posted - 01 November 2007 :  17:02:14  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
Uh oh. Yup, I defined it here, at the beginning of incAvatarFunctions.asp:

<%
	'=== Two Global Variables used within both Forms ===
	Dim avatarFolderPath, privateFolderName

	'=== Avatar Path Location - Change If You Wish ===
	'=== Example:  http://yourforumurl.com/forum/avatars/
	'=== Folder MUST be within the Forum Directory ===
	avatarFolderPath = "http://www.connietalk.com/forum/avatars/"

	'=== Private Avatar Folder Name - Change If You Wish ===
	'=== Example:  "Personal", "Secret", "Private" ===
	'=== This is only a NAME not a Directory - Do NOT Include the Slash "/" ===
	privateFolderName = "Personal"

	' ======================================================================
	' ===           Common Functions within frmAvatarMain.asp            ===
	' ===  LAST UPDATE:        July, 2006                                ===
	' ===  LAST FUNC MODIFIED: checkForCategoryRecords()  - CREATED      ===
	' ======================================================================
%>
<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 November 2007 :  17:21:30  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
That's the mistake then. You cannot use an URL. Try this:

avatarFolderPath = "avatars/"
<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

connietalk
Starting Member

United States
14 Posts

Posted - 01 November 2007 :  17:56:34  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
Thank you!!! IT IS WORKING!!

The only problem now is that when the user clicks "Personal" avatars category, none of their personal uploaded avs display...they upload to the server okay but they don't show on their Edit Avatar page when they click to display their personal avs:

frmAvatarMain.asp?Select=Personal&method=Main

Reloads page but doesn't display anything...<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 November 2007 :  18:17:27  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Sorry, don't think I can help with that, as I said, I'm not an expert on that mod.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

connietalk
Starting Member

United States
14 Posts

Posted - 01 November 2007 :  18:43:32  Show Profile  Visit connietalk's Homepage  Send connietalk a Yahoo! Message  Reply with Quote
Alright, I'll work on it, but thank you soooooo incredibly much!

<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07