Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
drmike
Worker
Worker



Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC

PostPosted: Fri Mar 18, 2005 8:14 am Reply with quote

Greets:

Wasn't there a hack that would have the PHPNuke install send a newly confirmed user a email welcoming them to your system? I could have sworn that there was one but I'm not finding one here or at nukeresources or google.

Thanks,
-drmike

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Mar 18, 2005 11:13 am Reply with quote

Never heard of that one.
 
View user's profile Send private message
CurtisH
Life Cycles Becoming CPU Cycles



Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Fri Mar 18, 2005 12:00 pm Reply with quote

If you use the forum registration you can do that, but I don't know of a way to do it with the Your_Account registration.

_________________
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe 
View user's profile Send private message Visit poster's website Yahoo Messenger
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Fri Mar 18, 2005 5:28 pm Reply with quote

That is correct. There is not one ported to work with a nuke site registration. The only out there is for the forum registration. It is a pitty as this would be a great hack.

_________________
Themes BB Skins
http://www.jaded-designs.com
Graphic Tees
http://www.cafepress.com/jadeddesigns
Paranormal Tees
http://www.cafepress.com/HauntedTees
Ghost Stories & More
http://www.hauntingtales.net 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Fri Mar 18, 2005 5:33 pm Reply with quote

Are we talking about a confimation email after the activation process?
 
jaded







PostPosted: Fri Mar 18, 2005 6:16 pm Reply with quote

nope..it isnt.. it is a hack that allows you.. if you register with the forum registration to get an auto response pm with whatever message you wish in it.
 
Raven







PostPosted: Fri Mar 18, 2005 6:24 pm Reply with quote

Laughing - That's what I am asking. Is the question pertaining to an auto-response that would be sent after a person activates their registration, since the original poster states it is a "newly confirmed user" which implies that they have activated their registration. That's what it sounds like to me. The order of events would be:

User registers
Nuke sends an activation email
User activates account
Nuke sends a welcome letter
 
jaded







PostPosted: Fri Mar 18, 2005 6:26 pm Reply with quote

Yes, the welcome letter is in pm form. It is a really nice feature to have on your site I believe.
 
jaded







PostPosted: Fri Mar 18, 2005 6:30 pm Reply with quote

This is the actual hack Gaylen if it helps. It would be great if we could have it work with actual nuke site registration. Smile It can work with phpbb 2.13

Code:
########################################################################################## 

## MOD Title: Send PM On User Registration
## MOD Author: AbelaJohnB < abela@phpbb.com > (John B. Abela) http://www.JohnAbela.Com/
## MOD Author, Secondary: typicalgeek  < me@typicalgeek.com > (N/A)  http://www.typicalgeek.com
## MOD Author, Secondary: netclectic < adrian@netclectic.com > (Adrian *beep*) http://www.netclectic.com
## MOD Description: This MOD will send a PM to all new users when they register.
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: ~3 Minutes
## Files To Edit: includes/usercp_register.php, language/lang_english/lang_main.php
## Included Files: n/a
##########################################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##########################################################################################
##Author Notes:
##
##  Copyright  © John B. Abela. 2002 - http://www.JohnAbela.Com/
##
## ** No Placement Of This MOD At Sites Other Than www.phpBB.Com Or www.JohnAbela.Com Without My Permission.
##
## If you download this MOD from anywhere other than my own site or phpBB, please do not
## use it. I do not allow this MOD (or any of mine) to be posted at non-official phpBB Sites,
## and as such I will not be able to keep this MOD up-to-date at any of these non-official sites
## which do not respect my request to not place it within their site. If you do find it at a site
## other than phpBB.com please let me know!  <abela@phpbb.com>
##
## If you are an owner of a non-official site and would like to place it within your site, please
## email me for permission, so I can keep track of who has it and where it's at, to help keep
## keep your site up-to-date with this MOD.
##
## For anybody that likes this MOD, you can always say 'thanks' by signing my guestbook at
## my web site!   http://www.JohnAbela.Com/  :)
##
## This MOD does not take into consideration any user registration methods.
##  ie: confirm via email, auto register, etc) Any new person that registers will get a PM,
##  even if they have not confirmed their account. I do not plan on changing this, as I do
## not really see the point in doing such.
##
##########################################################################################
## History:
##
## 1.0.2 - 1/10/2003 - Updated To Work With phpBB2.0.4. Included fix by 'netclectic' to account for instant pop-up of new message. (thanks!)
## 1.0.1 - 9/19/2002 - Updated Language Section To Include 'typicalgeek's method of site name.
##
##########################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##########################################################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#

$sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)

#
#-----[ BEFORE, ADD ]------------------------------------------
#

        // START - SEND PM ON REGISTER MOD - AbelaJohnB
   //
   // According to 'netclectic' we need to set the datastamp to '9999999999' in order to
   // insure the pop-up notification about a new message existing. I concur with 'netclectic'
   // and have thus made the change to his suggestion. Thanks netclectic!
        //
   $sql = "UPDATE " . USERS_TABLE . "
      SET user_new_privmsg = '1', user_last_privmsg = '9999999999'
            WHERE user_id = $user_id";
      if ( !($result = $db->sql_query($sql)) )
        {
          message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
        }

        $register_pm_subject = $lang['register_pm_subject'];
        $register_pm = $lang['register_pm'];
        $privmsgs_date = date("U");
        $sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '" . str_replace("\'", "''", addslashes(sprintf($register_pm_subject,$board_config['sitename']))) . "', '2', " . $user_id . ", " . $privmsgs_date . ", '0', '1', '1', '0')";
        if ( !$db->sql_query($sql) )
      {
         message_die(GENERAL_ERROR, 'Could not insert private message sent info', '', __LINE__, __FILE__, $sql);
      }

      $privmsg_sent_id = $db->sql_nextid();
      $privmsgs_text = $lang['register_pm_subject'];
        //
        $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_text) VALUES ($privmsg_sent_id, '" . str_replace("\'", "''", addslashes(sprintf($register_pm,$board_config['sitename'],$board_config['sitename']))) . "')";
        if ( !$db->sql_query($sql) )
      {
         message_die(GENERAL_ERROR, 'Could not insert private message sent text', '', __LINE__, __FILE__, $sql);
      }
        // END - SEND PM ON REGISTER MOD - AbelaJohnB

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#

$lang['Click_view_privmsg'] = 'Click %sHere%s to visit your Inbox';

#
#-----[ AFTER, ADD ]------------------------------------------
#

// START - SEND PM ON REGISTER MOD - AbelaJohnB
$lang['register_pm_subject'] = 'Welcome to %s';
$lang['register_pm'] = 'Hello!<br /><br />Welcome to %s. <br /><br />We hope you enjoy your time at this site! <br /><br />Feel free to join in and share with others or start your own discussion! <br /><br />~Enjoy!<br />%s Staff ';
// END - SEND PM ON REGISTER MOD - AbelaJohnB

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
 
CurtisH







PostPosted: Fri Mar 18, 2005 6:33 pm Reply with quote

Seems like there should be a way to combine your welcome message with the email that is sent for activation... My first thought was the language file but I don't see the activation message in it..hmmmm

Gonna dig a little deeper and see what I can find.

I use the Forum registration on my site as well as the forum profile, I have mostly removed the "profile" part on the nuke side on my site mainly because my forum is heavily modded and I have added many extra fields in the registration/edit profile part.
 
drmike







PostPosted: Tue Mar 22, 2005 7:13 am Reply with quote

Raven wrote:
Laughing - That's what I am asking. Is the question pertaining to an auto-response that would be sent after a person activates their registration, since the original poster states it is a "newly confirmed user" which implies that they have activated their registration. That's what it sounds like to me. The order of events would be:

User registers
Nuke sends an activation email
User activates account
Nuke sends a welcome letter


Yes, that's what I'm asking for.

I wouldn't think it would be that hard actually. Just adding code right after the line that saved the user data in the _user table. You could save the text in the lang_* files. Isn't that where the activation email text is stored? Send it out as a simle mail() function call I would think.

I'll take a look at it this afternoon. I might just code it myself. Smile

-drmike
 
drmike







PostPosted: Tue Mar 22, 2005 7:16 am Reply with quote

CurtisHancock wrote:
Seems like there should be a way to combine your welcome message with the email that is sent for activation... My first thought was the language file but I don't see the activation message in it..hmmmm


Rather not do it as a combined message. I feel the activation message should be as simple as possible as to not confuse visitors. If it's a follow up message, then the visitor as an encouragement to revisit your site looking for the items you've pointed out within your welcome message. (I don't run a standard PHP-Nuke site.)

-drmike
 
Raven







PostPosted: Tue Mar 22, 2005 10:19 am Reply with quote

It should be as simple as adding a line or 2 into the "activate_user" function in Your_Account/index.php . You could either include your welcome letter in a variable or store it in a separate file and just include it in your email code.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©