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
 Error in pop up toaster for the PM mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 04 March 2008 :  12:57:45  Show Profile
Hi I have added the PM mod and the pop up toaster addition, the PM mod works fine but when I have added the pop up toaster I get this error

quote:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.22-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[pmcount] FROM FORUM_MEMBERS , FORUM_PM WHERE FORUM_MEMBERS.M_NAME = 'thelodge' at line 1

/inc_footer.asp, line 119


Line 119 in inc footer asp is

Set rsPM = my_Conn.Execute(strSql)


Can anyone help?

AnonJr
Moderator

United States
5768 Posts

Posted - 04 March 2008 :  13:06:03  Show Profile  Visit AnonJr's Homepage
What does the SQL that its trying to run look like?

right before line 119 add:

Response.Write(strSql)
Response.End


Copy the SQL statement, post it here, and then remove the two lines you just added in the step above.
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 04 March 2008 :  13:13:11  Show Profile  Visit modifichicci's Homepage
for mysql you need this lines

if strDBType = "access" then
strSqL = "SELECT count(M_TO) as [pmcount] "
else
strSqL = "SELECT count(M_TO) as pmcount "
end if

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

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 04 March 2008 :  13:25:45  Show Profile
lines 105 to 120

MessengerTitle = "Webforumz Messenger"
toastSpeed = 20 'how fast the toasts animate... a smaller number = faster
toastActive = 4 'number of seconds to show toast

if strDBType = "mysql" then
   strSqL = "SELECT count(M_TO) as [pmcount] "
else
         strSqL = "SELECT count(M_TO) as pmcount "
end if
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS , " & strTablePrefix & "PM "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'"
strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "PM.M_TO "
strSql = strSql & " AND " & strTablePrefix & "PM.M_READ = 0 "

Set rsPM = my_Conn.Execute(strSql)
pmcount = rsPM("pmcount")
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 04 March 2008 :  13:33:28  Show Profile
Oops I can see the problem now, thanks guys silly me was messing about last week with it and swapped the access to mysql, not sure why.
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 04 March 2008 :  16:04:16  Show Profile  Visit AnonJr's Homepage
Unless pmcount is a reserved word, you shouldn't need the [] in access either... but I'd double check first.
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 11 March 2008 :  12:24:11  Show Profile
There appears to be a slight typo on the readme instructions that comes with the PM AddOn- MESSENGER STYLE TOAST NOTIFICATIONs, it prevents the mail.jpg image displaying in the top left hand corner of the pop-up toaster

Follow all the installation instructions which are very easy. After replacing all the lines as suggested, look for line 153

<img src="<%=strImageUrl%>/mail.jpg" border=0>

amend to remove the /

<img src="<%=strImageUrl%>mail.jpg" border=0>
Otherwise its all fairly straight forward

Edited by - Andy Humm on 11 March 2008 12:27:29
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 10 April 2008 :  22:02:41  Show Profile  Visit leatherlips's Homepage
I'm trying to add this mod but I get this error:

Syntax error 

/forum/inc_footer.asp, line 173

strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strTablePrefix & "PM.M_ID, " &



This error is in the code itself.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 11 April 2008 :  16:45:28  Show Profile
That line is exactly what I have and I do not get the synax error
This is the code Ihave for that line:

strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strTablePrefix & "PM.M_ID, " & strTablePrefix & "PM.M_TO, " & strTablePrefix & "PM.M_SUBJECT, " & strTablePrefix & "PM.M_SENT, " & strTablePrefix & "PM.M_FROM, " & strTablePrefix & "PM.M_READ "
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 11 April 2008 :  16:52:03  Show Profile
Same here, my line is

strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strTablePrefix & "PM.M_ID, " & strTablePrefix & "PM.M_TO, " & strTablePrefix & "PM.M_SUBJECT, " & strTablePrefix & "PM.M_SENT, " & strTablePrefix & "PM.M_FROM, " & strTablePrefix & "PM.M_READ "


and my toaster is working great
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 11 April 2008 :  17:04:18  Show Profile  Visit leatherlips's Homepage
Currently I can not try to fix it as my host is having issues with the server.

But as a side note, has anyone written any code to allow the user to be able to turn off the toaster notification if they did not like it? Something that would be part of their private messageing options? I found one post from a few years ago that said they may do that put I could never find the code.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 11 April 2008 17:05:04
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07