BuddyPress doesn’t look like a perfect script to me, it has some missing parts.. One of these extremely important parts is the option to moderate new user registration (check them for spam).
Anyways, I am not going to waste your time with stories so, here’s what you have to do (or pay me to do [...]
Archive for the ‘Tutorials’ category
Moderate new user registration in BuddyPress
March 19th, 2010Fix for BuddyPress e-mail notifications problem
March 14th, 2010I have a client who installed BudyPress and since then the mail() function stopped working. SMTP could not connect neither. I had to look into BudyPress’ code to find the problem.
Here is a fast fix for this issue:
Open up wp-content/plugins/buddypress/bp-core/bp-core-filters.php (back up everything you edit, you can never know..)
Go to line 29, you [...]
PHP tutorial: simple contact form using the mail() function
October 4th, 2009Here is an extremely simple way to create a contact form with PHP and the mail() function.
Copy the code above and keep reading..
<?
if ($_POST){
$to = “youremail@gmail.com”;
$subject = “YOUR SUBJECT”;
$email = $_REQUEST["email"];
$name = $_REQUEST["name"];
$message = “Name: “.$name.”\r\n”. “Email: “.$email.”\r\n”. “Message: “.$_REQUEST["message"];
$headers = “From: $email”; mail($to, $subject, $message, $headers);
echo “Thanks for submitting.”;
}
else
{
?>
<html>
<head>
<title>Contact Us</title>
<body>
<table>
<form action=’email.php’ method=’post’>
<tr>
<td>
Your Name:
</td>
<td><input type=’text’ [...]