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)

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


All times are GMT. The time now is 10:47 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.01684 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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