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

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

JJR512 04-18-2001 04:03 AM

Tubedogg, you are an excellent hacker. However, I won't be using this hack for two reasons.

1. I have email verification on, so every new member gets an email already. If I want to include a welcome message in it, I could change a template, I think. I think two emails is unnecessary.

2. I (and my members) prefer a more personal touch than some auto-generated thing. Whenever a new person registers, whoever sees the new name first will post a welcome message to that member in our main chatting forum. Other people will reply with their own greetings. I don't think we've missed anyone in a long time (OK, we only have 190-some members and have been opened only 11 months, but still...)

You registered on my board, and there was a welcome message to you. You never posted anything, so I don't even know if you saw it. In case you missed it, look here: http://www.jjr512.com/forums/showthr...light=tubedogg :)

tubedogg 04-18-2001 03:43 PM

You're right I never saw it :) I registered for whatever reason to test something and then just never posted. I have been busy lately, that's why I haven't been pumping out the hacks as much as usual ;) but I have more free time as of today so hopefully it's back to great hacking!

maverick1236 05-24-2001 02:39 AM

everything is set up ok-but no welcome email is sent
also:
$emails = $DB_site->query_first("SELECT email,username FROM user WHERE userid='$u'");

i dont even see that line in my register.php

Spoker 05-28-2001 08:24 PM

Does this hack work on the vbulletin final release?

c0bra 05-29-2001 04:20 PM

I was just gonna ask the same question. :)

RobAC 05-29-2001 09:56 PM

Yes. I'm running it on my Forums. Works great.

Spoker 05-30-2001 04:40 AM

tnx,
i'll check it out

freehtml 06-01-2001 10:33 AM

I had installed this hack for vB 2.0.0 final, also no email send

Eficrx 06-01-2001 02:56 PM

free html i just registered and it worked for me

Eficrx 06-01-2001 03:48 PM

it doesnt seem to work for me on vb 2.0 :mad:

freehtml 06-01-2001 11:32 PM

Quote:

Originally posted by Eficrx
free html i just registered and it worked for me
maybe its because I had enable the verify email option?

Eficrx 06-01-2001 11:44 PM

it doesnt seem to work for me either way i really want this hack too =(

Eficrx 06-04-2001 12:30 PM

yeah i think because you had the email option on.

kirck 06-04-2001 06:54 PM

can't get this hack to work. I have double checked all the files but the emails are not being sent. I have run tests by registering as test but no luck. a little help please?

Eficrx 06-04-2001 08:03 PM

same problem with me

kirck 06-04-2001 08:18 PM

I got it, I did not turn off the email notification in the control panel.:rolleyes:

Eficrx 06-04-2001 08:35 PM

i installed it wrong :D works now i got confused

kdog316 06-07-2001 03:24 PM

when a member signed up on my board i recieved the e-mail:confused:

RobAC 06-07-2001 03:30 PM

Go back through this thread because I had a similar problem and Tubedogg explained how to fix it.

kdog316 06-07-2001 03:43 PM

worked thanks


All times are GMT. The time now is 04:08 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.01256 seconds
  • Memory Usage 1,790KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_quote_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
  • (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