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/O Code)
 PM Mod - Welcome Message
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 18 February 2005 :  17:32:27  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
I am working on a function that automatically send a new registering user a welcome PM, but I've gotten stuck somehwere in the middle I created a file called inc_func_pm , and right now it contains the following function:

<deleted>

(Does this belong in the DEV forum?)<

eXtremeGossip

Edited by - Jorrit787 on 19 February 2005 19:34:48

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 19 February 2005 :  14:03:30  Show Profile  Visit MarkJH's Homepage  Reply with Quote
Best of luck with this MOD, Jorrit. There is a Welcome PM MOD available here but it hasn't been updated for four years. Would be a great feature! <

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 19 February 2005 :  19:33:22  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
I'm having trouble getting the MEMBER_ID to send the Welcome PM to from the database. Right now the code I have is this:
	'### Forum SQL - Get the Member ID to send the Welcome PM to
	strSql = "SELECT MEMBER_ID FROM " & strTablePrefix & "MEMBERS "
	strSql = strSql & " WHERE M_WPMSENT = 0 " 

	set rsMember = my_conn.Execute(strSql)

	strPMNID = rsMember

	RsMember.close
	set RsMember = nothing

Is this the right way to select the MEMBER_ID and to pass it on to PMNID (the value that determines to whom the PM is sent) <

eXtremeGossip

Edited by - Jorrit787 on 20 February 2005 18:05:40
Go to Top of Page

TStewartFan
Junior Member

190 Posts

Posted - 19 February 2005 :  23:15:33  Show Profile  Visit TStewartFan's Homepage  Reply with Quote
I took out that widdle pm mod out from my site so I don't know for sure if anything if this will be right but it outta be close. Two things with this sql statement which presents a problem....what happens if there is never a value of 0?!? You will get an error page that the statement is true so you need an if else statement. And the second it doesn't appear as if it is saving anything. Try something like this:

'### Forum SQL - Get the Member ID to send the Welcome PM to
strSql = "SELECT MEMBER_ID FROM " & strTablePrefix & "MEMBERS "
strSql = strSql & " WHERE M_WPMSENT = 0 "

set rsMember = my_conn.Execute(strSql)
do while not rsMember.EOF
myMember = rsMember ("MEMBER_ID")

'the action you want to perform goes here

rsMember.MoveNext
loop
rsMember.close
set RsMember = nothing

Essientially this will run through the database and perform an action if a member has a value = to 0. Also be sure within the loop to update the value to 1 otherwise the loop will run forever. Again this is just an educated guess based on past sql statements I have had to write but since I don't have the mod installed anymore I can't test the theory out for you. Good luck!<

If You Have to Ask, You Wouldn't Understand.
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 20 February 2005 :  13:11:09  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
quote:
Originally posted by TStewartFan

what happens if there is never a value of 0?!? You will get an error page that the statement is true so you need an if else statement.
I only call the function on register.asp after the userinfo has either been (1) added directly to the members table with M_WPMSENT = 0 or (2) removed from the members pending table and added to the members table with M_WPMSENT = 0, so the statement is always true for at least one member when the function is called. In fact, it is only designed to handle one at a time (I think).
quote:
And the second it doesn't appear as if it is saving anything.
The code above is not the whole code... I'm not that dense

I think I'm about done... I'll do some final bug-checking and then I'll post the MOD here. So far the MOD sends the new user a welcome PM and it notifies Admins of the new member's registration.<

eXtremeGossip

Edited by - Jorrit787 on 20 February 2005 18:49:14
Go to Top of Page

mortioli
Average Member

United Kingdom
898 Posts

Posted - 31 August 2005 :  11:05:05  Show Profile  Visit mortioli's Homepage  Send mortioli an AOL message  Send mortioli a Yahoo! Message  Reply with Quote
This MOD is just what I needed, so was wondering if you managed to complete it?

Thanks,
Oli<
Go to Top of Page

mortioli
Average Member

United Kingdom
898 Posts

Posted - 05 September 2005 :  13:53:51  Show Profile  Visit mortioli's Homepage  Send mortioli an AOL message  Send mortioli a Yahoo! Message  Reply with Quote
*bump* ?<
Go to Top of Page

mortioli
Average Member

United Kingdom
898 Posts

Posted - 08 September 2005 :  13:27:39  Show Profile  Visit mortioli's Homepage  Send mortioli an AOL message  Send mortioli a Yahoo! Message  Reply with Quote
Sorry to bump again, but does anyone know if this was ever continued please?

Thanks<
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 08 September 2005 :  16:16:07  Show Profile  Visit MarkJH's Homepage  Reply with Quote
Sounds like you might be better off emailing Jorrit. Would be a very nice MOD to have available, that one.<

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 13 November 2005 :  16:13:02  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
Several people have emailed me about this; I am not working on this any more.<

eXtremeGossip
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 13 November 2005 :  17:31:56  Show Profile  Visit MarkJH's Homepage  Reply with Quote
Hmm. Maybe you could post what you have? A lot of people would be interested in this and it's a shame that it was left in limbo after:

quote:
I think I'm about done...
<

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 13 November 2005 :  17:49:22  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
I lost the preliminary package I had made in a hard disk crash a while ago, and it's been too long since I have even looked at it, so I doubt that I would be able to re-assemble it.

From what I remember it was not all that difficult of a venture, so why don't you (or someome else) give it a shot yourself? I'll see if I can help in case you get stuck.<

eXtremeGossip
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 13 November 2005 :  17:57:50  Show Profile  Visit MarkJH's Homepage  Reply with Quote
quote:
I lost the preliminary package I had made in a hard disk crash a while ago
Ooh, that's bad luck. Sorry to hear that.<

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 13 November 2005 :  17:59:36  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message  Reply with Quote
quote:
Originally posted by MarkJH

quote:
I lost the preliminary package I had made in a hard disk crash a while ago
Ooh, that's bad luck. Sorry to hear that.

Not if Mr. Me had been smart enough to make some backups <

eXtremeGossip
Go to Top of Page

giorgiuss
Starting Member

Italy
3 Posts

Posted - 24 January 2006 :  03:58:34  Show Profile  Reply with Quote
Hi :-)
Any news about this great mod?<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 24 January 2006 :  04:38:18  Show Profile  Visit modifichicci's Homepage  Reply with Quote
I have a copy of the
Unofficial MOD for MWP1.2 made by DarkLord

but I don't know if I can share it.. I cannot reach the author.
If our admins think I can share, I'll do it.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07