Version: 1.0.4, by Andreas
Developer Last Online: Jan 2023
Version: 3.5.0
Rating:
Released: 07-05-2005
Last Update: 10-03-2005
Installs: 960
Uses Plugins
No support by the author.
Automatic Welcome PM
This Hack will automatically send welcome PMs to new members.
Message Title and Body are Phrases (Varname welcomepm in Phrasegroups EMail Subject Text and eMail Body Text), so you can have Messages in different languages.
You can also specify which User should appear as Sender in vBulletin Options / User Registration Options).
Details
1 Product XML
Contributions
German Language Pack by [name]Metro Man[/name]
History
1.0.0
Initial Version
1.0.1
Updated for RC1
1.0.2
Added direct links to the Phrases in vBulletion Options / User Registration Options to make it easier to change the Text.
1.0.3
Fixed a slight Problem that caused PMs not being send under certain conditions
1.0.4
Fixed a Bug that caused PMs not being send on upgraded vBulletin installations.
FAQ
Q: How to I set/change the sender? A: Go to ACP / vBulletin Options / vBulletin Options / User Registration Options.
On the bottom, you will find an input box for the userid that should appear as the sender.
Q: How to I change the message title/body? A: Go to ACP / vBulletin Options / vBulletin Options / User Registration Options.
On the bottom, you will find an input box for the userid that should appear as the sender.
In the description text for this input box, there are links for changing the text.
Q: When I try to install this, I get "Warning: Invalid argument supplied for foreach() in /includes/functions.php on line xxx".
What am I doing wrong? A: You are trying to import the XML as a Plugin which is wrong. It must be imported as a Product (ACP / Plugin System / Manage Products).
Q: Why does this Hack not work? A: Although it is possible that you have discovered a new Bug that causes it not to work, it is more likely that you have made an installation/configuration/customization mistake. Before asking for support, please check:
- Did you enter the Userid of the Sender?
- Does the sender have permission to use PMs?
- Does Usergroup registered have permission to use PMs?
- Are you using the original Phrases?
Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!
Important Notice
This Hack is not designed nor necessary for vBulletin 3.6.
Do not install it on vBulletin 3.6 if you don't want to run into problems.
You should uninstall this Hack before upgrading to vBulletin 3.6
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I'm just wondering whether it would raise even higher conversions if we sent a PM instead of immediately, two days later to welcome the newcomer?
Something which goes like..
"Hi there! We've noticed that you joined us about 2 days ago..and we would like to know how your experience has been. If you haven't introduced yourself already, please do so at XXXX forum."
What do you guys think? Or is there some kind of conditional that i can write in myself...? I'm not that great with codes. :\
hmm, i recently aware that this hack somehow give me error when moderating user.
(I have users waiting for moderation, and when I click accept on some user, it give me the error)
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/....../forums/public_html/includes/class_dm_user.php(1488) : eval()'d code(6) : eval()'d code on line 17
do you have any idea where I should look for problem?
....
there must be something wrong or conflict in the plugin at userdata_postsave.
I just have Add Usergroup as Moderator and Automatic Welcome PM there. Turning Add Usergroup as Moderator off (Automatic WelcomePM) on, it still give me same error.
Turn Automatic Welcome PM plugin at that location off, the error is gone ...
.............
well, it might be conflict with one of my hack, when activating a user, I insert some data into userfield table for the user ... using
$userfieldextradata = array(
'field8' => "$ActivateionNote\n $user[field8]",
'field34' => 2,
'field39' => 2
);
$userdata->set_userfields($userfieldextradata,false,'admin') ;
checking...
BTW. By looking at your 3 plugins, is that true that the Welcome PM will be sent 3 times?
- After Registration
- After Email activation
- After Moderated in AdminCP
If so, and If I just want the PM to send once, can I disable two other plugins?
The PM is only sent once, but there are three Plugins required as there could be different situations where the PM must be sent:
- After Reistration if you don't moderate new memebers and don't verify emails
- After eMail activation if you don't moderate members
- After approval if you moderate members.
it turns out that my PM Content give trouble. I had something like $email and $username in the content, that your PM doesnt like.
anyway, I remove those variables, and it's working now.
Quote:
Originally Posted by Andreas
The PM is only sent once, but there are three Plugins required as there could be different situations where the PM must be sent:
- After Reistration if you don't moderate new memebers and don't verify emails
- After eMail activation if you don't moderate members
- After approval if you moderate members.
... for this, if I just want to send PM when new member just register (even if he need to verify email and moderate), can I disable other two plugin and change the plugin at register_addmember_complete, using the following code?
PHP Code:
if $vbulletin->options['welcomepmuserid']) { // $vbulletin->userinfo['usergroupid'] = 2; $vbulletin->userinfo['permissions'] = cache_permissions($vbulletin->userinfo, false); $fromuser = fetch_userinfo($vbulletin->options['welcomepmuserid']); $registry =& $vbulletin; eval(fetch_email_phrases('welcomepm')); // create the DM to do error checking and insert the new PM $pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_SILENT); $pmdm->set('fromuserid', $fromuser['userid']); $pmdm->set('fromusername', $fromuser['username']); $pmdm->set_info('recept', false); $pmdm->set_info('savecopy', false); $pmdm->set('title', $subject); $pmdm->set('message', $message); $pmdm->set_recipients($vbulletin->GPC['username'], $fromuser['permissions']); $pmdm->set('dateline', TIMENOW); $pmdm->save(); }
or ... options to turn ON/OFF PM at each step (if user need to go through), and use different PMs for each step could be even better )