vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE v2] Auto-Welcome Email to New User (https://vborg.vbsupport.ru/showthread.php?t=13857)

tubedogg 04-13-2001 01:46 PM

On lines 493-495, try changing
Code:

                          $emails = $DB_site->query("SELECT email,username FROM user WHERE userid='$u'");
                          $email = $emails[email];
                          $username = $emails[username];

to this
Code:

                          $email = $userinfo[email];
                          $username = $userinfo[username];


RobAC 04-13-2001 01:58 PM

Bingo! Nice job Kevin. It works great now!

-Rob

tubedogg 04-13-2001 02:02 PM

It seems odd that no one else ran across this error mine...is no one else using email verification? Or is it just no one has installed it? :D Anyway I fixed the problem both in the instructions and the zip file.

RobAC 04-13-2001 02:23 PM

Oh oh......I just had a new member sign up and I received the welcome email! LOL Time to go look at the code again.... :)

Wayne Luke 04-13-2001 02:39 PM

Why not use $bbuserinfo[userid] and $bbuserinfo[email]. Would cut down on the number of queries needed in fact it should eliminate any extra queries.

These should contain valid data if the member is already registers.

jojo85 04-13-2001 02:50 PM

I prefer to wait the final release before install this hack cause the final release come soon :)...i hope :rolleyes:

tubedogg 04-13-2001 04:21 PM

Quote:

Originally posted by wluke
Why not use $bbuserinfo[userid] and $bbuserinfo[email]. Would cut down on the number of queries needed in fact it should eliminate any extra queries.
These should contain valid data if the member is already registers.

$userinfo contains the same info during verification
Code:

  $userinfo=verifyid("user",$u,1,1);
which is why I used that. The other time it would happen (when verification is not required) I don't use any queries.

Rob: I think I found the problem, maybe. On line 497, try changing this
Code:

                  mail($newuseremail,$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
to this
Code:

                  mail($email,$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");

RobAC 04-13-2001 05:05 PM

Nice job once again Kevin. Works great. I verified it with different email addresses. thanks!!!

M. James 04-13-2001 05:25 PM

Thanks for the hack, Kevin! I was looking for something like this, but unfortunately, there isn't really a need, IMO, because you can vBulletin to verify all new user's e-mail, but just change the permissions so users awaiting e-mail confirmation can still view everything. Then, just edit the confirmation templates and viola, you have your own welcome message.

Jaxsdad 04-18-2001 01:47 AM

I followed this to a T...NOTHING! I tried it several times tonight and got NO email!

I KNOW I did everything like you said, but it still doesnt work! It is checked YES in the CP and register.php was saved and uploaded to the server to the admin area.

I really want this to work...it would save me from doing it manually (Which I do EVERYTIME a new user signs up)!


All times are GMT. The time now is 05:37 PM.

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.01022 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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