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: Mass Email to users awaiting activation code] (https://vborg.vbsupport.ru/showthread.php?t=27599)

Scott MacVicar 09-06-2001 10:00 PM

This provides an option to email all users who are in the Awaiting Email Confirmation usergroup again with their activation code. I used this on my forums as some people either accidently deleted the email or the mail servers were down.

Open /admin/index.php and after
PHP Code:

<a href="user.php?s=<?php echo$session[sessionhash]; ?>&action=referrers"> Referrals </a><br>

around line 246
and add
PHP Code:

<a href="user.php?s=<?php echo$session[sessionhash]; ?>&action=emailactive"> Mass Email Activation Code </a><br>

save index.php and open /admin/user.php

look for
PHP Code:

if (isset($action)==0) {
  
$action="modify";


around line 44-46
and add
PHP Code:

// ###################### Mass Email Activation Code #######################
if ($action=="emailactive") {
  
$query=$DB_site->query("SELECT userid,username,email,password,joindate FROM user WHERE usergroupid='3'");
  while (
$user=$DB_site->fetch_array($query)) {
    
$userid=$user[userid];
    
$username=$user[username];
    
$password=$user[password];
    
$activateid=$user[joindate];
    eval(
"\$message = \"".gettemplate("email_activateaccount",1,0)."\";");
    eval(
"\$subject = \"".gettemplate("emailsubject_activateaccount",1,0)."\";");
    echo 
"Email sent to:<br>";
    if(
mail ($user[email],$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>")) {
          echo 
"$user[email] <br>";
    }
  }


re-upload /admin/index.php and /admin/user.php to your site.

The options will now be present within the control panel.

tubedogg 09-08-2001 07:10 AM

You realize this is already in the stock code, right?
yoursite.com/admin/email.php?action=start

Also, please enter your license information in your profile. See the link in my sig for more info. Thanks!

Lionel 01-17-2002 07:14 PM

and I believe that the following line is wrong:
$activateid=$user[joindate];

a bunch of users could not be activated. Reason: they were getting the joindate for activation id.

amykhar 01-17-2002 07:17 PM

Kevin,
PPN couldn't have posted in this forum if his license information wasn't entered in his profile.

Amy

Shenlong 01-17-2002 07:41 PM

tried installing, didnt work for me, option is already there anyway so really not a useful hack, no offense

Liz 08-03-2002 04:12 PM

Tubbdog, when I go to that link...I don't see the spot for the mass email for inactivated users. Only for COPPA. Am I looking at the wrong place? I went to the address you posted.

I also tried searching for the first line and it couldn't be found in admin/index.php

Help?? I have a lot of inactivated users. For some reason the board keeps inactivating active users so I want to be able to get this hack....

Kars10 08-03-2002 04:18 PM

@ Tubedogg, i believe PPN is a licenced Member...his hacks are one of the greatest here on VB.org!!
And i think if he is not licensed he doesn?t release a hack here.... :p

JoshFink 08-03-2002 05:51 PM

I think you need to look at the dates on the post as well as the fact he is a moderator now.. :D

Josh

Kars10 08-03-2002 05:54 PM

Ok, ok....that?s a good idea!! ;) :)

Dark Blaze 01-22-2003 10:40 AM

This certainly is something using, I will keep it in mind and install it as soon as I find time.. Thanks PPN for your great work :)


All times are GMT. The time now is 01:32 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.00976 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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