Print Page | Close Window

mod: automatic welcome pm for new users

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21851
Printed Date: 30 March 2026 at 7:16am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: mod: automatic welcome pm for new users
Posted By: gölge
Subject: mod: automatic welcome pm for new users
Date 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 - 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 http://www.tallarmeniantale.com/ - www.tallarmeniantale.com AND SEE THE TRUTH.
_________________________________________________________________________________________________



Replies:
Posted By: Iridium52
Date Posted: 06 November 2006 at 5:26pm
Thanks for the mod.

This is one I will definitely have to add!

-------------
http://www.essencemontreal.com/ - www.essencemontreal.com


Posted By: Praveen
Date Posted: 08 November 2006 at 6:14pm
Superb But why do you always use badongo. it just..... i donno what to say.

-------------


Posted By: gölge
Date 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...


Posted By: GopCa
Date Posted: 13 November 2006 at 4:46pm
gölge şunu bide Türkçe anlatsan :)) ben anlamadım bişi...

-------------
Türkçe Web Wiz Forum Desteğine http://Gopca.Net - http://Gopca.Net adresinden ulaşabilirsiniz...


Posted By: Praveen
Date Posted: 13 November 2006 at 5:00pm
OK, I got it. No problem with me. Now I learnt how to use.

-------------


Posted By: gölge
Date 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...


Posted By: Ali Bilgrami
Date Posted: 15 November 2006 at 2:52pm
nice mod..thanks

-------------
Lets!


Posted By: ycankasal
Date Posted: 25 November 2006 at 8:43am
thanks you gölge (Gölge Çok Teşşekkürler)


Posted By: xenophine
Date Posted: 23 December 2006 at 4:34pm
golge, do you have this mode for wwf v7.9 ?

-------------
http://www.birdukkan.com - birdukkan.com


Posted By: gölge
Date Posted: 25 December 2006 at 10:19pm
Originally posted by xenophine xenophine wrote:

golge, do you have this mode for wwf v7.9 ?
 
sorry...
just for vers. 8.X


Posted By: T50webmaster
Date Posted: 12 January 2007 at 1:15am
I am New to this MODing part I would like to send a Auto PM to NEWLY registered people
can some one create a file for me form this i am using WWF 8.05 and ACCESS database. my server doesn't have any email component installed
 
I would like the message to say:>>>>>
Please take a moment to annouce yourself to others on the forum by navigating you way to the WHO IS WHO forum and then posting a reply in the WHO IS WHO "post here" topic area.
Soon afterwards doing that You will be Transfered to Scout Rank (By Admin) which allows you to post in other parts of the forum, Once you are Scout Rank feel free to post about things and read things on the forum (Just remember your manners when posting)
Thanks
'The Manager'
<<<<<
thanks a bunch you guys


Posted By: T50webmaster
Date Posted: 16 January 2007 at 4:52pm
Never mind I figured it out
Thanks for the MOD


Posted By: Praveen
Date Posted: 16 January 2007 at 4:53pm
Well & Good!!Smile

-------------


Posted By: bazza
Date Posted: 16 January 2007 at 7:12pm
Very good mate....
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net