PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Retrolock
New Member
New Member


Joined: Jan 29, 2004
Posts: 4

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

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 to the forums!
- my phpnuke site
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Retrolock
New Member
New Member


Joined: Jan 29, 2004
Posts: 4

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

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 to the forums!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

In the language file.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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 Back to top

modules/Your_Account/languages/what_ever_language.php

define("_YOUUSEDEMAIL", (if this is the message you need to edit)
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


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

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

LOL! Posting at the same time Laughing
View user's profile Send private message Visit poster's website
Retrolock
New Member
New Member


Joined: Jan 29, 2004
Posts: 4

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

One more query! How can I edit the activation link? Obviously I dont need it anymore! Thanks!!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Find in finishNewUser where the setting $message is created and remove the code that constructs the anchor tag (link).
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum