vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Automatic Welcome PM (https://vborg.vbsupport.ru/showthread.php?t=91729)

Bounce 10-09-2005 02:17 AM

/me installs in under 5 mins

Top Job :squareeyed:

secret1980 10-09-2005 04:22 AM

now it works :D installed :D

Dutchmang 10-09-2005 05:45 AM

This should go into the base product as an option.

>installs<

bhxtyrant 10-09-2005 06:21 AM

Hey kirby,I have a suggestion that i think would be nice for this mod.I think it would be nice to not only allow you to choose from a user as sender but also usergroups.Would this be possible?

u4ea 10-09-2005 11:26 AM

very nice thank you very much.

Rich 10-09-2005 03:31 PM

Hello,

I too fall into the category of "doesn't work on my gold version". My site is heavily modified, so that may be part of the reason. I also have several different usergroups than the stock that came with the site. (registered users are still 2 and awaiting email confirmation is 4.)

Some of the mods I have installed are: vbspell, left column, category spacing, pp donations, custom messages in the header depending upon post count, vba cmps, vba gallery, and custom WAOL locations to name a few. (There are many more.)

I also made modifications of my own, so I can't really say what could be causing the PM's not to be sent. (The only modifications I have made that involve the PM section would be the left column setup I have in the USERCP SHELL template, and the vbspell addition for new pm's.)
Hopefully you can find a conflict with one of those listed. Good luck.

Forumi Shqiptar 10-09-2005 05:28 PM

where exactly can i find this mode in admincp as i cant locate it sorry for my stupid question guys.

Many thanks in advance

dutchbb 10-09-2005 05:50 PM

Hm try to install again and this time it works :) strange, but still a great hack! Ty

Andreas 10-09-2005 06:24 PM

@iganairs
I don't know and I can't fix it - sorry.
But feel free to send me a PM with an ACP login and i'll take a look.

hotrod1 10-10-2005 01:25 AM

Vb products are so awesome, just one upload and you are done but anyway thanks for a great hack!

Jacuma 10-10-2005 01:01 PM

awesome installed!!!

Rich 10-10-2005 01:17 PM

Hello,

Kirby got mine working good as pie. (Thanks again Kirby!) I like this feature. Its a good way to express some policies to the members. lol

Julie 10-10-2005 07:34 PM

Excellent, works perfectly! :) Thanks!

Quillz 10-10-2005 07:47 PM

This is a very useful hack, made even better by the fact it's a plug-in! Just installed, and I'll be installing it on my live board as soon as I upgrade from 3.0.9.

bigmonay2k 10-16-2005 02:16 AM

thanks, how can I edit it, put my own Messages??

akanevsky 10-16-2005 09:17 PM

Why does everyone post screens as PNG lately (sorry for offtopic, but I wanna know)? :)

Andreas 10-16-2005 09:34 PM

PNG = better format :)

akanevsky 10-16-2005 09:37 PM

Yes, I know, but everyone started doing it at once... Unless it is enforced, I don't see how that'd happen :P

Andreas 10-16-2005 09:51 PM

I can only speak for myself:
I've "always" used PNG.

akanevsky 10-16-2005 10:05 PM

I didn't notice that before..
Maybe it's just that vbulletin.org stopped displaying them as thumbnails?

Boofo 10-17-2005 09:59 AM

Quote:

Originally Posted by KirbyDE
PNG = better format :)

Why is it better than JPG or GIF?

fly 10-17-2005 11:37 AM

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

Salazar 10-19-2005 09:48 AM

Thanks for sharing, Kirby.

ryanchua 10-24-2005 01:20 AM

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. :\

mtha 10-24-2005 01:30 AM

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.

Andreas 10-24-2005 02:28 AM

Check all Plugins you got on Hook userdata_postsave.

mtha 10-24-2005 02:33 AM

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?

Andreas 10-24-2005 03:07 AM

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.

mtha 10-24-2005 03:29 AM

:( 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 :) )

Andreas 10-24-2005 03:40 AM

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 :)

mtha 10-24-2005 03:55 AM

Quote:

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

I know that there's one PM is sent, but I set so that member have to verify email and waiting for moderation, and in my case, I want to send the PM right when he is registered (not wait until the account is moderated).

That's why I want to modify the conditions, so that the PM is sent right after registration (given that the system will ask for email verification and moderation)

Quote:

The default phrase does work just fine, so if yours doesn't you must have edited it incorrectly :)
yeah, that's what I said, I had $email and $username in the text ... (copy from what I used for the same purpose on vB3.0.x) that give the error :)

Andreas 10-24-2005 03:56 AM

Doesn't make much sense - moderated/unactivated members can't use PM :)

mtha 10-24-2005 04:53 AM

Quote:

Originally Posted by Andreas
Doesn't make much sense - moderated/unactivated members can't use PM :)

shouldnt they still be able to read, should they?

my point is,
- sometime when they register, even with a notice that they need to check their email, they may still not be aware of that
- many time, activation email went to BULK MAIL, esp. with yahoo email, so that a PM remind them that they should also check the bulk mail could help.
- Despire that we have TnC before registration, and instruction on how the account activation and process go, people still ignore it, and ask why their account is not activated. A general FAQ doesnt really help much, so a PM to them specifically, would work better. In the PM, I would include what they need to know, or where to look for, if they have questions, trouble activating account ....

so, it's not really an welcome PM, it's some kind of instruction PM :P

Andreas 10-24-2005 05:02 AM

Well, you can either activate their PM (then they can also send) - or you deactive their PM (then they can't read).
As I don't enable PM for unactivated members for security reasons, it wouldn't work for me :)

mtha 10-24-2005 10:10 AM

Kirby,

:) if I want to do it my way, should it works if I do the above changes?

Thanks man

Andreas 10-24-2005 12:20 PM

Yes, should work.

The Chief 10-24-2005 02:00 PM

installed and works great!!

Flow Fusion 10-28-2005 02:31 PM

Gret hack thanks!

Hanif 11-01-2005 07:14 PM

Works like your first night of marriage hit with mountains of passion with your ideal dream woman !!!

U Rock Kirby !

Installed !

Jon@Refresh 11-01-2005 08:58 PM

Hi everyone.

we're using the latest version of the product and have it all working. Except that the PM received email says the PM has come from the user that just registered. I know this was a problem before, but I thought it had been fixed in a new version of vB (we're using Gold)? If it isn't fixed, can the PM received email be disabled for this PM (it's not really needed)?

Thanks :)


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01985 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete