Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 09-26-2003, 08:57 AM
mfacer mfacer is offline
 
Join Date: Aug 2003
Location: Manchester, UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm.. looks like vbMail() isnt used... just use another mail function then! replace the vbMail with:

mail ($email,$subject,$message);

and see if that works?
Reply With Quote
  #13  
Old 09-26-2003, 03:57 PM
3DSJFH 3DSJFH is offline
 
Join Date: Feb 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That worked, thanks a lot!
Reply With Quote
  #14  
Old 12-01-2003, 11:40 PM
dave777 dave777 is offline
 
Join Date: Jan 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it to work. I'm using 2.3.2 and have pasted the code exactly as you said mfacer, but no welcome email is being sent.
Reply With Quote
  #15  
Old 12-16-2003, 12:33 PM
stryka stryka is offline
 
Join Date: Aug 2002
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how this happend but when i implemented this hack i used a familiar password (12345)... but now... every subsequent new member is sent their password as (12345)... no matter what they entered in the form... ???

And it workz too...

any suggestions will be great... did a SEARCH of my templates to see if i have that hardcoded anywhere and within register.php

no clue..

thanx
Reply With Quote
  #16  
Old 01-05-2004, 11:37 AM
stryka stryka is offline
 
Join Date: Aug 2002
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have any suggestions? I checked the form for hidden values and i don't get nothing?

lemme know... thanx..
Reply With Quote
Reply


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 11:43 PM.


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.08562 seconds
  • Memory Usage 2,256KB
  • Queries Executed 20 (?)
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
  • (2)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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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