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

Reply
 
Thread Tools
Details »»

Version: , by Kier Kier is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 2.0.x Rating:
Released: 04-24-2001 Last Update: Never Installs: 0
 
No support by the author.

This tiny hack is in response to a request from Sharg - I would put it into the 2.0 code, but understandably, John doesn't want to make any further modifications to the code unless they are absolutely necessary.

It allows you to use the admin email function to send an email which will remind users in the 'Users awaiting bla bla bla' group of the link for their activation code.

In admin/email.php, find this code:
Code:
  $users=$DB_site->query("SELECT userid,username,password,email FROM user WHERE $condition AND userid>='$startat' AND userid<'$finishat' AND adminemail=1 ORDER BY userid DESC");
  while ($user=$DB_site->fetch_array($users)) {

    $userid=$user[userid];
    $sendmessage=$message;
    $sendmessage=str_replace("\$email",$user[email],$sendmessage);
    $sendmessage=str_replace("\$username",$user[username],$sendmessage);
    $sendmessage=str_replace("\$password",$user[password],$sendmessage);

    mail($user[email],$subject,$sendmessage,"From: $from");
and replace it with this:
Code:
  $users=$DB_site->query("SELECT userid,username,password,email,joindate FROM user WHERE $condition AND userid>='$startat' AND userid<'$finishat' AND adminemail=1 ORDER BY userid DESC");
  while ($user=$DB_site->fetch_array($users)) {

    $userid=$user[userid];
    $sendmessage=$message;
    $sendmessage=str_replace("\$email",$user[email],$sendmessage);
    $sendmessage=str_replace("\$username",$user[username],$sendmessage);
    $sendmessage=str_replace("\$password",$user[password],$sendmessage);
    
	$sendmessage=str_replace("\$userid",$user[userid],$sendmessage);
	$sendmessage=str_replace("\$activateid",$user[joindate],$sendmessage);
	$sendmessage=str_replace("\$bburl",$bburl,$sendmessage);
	

    mail($user[email],$subject,$sendmessage,"From: $from");
The variables $userid and $activateid are now available for you in the mail message, allowing you to construct the link to the activation page like this:

$bburl/register.php?a=act&u=$userid&i=$activateid

Show Your Support

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

Comments
  #2  
Old 04-25-2001, 10:43 PM
Sharg Sharg is offline
 
Join Date: Jan 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeeepiiiii !!!!
Thanks Kier !! Thanks alot !
I got 200 users in the user waiting group i'll send them the activation code now so i'm sure I will have more increased real subscribtion than ever before !!

(So much easier for them just to click on a link to activate their account on a reminder Email) .

Well, I hope this is going to make it in the official next release.
Reply With Quote
  #3  
Old 04-25-2001, 11:32 PM
Kier Kier is offline
 
Join Date: Oct 2001
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll make sure it's in 2.1... or something nicer.
Reply With Quote
  #4  
Old 04-26-2001, 12:03 AM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kier,

Thanks, this will definitely come in handy.
Reply With Quote
  #5  
Old 04-28-2001, 05:27 PM
Joshs Joshs is offline
 
Join Date: Oct 2001
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What exactly does this do?
Reply With Quote
  #6  
Old 05-31-2001, 04:55 PM
SteveK SteveK is offline
 
Join Date: Oct 2001
Location: Seattle, WA USA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may also want to add this to remind you of the new variables that are available.

find this:
PHP Code:
  maketextareacode("Message:<p><font size='1'>In the message, you may use \$username, \$password and \$email.</font></p>","message","",10,40); 
and replace with this:
PHP Code:
  maketextareacode("Message:<p><font size='1'>In the message, you may use \$userid, \$activateid, \$username, \$password and \$email.</font></p>","message","",10,40); 
SteveK
Reply With Quote
  #7  
Old 06-02-2001, 02:06 PM
Black Tiger
Guest
 
Posts: n/a
Default

I've got a little problem with this one in VB2.0 final.

I made changes to email.php like Kier said.
Now I use the option "email users" in the control panel.

I write the email, then I've got to select who to send to and I select "users awaiting email confirmation" (we've got 82 of them).

After submitting I see:
userid:
done

But no mail is send, even not when I select the option to mail users in this usergroup which post is <1 nothing is send.
In vb1.16 if I selected only a usergroup, an email was send to the entire group.

1.) Am I doing something wrong or forgetting something?
2.) What does the "joindate" added in the first line exactly do?
Please help.

p.s. It seems it only works if I send an email to the usergroup "administrators", then I see the userid's, on any other group I see no id's flying over my screen.
Reply With Quote
  #8  
Old 06-03-2001, 11:42 PM
Black Tiger
Guest
 
Posts: n/a
Default

Nobody any idea?
Reply With Quote
  #9  
Old 06-25-2001, 06:53 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works fantastic on vb 2.01

we have over 3970 members on the awaiting confirmation list because our sendmail function corrupted and they've just been sitting there doing nothing

this should sort that out

thanks again
Reply With Quote
  #10  
Old 07-24-2001, 05:46 PM
Byron Byron is offline
 
Join Date: Oct 2001
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much Kier.

I have 265 members waiting for confirmation.
Can't imagine doing it one by one.

Thanks a lot.

Hope this feature will be in the next vb version.
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 02:52 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.05357 seconds
  • Memory Usage 2,290KB
  • 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
  • (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
  • (8)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