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-11-2001 10:00 PM

--

chrispadfield 04-12-2001 09:13 PM

thanks for writing this out. I have been meaning to add this is and glad you have done.

jojo85 04-12-2001 09:31 PM

Oh :)
Thx you very much guy :D

bokhalifa 04-12-2001 09:33 PM

good hack ;)
thanks

tubedogg

RobAC 04-13-2001 01:24 AM

Hmmmmm....Kevin, when does the email get sent out to the user? I ran a test twice by registering the username of test and I didn't receive the welcome email. It is set to YES in the control panel and the hack installation was successful. It was a breeze to install. Any ideas?

tubedogg 04-13-2001 12:59 PM

If you use email verification, it should get sent after the email is verified. If not, it should get sent right after registration.

Double-check that you saved and reuploaded register.php (I forgot to do this at first...;)).

Other than that, I can't think of any reason why it wouldn't work...You said it appeared in the control panel, which is right. And it's set to yes, which is right.

Hmm...one thing to try. On lines 426 and 498, which should look like this:
Code:

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

                  mail($newuseremail,$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
I can't imagine that would make a difference, though...

RobAC 04-13-2001 01:04 PM

Verifying now....code is all there in register.php. I'll try making the code change you suggest and see what happens. I registered two separate test users last night and did not receive the email. :(

RobAC 04-13-2001 01:23 PM

It worked! Taking that space out after "mail" in the code worked. Don't ask me why, it doesn't make any sense, but I've tested it twice with email verification turned off and on and it worked both times.

However, there is something strange...with email verification turned off, the message starts out as expected:

Welcome test, (test is the username)

With email verification turned on, the message received after verification starts out like this:

Welcome ,

Any ideas?

tubedogg 04-13-2001 01:30 PM

On line 493 of register.php, try changing
Code:

                          $emails = $DB_site->query_first("SELECT email,username FROM user WHERE userid='$u'");
to
Code:

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

RobAC 04-13-2001 01:41 PM

No email sent. :(


All times are GMT. The time now is 10:06 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.01159 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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