Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-04-2001 Last Update: Never Installs: 0
 
No support by the author.

Useful when users "don't recieve the activation e-mail".

http://www.johnmiller2004.com/vbulletin/resend.txt

Shows a link to resend activation e-mail in search for user and in edit user.

Show Your Support

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

Comments
  #2  
Old 01-04-2001, 01:54 AM
Guest
 
Posts: n/a
Default

Argh, it's showing up as HTML...

Quote:
***********************
Resend Activation
E-mail Hack
by JohnM
***********************

In admin/user.php find:

echo "<p><a href='../member.php?action=emailpassword&email=$user[email]' target=_new>[email password]</a></p>";

After it add:

echo "<p><a href='user.php?action=resend&userid=$user[userid]' target=_new>[resend activation e-mail]</a></p>";

Near the bottom, right before "?>", add:

if ($action=="resend") {
$getuserinfo=$DB_site->query_first("SELECT username,password,email,joindate FROM user WHERE userid=$userid");
$activateid=$getuserinfo[joindate];
$username=$getuserinfo[username];
$password=$getuserinfo[password];
$email=$getuserinfo[email];
$usernameenc=urlencode($getuserinfo[username]);

$temp1=$DB_site->query_first("SELECT template FROM template WHERE title = 'activateemail'");
$tmpl1 = str_replace("\"","\\\"",$temp1[template]);
$temp2=$DB_site->query_first("SELECT template FROM template WHERE title = 'activateemailsubject'");
$tmpl2 = str_replace("\"","\\\"",$temp2[template]);
eval("\$message = \"".$tmpl1."\";");
eval("\$subject = \"".$tmpl2."\";");

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

echo "E-mail resent.";

}

Now find:

if ($displayoptions==1) {
echo "<td><p><a href='user.php?action=edit&userid=$user[userid]'>[edit]</a> <a href='../member.php?action=emailpassword&email=$user[email]' target=_new>[email password]</a> <a href='user.php?action=remove&userid=$user[userid]'>[remove]</a></p></td>";
}

Replace with:

if ($displayoptions==1) {
echo "<td><p><a href='user.php?action=edit&userid=$user[userid]'>[edit]</a> <a href='../member.php?action=emailpassword&email=$user[email]' target=_new>[email password]</a> <a href='user.php?action=resend&userid=$user[userid]' target=_new>[resend activation e-mail]</a> <a href='user.php?action=remove&userid=$user[userid]'>[remove]</a></p></td>";
}

Done!
Reply With Quote
  #3  
Old 01-04-2001, 03:52 AM
Guest
 
Posts: n/a
Default

works great, tx.
Reply With Quote
  #4  
Old 01-05-2001, 10:30 AM
Guest
 
Posts: n/a
Default

I'd like to resend the activation mails to my 600 users which are in the "Users Awaiting Email Confirmation" usergroup.

Can something like this be done?
Like implementing this hack to the "Users" -> "E-Mail Users" part of the control panel... I think it will be more useful.

Thanks
Reply With Quote
  #5  
Old 01-09-2001, 03:50 PM
Guest
 
Posts: n/a
Default

nice hack
Reply With Quote
  #6  
Old 01-09-2001, 05:04 PM
Guest
 
Posts: n/a
Default

YEs this is very useful.

Hopefully this will be included in the v2.0 as I think this has been overlooked for quite sometime.
Reply With Quote
  #7  
Old 01-15-2001, 04:55 AM
Guest
 
Posts: n/a
Default

heh, i've seen a post regarding this, and now a hack is out, thx guyz
Reply With Quote
  #8  
Old 01-15-2001, 01:37 PM
Guest
 
Posts: n/a
Default

to let users resend their own activation emails add this @ the bottom of member.php (before ?>)

Code:
if ($action=="rat_resend") { 
$getuserinfo=$DB_site->query_first("SELECT username,password,email,joindate FROM user WHERE userid=$userid"); 
$activateid=$getuserinfo[joindate]; 
$username=$getuserinfo[username]; 
$password=$getuserinfo[password]; 
$email=$getuserinfo[email]; 
$usernameenc=urlencode($getuserinfo[username]); 

$temp1=$DB_site->query_first("SELECT template FROM template WHERE title = 'activateemail'"); 
$tmpl1 = str_replace("\"","\\\"",$temp1[template]); 
$temp2=$DB_site->query_first("SELECT template FROM template WHERE title = 'activateemailsubject'"); 
$tmpl2 = str_replace("\"","\\\"",$temp2[template]); 
eval("\$message = \"".$tmpl1."\";"); 
eval("\$subject = \"".$tmpl2."\";"); 

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

echo "E-mail resent."; 

}
and in your modify profile template add a link to

Code:
member.php?action=rat_resend&user=$userid
then in your error user cant post template (i dont recall the exact names here ) tell them they can resend their activation email by going to Modify Profile, and clicking the Resend Activation Email link.

now, if you wanted to write something to mail all your un-activated users, you'd do something like get all users in usergroup where usergroup title is Users Awaiting Email Confermation, and while you are going thru select all the info you need and send an email. then on to the next user.
Reply With Quote
  #9  
Old 01-15-2001, 07:27 PM
Guest
 
Posts: n/a
Default

works great but all the users can resend their activation E-mail even the registerd ones.
Reply With Quote
  #10  
Old 01-15-2001, 07:37 PM
Guest
 
Posts: n/a
Default

if you wanna be silly about it, you could make a var in the member.php where it does the vars (ie. icq num, etc) and if they are not in the Users Awaiting Moderation group then dont print it.

personally i dont see a need.
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 09:48 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.04003 seconds
  • Memory Usage 2,264KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (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_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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete