Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - mod: automatic welcome pm for new users
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

mod: automatic welcome pm for new users

 Post Reply Post Reply Page  12>
Author
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Topic: mod: automatic welcome pm for new users
    Posted: 06 November 2006 at 5:01pm
this mod sends automaric welcome private messages to new registered user.
 
installation:
-just replace register.asp file with your own.
 

link:
http://www.badongo.com/file/1668752
 
if your register.asp file modified and you dont wanna replace then:
 
-first find that code at register.asp (it must be at about line 1130's):
Quote
 'Send the e-mail using the Send Mail function created on the send_mail_function.inc file
blnSentEmail = SendMail(strEmailBody, decodeString(strUsername), decodeString(strEmail), strMainForumName, decodeString(strForumEmailAddress), strSubject, strMailComponent, false)
End If

 
add that code after it:
Quote
'WELCOME PM MOD BY GÖLGE//////////////////////////////////////////
'THE MOD STARTS FROM HERE/////////////////////////////////////////
 
  If strMode = "new" Then
  
    Dim blnMessageSent
    Dim stryonetici
    Dim intyonetici
    blnMessageSent = False
    
    'SQL to get the new Author_ID from the database
    strSQL = "SELECT " & strDbTable & "Author.Author_ID, " & strDbTable & "Author.username " & _
    "FROM " & strDbTable & "Author" & strDBNoLock & " " & _
    "ORDER BY " & strDbTable & "Author.Author_ID DESC" & strDBLimit1 & ";"
 
    'Query database
    rsCommon.Open strSQL, adoCon
 
                         'Read back in the user ID for the activation email
                         lngUserProfileID = CLng(rsCommon("Author_ID"))
       rscommon.movelast
       stryonetici = rscommon("username")
       intyonetici= CLng(rsCommon("Author_ID"))
 
                         'Close rs
                         rsCommon.Close
    
 
                        'if you dont like it write your own welcome message
                        strEmailBody = strTxtHi & " " & decodeString(strUsername) & _
                        vbCrLf & vbCrLf & "<br><br>Welcome to "& strMainForumName & _
                        vbCrLf & vbCrLf & "<br>"& strTxtEmailThankYouForRegistering & " " & strMainForumName & "." & _
      vbCrLf & vbCrLf & "<br>You can send your questions, offers and wishes about our site with private message..."& _
                        vbCrLf & vbCrLf & "<br><br>Forum Administrator"& _
      vbCrLf & vbCrLf & "<br><a href=""member_profile.asp?PF="&intyonetici&"""><b>"&stryonetici&"</b><a/>"
    
 'Initalise the SQL string (ADO is used for more security)
 strSQL = "SELECT" & strDBTop1 & " " & strDbTable & "PMMessage.* " & _
 "FROM " & strDbTable & "PMMessage" & strRowLock & " " & _
 "WHERE " & strDbTable & "PMMessage.Author_ID = " & lngUserProfileID & " " & _
 "ORDER BY " & strDbTable & "PMMessage.PM_Message_date DESC" & strDBLimit1 & ";"
 
With rsCommon
 
  'Set the Lock Type for the records so that the record set is only locked when it is updated
  .LockType = 3
 
  'Open the recordset
  .Open strSQL, adoCon
 
  'Check to make sure the message is not already sent to the user
  If NOT .EOF Then
   If strEmailBody = rsCommon("PM_Message") Then blnMessageSent = True
  End IF
 
  'Save the pm
  If blnMessageSent = False Then
 
   'Add new record to recordset
   .AddNew
   
   .Fields("Author_ID") = lngUserProfileID
   .Fields("From_ID") = intyonetici
   .Fields("PM_Tittle") = "Welcome"
   .Fields("PM_Message") = strEmailBody
   .Fields("PM_Message_date") = internationalDateTime(Now())
   .Update
   
   'Update booleon that message is sent
   blnMessageSent = true
   
  End If
 
  'Clean up
  .Close
 End With
 
 'Update the number of unread PM's for the recepient
 Call updateUnreadPM(lngUserProfileID)
 
 
                End If
'WELCOME PM MOD BY GÖLGE///////////////////////////////////////
'THE MOD ENDS AT HERE/////////////////////////////////////////

 
that is all.
 
Note: mod sends pm if activation e-mail property is disabled.
 
 
 
________________________________________________________________________________________________
THE ARMENIANS SAY THEY WERE MURDERED BUT DOCUMENTS TELL DIFFERENT. THE DOCUMENTS ARE FULL OF WOMEN,
BABIES AND CHILDREN PHOTOS THAT RAPED,KILLED AND BURNED WILDLY BY ARMENIAN TERRORISTS.
PLEASE VISIT www.tallarmeniantale.com AND SEE THE TRUTH.
_________________________________________________________________________________________________


Edited by gölge - 27 December 2006 at 11:21pm
Back to Top
Iridium52 View Drop Down
Newbie
Newbie


Joined: 06 November 2006
Location: Canada
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Iridium52 Quote  Post ReplyReply Direct Link To This Post Posted: 06 November 2006 at 5:26pm
Thanks for the mod.

This is one I will definitely have to add!
Back to Top
Praveen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 December 2005
Location: India
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote Praveen Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2006 at 6:14pm
Superb But why do you always use badongo. it just..... i donno what to say.
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2006 at 6:50pm
Originally posted by Praveen Praveen wrote:

Superb But why do you always use badongo. it just..... i donno what to say.
 
i donno wy but i liked it. i hate rapidshare
if you cant download from badongo, just tell me, i can upload another host site...
Back to Top
GopCa View Drop Down
Newbie
Newbie


Joined: 03 May 2006
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote GopCa Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2006 at 4:46pm
gölge şunu bide Türkçe anlatsan :)) ben anlamadım bişi...
Back to Top
Praveen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 December 2005
Location: India
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote Praveen Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2006 at 5:00pm
OK, I got it. No problem with me. Now I learnt how to use.
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2006 at 8:08pm
yeni üyelere otomatik hoşgeldiniz mesajı yolluyor. (yalnız aktivasyon maili özelliğinin açık olmaması lazım).
 
Originally posted by Gopca Gopca wrote:

gölge şunu bide Türkçe anlatsan :)) ben anlamadım bişi...


Edited by gölge - 13 November 2006 at 8:38pm
Back to Top
Ali Bilgrami View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 April 2005
Location: Pakistan
Status: Offline
Points: 492
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ali Bilgrami Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2006 at 2:52pm
nice mod..thanks
Lets!
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.