Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
Retrolock
New Member
New Member



Joined: Jan 29, 2004
Posts: 4

PostPosted: Sun Feb 01, 2004 7:58 am Reply with quote

Hi raven you've got a great script like the PHPnuke 7.0 auto activation hack! it really helps out!

the problem is, i still want my users to receive emails with their username and password when they register, and it seems they dont receive it! Is there a solution to this?

thanks and more power!!
[ Only registered users can see links on this board! Get registered or login! ] - my phpnuke site
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Feb 01, 2004 12:29 pm Reply with quote

Sure! Try this. In Your_Account/index.php change this code in finishNewUser()
Code:
   } elseif ($autoActivate) { activate($username, $check_num, $autoActivate);
to
Code:
   } elseif ($autoActivate) {

       $message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $user_password";
       $subject = ""._ACTIVATIONSUB."";
       $from = "$adminmail";
       mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
      activate($username, $check_num, $autoActivate);

Now you will probably need to change the message text, but this should work. Note: I haven't tested the code.
 
View user's profile Send private message
Retrolock







PostPosted: Mon Feb 02, 2004 4:02 am Reply with quote

Hey sir raven thanks for the quick response!!! Very Happy

another question: where can i change the message text? sorry for being such a newbie!!

thanks very much!
[ Only registered users can see links on this board! Get registered or login! ]
 
Raven







PostPosted: Mon Feb 02, 2004 6:08 am Reply with quote

In the language file.
 
Nukeum66
Life Cycles Becoming CPU Cycles



Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Mon Feb 02, 2004 6:18 am Reply with quote

modules/Your_Account/languages/what_ever_language.php

define("_YOUUSEDEMAIL", (if this is the message you need to edit)

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
Nukeum66







PostPosted: Mon Feb 02, 2004 6:19 am Reply with quote

LOL! Posting at the same time Laughing
 
Retrolock







PostPosted: Mon Feb 02, 2004 8:15 pm Reply with quote

One more query! How can I edit the activation link? Obviously I dont need it anymore! Thanks!!
 
Raven







PostPosted: Mon Feb 02, 2004 8:55 pm Reply with quote

Find in finishNewUser where the setting $message is created and remove the code that constructs the anchor tag (link).
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

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 ©