[FINAL] Welcome PM on First Login (WPM) 2.2.6

Viewtopic, viewforum, posting related hacks and MODs.
Viewing topics, forums, or posting add-ons.

[FINAL] Welcome PM on First Login (WPM) 2.2.6

Postby ..::Frans::.. » 19 Jan 2008, 08:57

Classification: Add-on
phpBB Part: ACP / Other

MOD Name: Welcome PM on First Login
MOD Version: 2.2.6 (2012/12/04)
Author: ..::Frans::..(was abandoned by DualFusion)
MOD Description: Allows the admin to configure a welcome private message that will be sent out to newly registered users on their first login.

Works with:
  • phpBB 3.0.0 up to 3.0.11

Notes:
  • Users using version 2.2.5 of this mod only need to overwrite the old includes/functions_wpm.php file

Features:
  • 100% PHPBB3 compatible!
  • ALL BBCodes installed can be used in the PM Welcome Message
  • ALL Smilies installed can be used
  • Text size/color can be normally used
  • BBCodes can be used by pressing the installed BBCode buttons
  • Sender name can be changed
  • Shows up in INBOX receiver
  • Shows up in sent messages BOX sender
  • Will be sent AFTER first login of the new user (so no unnessecary PM's get stored until needed)
  • LARGE PM's are possible (currently text can be 65535 characters) and this can even be expanded

Language: English. Other languages/translations available in viewtopic.php?f=101&t=4699 with many thanks to the translators. :good:

Licence: GNU General Public License v2

Screenshots: See below

Installation Level: Medium
Installation Time: ~ 5 Minutes
Format: MOD / MODX
Download File:
WPM_226.zip
(489.78 KiB) Downloaded 294 times


Previous versions of WPM downloaded 5321 times

Update/Uninstall instructions from any version PRE 2.2.4 are inside the package inside the contrib directory.
Users who had earlier versions (before 2.1.2A) installed MUST uninstall the old version before using the latest version.

I encourage ALL users to upgrade to this latest version 2.2.6!

Changes since 2.1.1 ALPHA
  • Few minor bugfixes
  • Fixed bug with languages that use non-standard characters (greek/french etc.)
  • Cleaned up code
Changes since 2.1.2
  • Few minor bugfixes
  • Made some changes to coding so objects are used correct way
  • Forgot to give Dualfusion proper credit in the ModX file (shame on me!)
  • Added PM Notification support so the new user WILL get a popup message when logging on the first time
  • There were 2 spots in the code that didn't have spaces around the dots. Added spaces.
  • Changed all apostrofs in the install text to backticks.
  • Changed version number to 2.2.0 to reflect the correct version number.
  • Cleaned up code
Changes since 2.2.0
  • Fixed all coding according to the coding guidelines
  • Fixed the nasty bug that was getting back to me when users with multibyte characters got ??? instead of the normal text
  • Cleaned up code
Changes since 2.2.1
  • Few minor bugfixes
  • Some minor changes to repair compatibilty with version 3.0.1
  • Fixed more coding according to the coding guidelines
  • Fixed modx/mod files to reflect some minor errors (tabs and spaces)
Changes since 2.2.2
  • Fixed a small but rather nasty bug where in rare cases banned people could log on.(Thnx go to WhiteWolfSix!)
Changes since 2.2.3
  • Changed package to be compatible with the new ModX 1.2.0 Format.
  • Made mod completely phpbb 3.0.2 compatible
  • changed package to be compatible with the new ModX 1.2.0 Format.
  • Made mod completely phpbb 3.0.2 compatible
Changes since 2.2.4
  • Changed package to be compatible with the new ModX 1.2.2 Format.
  • Made mod completely phpbb 3.0.5 compatible
  • Repack for phpbb.com validation
  • Installs correctly with automod RC1
Changes since 2.2.5
  • Changed package to be compatible with the ModX 1.2.5 Format.
  • Compatibility Release with phpBB 3.0.11
  • Fixed 6th parameter calling pm_notification function
  • Fixed 2 typo's in english language file
  • Removed user_options part (not needed anymore)
  • Installs correctly with automod version 1.0.0.1


If you have any comments, please let me know!

1. Preview of some of the BBCodes that can be used inside a PM
1.jpg


2. Easy use of fields in ACP WITH preview mode
acp-1.png


3. Easy use of smilies
acp-2.png


4. Overview of usable Variables on ACP Page
acp-3.png


5. Correctly displays number of new messages
board-1.png


6. Integrates correctly into PM Inbox receiver
board-2.png


7. Nicely formatted PM
board-3.png


8. Shows correctly in Sent Messages Sender
board-4.png


9. Same nicely formatted PM insent messages sender...
board-5.png


Thanks go to LadySaraJane for testing the mod (more than once!!!) and DualFusion for letting me use part of his old code... :good:

26-11-2008: On a rare occasion people are having trouble with the SQL inside the mod text. Jaymie1989 found that entering the next query will sometimes do the trick (still have to find out what the difference is though)

Code: Select all
INSERT INTO phpbb_wpm (wpm_config_id, wpm_enable, wpm_send_id, wpm_preview, wpm_variables, wpm_subject, wpm_message, wpm_version) VALUES(1, 1, 2, 0, '', 'Welcome to {SITE_NAME}!', 'Hello, [b]{USERNAME}[/b]!\n\nWelcome to {SITE_NAME}  ({SITE_DESC})\n\nYou registered on [b]{USER_REGDATE}[/b]. According to your input, your email is [b]{USER_EMAIL}[/b] and you live in timezone [b]{USER_TZ}[/b]. It is nice to know that you speak {USER_LANG_LOCAL}.\n\nYou can contact us here: {BOARD_CONTACT} or here: {BOARD_EMAIL}, whichever you prefer, at anytime. Thank you for choosing us.\n\n-Thank you for registering at {SITE_NAME}!\n\nThanks, {SENDER}', '2.2.5');   
Attachments
WPM_225.zip
(484.86 KiB) Downloaded 1617 times
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby DualFusion » 19 Jan 2008, 10:09

Hey Frans,

Nice to know many people liked my mod! :D Don't worry if I don't approve ;) I am actually OK with it, as long as I am credited. According to the license, you can take my original mod and do anything you want with it as long as its not commercial. So it's ok, ofcourse :) Hmm, even though I don't use bulletin boards (I used to mod because I was bored, not because I used it :P) I don't think that if there is a board that receives many registrations on a daily basis that the sender should receive all of those PM's, since it does waste a lot of space. So, you can probably make that an option. Can I suggest one more variable? {SENDER} for the person who sent it. It can be used like this:

Thanks,
{SENDER}
or something. ;)

I am very proud of you, Frans. And I definitely approve, since you did do this in a short amount of time, and way before Tim (T50) :P *Sorry Tim*

Thanks,
Kevin.
WHAT SHOULD I DO!!!!!!!!!!!!!!!
DualFusion
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 146
Joined: 09 Apr 2007, 18:06
Gender: Male

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby ..::Frans::.. » 19 Jan 2008, 10:25

Thanx Kevin,

Nice to hear such a nice compliment from you...and í will add the {SENDER} var immediately....

:hello:
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby John Hjorth » 19 Jan 2008, 10:28

Just booting inn a footnote here :

as long as its not commercial.


Kevin, If your original MOD is released under GPL2, it may even be for commercial use.
Image Image ImageImage
User avatar
John Hjorth    
STG Moderator
STG Moderator
 
Posts: 1587
Joined: 27 Oct 2006, 22:23
Location: Odense, Denmark, EU
Favorite Team: Olympus DK Team
Gender: Male
phpBB Knowledge: 7

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby ..::Frans::.. » 19 Jan 2008, 10:46

added 2 vars:

{SENDER} which gives the username from the sender and {BOARD_SIG} which is the email board signature, used in emails..... ;)
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby Ladysarajane » 19 Jan 2008, 10:55

I'll try this one now! :grin:
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby ..::Frans::.. » 19 Jan 2008, 11:15

waiting.....waiting......nerves.....waiting....... :banghead2:
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby Ladysarajane » 19 Jan 2008, 12:07

Works great on a board that doesn't have Version 1 install.....
Now working on the best way ( :scratch: or should I say easiest way) to install it on a board that has version 1 installed.

If you completely undo Version 1, it runs fine. I am going to try to see if you must undo all the edits from version 1 (((runs back to localhost computer to work on it some more))
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby ..::Frans::.. » 19 Jan 2008, 15:15

I added the correct posting MOD template, all info, uninstall files for old versions and a download to the new package. Have fun!
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9

Re: [ALPHA] Welcome PM on First Login (WPM) GOLD Compatible

Postby T50Webmaster » 19 Jan 2008, 18:34

Good job frans!
however did you happen to fix the issue with the enable/disable...

that didn't work in kevins 2.0.0 version...

also, Yes i am planning on working on this, it's just that 2,000 USD a semester for school is sorta of a big deal, I don't want to have to pay for it again,
I am trying to get my websites taken careof then I have to cleanup my PC's and perhaps get a a bgger flash drive so i can work from anywhere...
sorta limited on space on my current ones...
Next weekend I have to clean up the basement room and stuff.. go through 4 years of school stuff and get rid of the junk!... then maybe setup a nice area for me to work on this stuff... kinda hard when my parents are divorced and i am not at the same place all the time...

Plus I have some matainence work to do on my van! I need a muffler.. the orig (18 YO) is sorta junk....
pssst...I heard that!!!
Free and paid webhosting
Busy with life, just IM me, or PM me at 110mb.com/forum

Webmaster of a Northeast Wisconsin Boy Scout Troop Website, http://bsat50.info
T50Webmaster    
MOD Author
MOD Author
 
Posts: 629
Joined: 26 Mar 2007, 11:09
Location: Right where my Butt IS!!!
Favorite Team: phpbb
Gender: Male
phpBB Knowledge: 3

Next

Return to Topic, Forum, Posting MOD Downloads

Who is online

Users browsing this forum: No registered users and 3 guests