var $send_copy = true; // send a mail copy to the administrator (register only)
at access_user_class.php line 51.
But i don't recibe the copy email in my email...
what is the setting here? (db_config.php)
Code:
define("ADMIN_MAIL", "admin@yourdomain.com");
and don't forget you get only a mail if the new user validates his email address...
Quote
And please, can you know, how i can have all the users with info, in one page?
I need to have the users complete info.
There is no function for this, you to write this script by yourself (it's not so difficult) check the php manual for this function "mysql_fetch_assoc" there is an example how to obtain data from a DB
EDIT: this about a different function, the variable $send_copy has function at the moment. The current status for this function is: nice idea I will check this later, maybe you like the other registration type (non auto activation)
« Last Edit: Jun 20, 2006, 08:32:18 am by olaf »
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #2 on: Jun 20, 2006, 08:32:40 am »
Code:
define("ADMIN_MAIL", "admin@yourdomain.com");
Yes, i edit that too, but is not working, never send me the email.
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
Yes, i edit that too, but is not working, never send me the email.
check the comment I added later...
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #4 on: Jun 20, 2006, 08:41:53 am »
Hello,
replace this two functions inside the class file and let me know if it works.
Code:
<?php
function send_confirmation($id) { $sql = sprintf("SELECT real_name, email FROM %s WHERE id = %d", $this->table_name, $id); $res = mysql_query($sql); $user_email = mysql_result($res, 0, "email"); $this->user_full_name = mysql_result($res, 0, "real_name"); if ($this->user_full_name == "") $this->user_full_name = "User"; // change "User" to whatever you want, it's just a default name if ($this->send_mail($user_email, 37, 24, $this->send_copy)) { return true; } else { return false; } } function send_mail($mail_address, $msg = 29, $subj = 28, $send_admin = false) { $header = "From: \"".$this->webmaster_name."\" <".$this->webmaster_mail.">\r\n"; if ($send_admin) $header .= "Bcc: ".ADMIN_MAIL."\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Mailer: Olaf's mail script version 1.11\r\n"; $header .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n"; $header .= "Content-Transfer-Encoding: 7bit\r\n"; $subject = $this->messages($subj); $body = $this->messages($msg); if (mail($mail_address, $subject, $body, $header)) { return true; } else { return false; } }
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #5 on: Jun 20, 2006, 08:50:34 am »
i gets this message
Parse error: parse error, unexpected '<', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/host/public_html/classes/access_user/access_user_class.php on line 457 FIXED-- ---------------
Fatal error: Cannot redeclare send_confirmation() in /home/host/public_html/classes/access_user/access_user_class.php on line 457
« Last Edit: Jun 20, 2006, 08:53:54 am by syserror »
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
Parse error: parse error, unexpected '<', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/host/public_html/classes/access_user/access_user_class.php on line 457 FIXED-- ---------------
Fatal error: Cannot redeclare send_confirmation() in /home/host/public_html/classes/access_user/access_user_class.php on line 457