Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatic Welcome PM Details »»
Automatic Welcome PM
Version: 1.0.4, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

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
  1. 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.
  2. 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.
  3. 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).
  4. 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.

Comments
  #222  
Old 10-17-2005, 09:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
PNG = better format
Why is it better than JPG or GIF?
Reply With Quote
  #223  
Old 10-17-2005, 11:37 AM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Why is it better than JPG or GIF?
Better than .jpg cause it isn't licensed crap.

Better than .gif cause it does transparencies better.

However, it will still suck until M$ releases transparent support for IE. :P
Reply With Quote
  #224  
Old 10-19-2005, 09:48 AM
Salazar's Avatar
Salazar Salazar is offline
 
Join Date: May 2003
Location: Austria
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing, Kirby.
Reply With Quote
  #225  
Old 10-24-2005, 01:20 AM
ryanchua ryanchua is offline
 
Join Date: Apr 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed it and it is a great plugin

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. :\
Reply With Quote
  #226  
Old 10-24-2005, 01:30 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #227  
Old 10-24-2005, 02:28 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check all Plugins you got on Hook userdata_postsave.
Reply With Quote
  #228  
Old 10-24-2005, 02:33 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #229  
Old 10-24-2005, 03:07 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #230  
Old 10-24-2005, 03:29 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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->userinfofalse);     
    
$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'$vbulletinERRTYPE_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 )
Reply With Quote
  #231  
Old 10-24-2005, 03:40 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only one PM is being sent, so you don't have to modify anything.

The default phrase does work just fine, so if yours doesn't you must have edited it incorrectly
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05100 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete