|
|
| Author |
Message |
DualFusion
New User
Joined: 22 Apr 2007
Posts: 12
|
Posted: April 22nd 2007, 2:42 pm Post subject: [BETA] Welcome PM on First Login |
|
|
MOD Title: Welcome PM on First Login
MOD Description: Allows the admin configure a welcome private message that will be sent out to newly registered users on their first login.
MOD Version: 0.2.0
MOD Download: phpBBModders
Screenshots:
ACP
New Message (Header)
New Message (UCP)
Current Features:
- Dynamic Variables
- {USERNAME}
- {USER_IP}
- {USER_REGDATE
- {USER_EMAIL}
- {SITE_NAME}
- {SITE_DESC}
- Enable/Disable MOD
- Specify User
- BBCode Enabled
- Smiley Enabled
- Preview
Credits: Igor, for helping me so very much!
Last edited by DualFusion on May 22nd 2007, 2:15 pm; edited 2 times in total |
|
| Back to top |
|
 |
bonelifer
Experienced User
Joined: 21 Oct 2004
Posts: 301
|
Posted: April 22nd 2007, 7:35 pm Post subject: |
|
|
| Don't have a board to test it on but it would probably be nice to be able to have it only send the PM if they login, should be switchable. Ie, Automatically send it upon registration or upon FIRST LOGIN of NEWLY registered user. |
|
| Back to top |
|
 |
Thoul
VIP

Joined: 30 Jul 2002
Posts: 17676
Location: USA
|
|
| Back to top |
|
 |
DualFusion
New User
Joined: 22 Apr 2007
Posts: 12
|
Posted: April 23rd 2007, 2:07 pm Post subject: |
|
|
I see, i will make an add-on, then!!
[EDIT]I made the add-on!! Link |
|
| Back to top |
|
 |
DualFusion
New User
Joined: 22 Apr 2007
Posts: 12
|
Posted: May 22nd 2007, 2:17 pm Post subject: |
|
|
Updated the MOD! Now it has add-on integrated!! And I also needed to update the mod files to meet the phpBB MOD Team's requirements.  |
|
| Back to top |
|
 |
Thoul
VIP

Joined: 30 Jul 2002
Posts: 17676
Location: USA
|
Posted: May 23rd 2007, 4:12 pm Post subject: |
|
|
I tried this last night. It works great, I'm very happy with it. I do have a couple of suggestions, though.
After I did the DIY step, I couldn't find any links to the mod in the ACP. I had to go back to the module management and click "Enable" to get the mod going. You might want to mention in the DIY that "Enable" needs to be clicked. Btw, if you'd like to include a file to do the SQL install and clear the cache automatically, check the generator link in my sig.
You may want to add variable parsing on subject, to allow PM subjects like "Welcome to {SITE_NAME}!" This is the subject I used with the phpBB 2 Welcome PM mod. I had to tweak the code to get this to work.
The last suggestion I have revolves around how the settings are stored. You're keeping everything in the phpbb_config table, which is good. The downside is that it limits the welcome message to 255 characters. In my message, I like to point people to important areas of the forum using links. A short message with 3 links was around 1000 characters.
So, you might consider looking at ways to allow longer messages. The phpBB 2 WPM mod stored the settings in a separate table with a TEXT column for the setting values. I tweaked my install to do this too. It took a few extra changes in functions.php and adding a table to constants.php, but it works well for me. _________________ Phantasy Star: The Fringes of Algo
Install, remove, or upgrade SQL with Advanced DB Update Generator! Now with phpBB 3 Support!
My phpBB Books, Hacks, and Other Works «·» 70+ Listings @ phpBBHacks.com |
|
| Back to top |
|
 |
DualFusion
New User
Joined: 22 Apr 2007
Posts: 12
|
Posted: May 24th 2007, 5:22 pm Post subject: |
|
|
Thank you for trying it out
I thought I put in the DIY to enable it, hmm. Now, in RC1 you wouldnt need to go through those steps now to delete the cache, you can just go into the ACP index and there is an input button that will purge the cache instantly. As for the sql, I was planning on doing that too... sometime
Someone requested that the subject should also parse the variables.
I was also planning on doing a new table as I was aware of that recently.
Thank you for testing my mod. And I dont know which version you recieved but I recently updated the mod. I had an error in includes/functions.php
Do the following to fix it:
| Code:
|
OPEN:
includes/functions.php
FIND:
includes/ucp/functions_wpm.php
REPLACE WITH:
includes/functions_wpm.php
|
If you do not change this, your users will not be able to register and will get an error instead. |
|
| Back to top |
|
 |
Thoul
VIP

Joined: 30 Jul 2002
Posts: 17676
Location: USA
|
|
| Back to top |
|
 |
DualFusion
New User
Joined: 22 Apr 2007
Posts: 12
|
Posted: May 29th 2007, 10:35 am Post subject: |
|
|
Ok well I will try to make an update as soon as possible for the subject and database tables, if i get a chance any time soon  |
|
| Back to top |
|
 |
DualFusion
New User
Joined: 22 Apr 2007
Posts: 12
|
Posted: June 1st 2007, 10:51 am Post subject: |
|
|
For the next version, I will add more features, and most likely a "special feature". I will add more dynamic variables like {USER_IP}. I will also implement a new db table, and for the subject to parse the dynamic variables as well.
Think about it hard, I am going to start doing the special feature in a little while, and after that, I am going to update this sucker, and after, there will be no more updates for a while.
And if with this feature, anyone gets an error, then it will be my fault and not your fault this time, ok? Well, most likely
And if you are thinking of dynamic variables, phpBB3's user class variables can be found here
I was also thinking of adding:
- {USER_ID}
- The user id of the user.
- May be used along with [url] tag to leave a link to users' profiles.
- {USER_LANG}
- Shows which is the language that the user prefered/chose.
- {USER_TZ}
- Tells the user what time zone he/she is in
Any more are welcome!! But remember if it is going to be based on the user class variables found in the link above, remember it is also based on the user's response in the registration form. And it doesnt have to be based on the user class at all, like the {SITE_NAME} and {SITE_DESC}. If you want others, post them, and we'll talk about it here.
And as for the "special feature", it will automatically install the mod or update it if you already have it installed  |
|
| Back to top |
|
 |
|