Author |
Topic |
endomorph
Junior Member
United Kingdom
128 Posts |
Posted - 16 March 2008 : 03:24:51
|
I have seen requests before for this but not sure if anyone did anything, so I did.
This MOD will send a PM to all new registrations - A "Welcome to our site" kind of message.
In register.asp, look for the following code -
if strEmail = "1" and strEmailVal = "1" then 'Do Nothing else Call DoCount end if
regHomepage = ""
Immediately above this, insert the following code -
'<!-- Send Welcome PM Message -->
' First lets get the members ID strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.M_EMAIL " strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.MEMBER_ID " strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS" strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_EMAIL like '" & chkString(Request.Form("Email"),"SQLString") & "'" set rs = my_Conn.Execute (strSql)
' This is the string for your welcome PM subject welcomepmsubject = "Welcome to ...."
' This is the string for your welcome PM message welcomepmmessage = "Welcome to ...."
' Do not change these strpmtoid = rs("MEMBER_ID") strpmrid = "1" TF = "0"
strSql = "INSERT INTO " & strTablePrefix & "PM (" strSql = strSql & " M_SUBJECT" strSql = strSql & ", M_MESSAGE" strSql = strSql & ", M_TO" strSql = strSql & ", M_FROM" strSql = strSql & ", M_SENT" strSql = strSql & ", M_MAIL" strSql = strSql & ", M_READ" strSql = strSql & ", M_OUTBOX" strSql = strSql & ") VALUES (" strSql = strSql & " '" & welcomepmsubject & "'" strSql = strSql & ", '" & welcomepmmessage & "'" strSql = strSql & ", " & strpmtoid strSql = strSql & ", " & strpmrid strSql = strSql & ", '" & DateToStr(strForumTimeAdjust) & "'" strSql = strSql & ", " & TF strSql = strSql & ", " & "0" strSql = strSql & ", '" & 0 & "')"
my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords set rs = nothing '<!-- Send Welcome PM -->
Thats it ! Easy
< |
Need help with your Snitz ? Most Snitz & ASP custom coding undertaken. Email for info | Search Engine Optimisation |
|
leatherlips
Senior Member
USA
1838 Posts |
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 19 March 2008 : 18:59:50
|
Leatherlips, I have the same error message and it pin points to same line strpmtoid = rs("MEMBER_ID")
Uninstalled at the moment... BTW I have the same PM mod as yours too..< |
|
|
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 19 March 2008 : 19:05:31
|
He's using a function of an older version of snitz.< |
coaster crazy |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 03 May 2008 : 21:50:53
|
Hey leatherlips,
I haven't forgotten about your e-mail question. I've been at appointments all week. I get back to you soon. If I take too long, give me a holler.
Etymon < |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 04 May 2008 : 05:36:06
|
Hmm, I'm now getting this error upon conformation of registration (http://www.bandlink.net/forum/register.asp?actkey=):
Microsoft OLE DB Provider for SQL Server error '80040e10'
No value given for one or more required parameters.
/forum/register.asp, line 388
The line being: my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
Is this because I have other MODs involved? I have a timezone adjust MOD and a captcha MOD installed.< |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Topic |
|