phpBBHacks.com - [BETA] Welcome PM on First Login
Rate your favorite (and least favorite) sodas at SodaRatings.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Add Us:     MySpace     Facebook     StumbleUpon
Username:    Password:
Remember Me?    
[BETA] Welcome PM on First Login
Goto page 1, 2  Next
BlinkList
del.icio.us
Furl
linkaGoGo
reddit
Simpy
Mister Wong
Yahoo! My Web

Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Hack Development
 See a User Guidelines violation? Please contact us.
Author Message

DualFusion
New User

Joined: 22 Apr 2007
Posts: 12

PostPosted: April 22nd 2007, 2:42 pm    Post subject: [BETA] Welcome PM on First Login Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger

bonelifer
Experienced User

Joined: 21 Oct 2004
Posts: 301

PostPosted: April 22nd 2007, 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message

Thoul
VIP

Joined: 30 Jul 2002
Posts: 17676
Location: USA

PostPosted: April 22nd 2007, 7:42 pm    Post subject: Reply with quote

I second the login suggestion. I know from first hand experience with a similar phpBB 2 mod that it is a useful feature, especially if a forum gets hit by registration spam bots.
_________________
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
View user's profile Send private message Visit poster's website

DualFusion
New User

Joined: 22 Apr 2007
Posts: 12

PostPosted: April 23rd 2007, 2:07 pm    Post subject: Reply with quote

I see, i will make an add-on, then!!

[EDIT]I made the add-on!! Link
Back to top
View user's profile Send private message Send e-mail MSN Messenger

DualFusion
New User

Joined: 22 Apr 2007
Posts: 12

PostPosted: May 22nd 2007, 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger

Thoul
VIP

Joined: 30 Jul 2002
Posts: 17676
Location: USA

PostPosted: May 23rd 2007, 4:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website

DualFusion
New User

Joined: 22 Apr 2007
Posts: 12

PostPosted: May 24th 2007, 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger

Thoul
VIP

Joined: 30 Jul 2002
Posts: 17676
Location: USA

PostPosted: May 25th 2007, 11:38 am    Post subject: Reply with quote

I used 0.1, so I didn't run into that error. It worked fine, even with my little tweaks.
_________________
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
View user's profile Send private message Visit poster's website

DualFusion
New User

Joined: 22 Apr 2007
Posts: 12

PostPosted: May 29th 2007, 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger

DualFusion
New User

Joined: 22 Apr 2007
Posts: 12

PostPosted: June 1st 2007, 10:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Hack Development All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB.it - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - PhotoshopForums.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - DrGregHouse.com - Bad Boy Blog - BadBoyForums.com - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Staff - User Guidelines >

Copyright © 2001-2008. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. Hosted by 100MegsWebHosting. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.