Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
email to welcome new members Details »»
email to welcome new members
Version: 1.00, by mfacer mfacer is offline
Developer Last Online: Jan 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-22-2003 Last Update: Never Installs: 3
Is in Beta Stage  
No support by the author.

hey,

I have been looking for literally hours for this hack, but had no luck.... so I have used some old code and modified it to work.... so, here is what I did for vB version 2.3.2:

in register.php find the following code: (about line 570)

PHP Code:
eval("standardredirect(\"".gettemplate("redirect_registerthanks")."\",\"".iif(strpos($url,"register")>0,"index.php?s=$session[sessionhash]",$url)."\");"); 
(btw... I have guessed at the vb code and php markers.. cos the WYSIWYG editor kept giving me errors when I used the buttons!)

then right above, put:

PHP Code:
//send an email to the new user
eval("\$message = \"".gettemplate("welcomeemail")."\";");
eval(
"\$subject = \"".gettemplate("welcomeemailsubject")."\";");
        
vbmail ($email,$subject,$message); 
then in the vB admin, create a new template and call it "welcomeemail" and put something like:

Code:
Dear $username,
Welcome our Forums! 
message goes here!
Kind Regards,
Your Team
note the single line returns, cos when the email was sent, it put double lines in..?!

then create another template called "welcomeemailsubject" and put something like

Code:
Welcome to our Forum!
upload the register.php file and bobs your uncle.... it works!!

(hopefully)!!!

Hope it works for others!

Matt Facer
(mfacer)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-23-2003, 10:12 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I may install this one in a bit, but by looking at code it looks good.
Reply With Quote
  #3  
Old 09-23-2003, 10:47 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As asked for here https://vborg.vbsupport.ru/showthread.php?t=57316

To add their password in the welcome mail, while in register.php find
Code:
  $password = trim($password);
Under it place
Code:
$passwordemail=$password;
In the welcomeemail template add $passwordemail where you want it to show so for instance.
Code:
Dear $username,
Welcome our Forums! 
You have signed up with the following information:
Username: $username
Password: $passwordemail
More welcome stuff here.
Kind Regards,
Your Team
Hope that helps
Reply With Quote
  #4  
Old 09-23-2003, 10:40 PM
mfacer mfacer is offline
 
Join Date: Aug 2003
Location: Manchester, UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one insanctus, looks good!
Reply With Quote
  #5  
Old 09-24-2003, 02:02 PM
iceman-x iceman-x is offline
 
Join Date: Nov 2002
Location: NOrWAY
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it works fine.
If you are not yousing:
"Verify Email address in registration" have to be off.

Is it posible to make it to work whit dis setting on.

Nice work !
Reply With Quote
  #6  
Old 09-24-2003, 02:15 PM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To do this, with it to send password at a later time it would have to be stored non encrypted, which I personaly would never do for a hack. (does not believe people should have it unencrypted).

The rest of it would be not to hard I am sure.
Reply With Quote
  #7  
Old 09-26-2003, 02:26 AM
3DSJFH 3DSJFH is offline
 
Join Date: Feb 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting this error when trying to register a new user:

Fatal error: Call to undefined function: vbmail() in /var/www/html/vb/register.php on line 541
Reply With Quote
  #8  
Old 09-26-2003, 02:34 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested it on my test board the other day VB 2.3.2 with no issue.

Sounds like your putting it in the wrong place.
Reply With Quote
  #9  
Old 09-26-2003, 02:40 AM
3DSJFH 3DSJFH is offline
 
Join Date: Feb 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forgot to mention I'm using 2.2.9.
Reply With Quote
  #10  
Old 09-26-2003, 02:47 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not looked at 2.9 nor have it on disk no more. Perhaps someone who is on it can post the trouble.

I just hacked my hosting site board exact as said on here and it sent email no errors.

Dear test,
Welcome our Forums!

You have signed up with the following information:
Username: test
Password: testing

Please make sure to look at our hosting plans.
Thank You,
Sanoxs Solutions
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05878 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete