Version: 1.00, by lebanon
Developer Last Online: Jan 2014
Version: 3.5.0
Rating:
Released: 03-05-2006
Last Update: 03-07-2006
Installs: 30
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage
No support by the author.
This cpanel email extension, allows you to add email@urdomain per username.
The script will use mysql field value to determine wether the user has activated an email or not.
If not active will allow him to set email pass and activate.
If active will allow to directly login to webmail.
demo http://www.tchatting.com/forum/email.php
Requires login ( "demo demo" pass 123456 ) but you will not be able to create a new email using it anyway thats why i added screenshots here.
Requirements are ofcourse a Cpanel username + no limits on email creation.
The script current features are :
Page only for registered ( No groups set but can be configured via source code )
Replaces Spaces from usernames to . (dot ) since emails cannot contain spaces.
REVISED : also characters such as # @ ~
If you prefer character _ instead of a . for spaces replacements it can be changed on line 92.
The script contains working functions , but not fancy stuff .
You can edit the template to add a faq section or something below logins.
Also it can be extended to allow user to delete his email account or change his email password from the email page but i didnt think its a good idea so i left them out (though can be added )
Finaly , if you have ideas to further extend those functions let me know, id be glad to share if i had more extra time .
Last note : Add a link wherever u want it to appear .
March 8th: Updated the the files, moved the config into includes and added htaccess contents as per Frugil post.
Added intrusctions on how to specify groups. INSTALLATION
import the xml product .
Upload the rest of the files into your forum root
Link to the file !
Download Now
(21.4 KB, 0 views)
(21.4 KB, 0 views)
(21.4 KB, 0 views)
(21.4 KB, 0 views)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Working perfectly only thing is user with a space doesnt create and doesnt even work
example one of my users killa k says it was created but when i go in cpanel it doesnts how and even when they try to login it says fail
(This was tested on 3.6.4 but will work on 3.5.x)
BACK UP your file www/forum/email.php then replace ALL the code in email.php with the following. It will then work for you
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
// change the line below to the actual filename without ".php" extention.
// the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation.
define('THIS_SCRIPT', 'email');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
// change the lines below to the list of actual templates used in the script
if (!is_member_of($vbulletin->userinfo, 5) AND !is_member_of($vbulletin->userinfo, 6) AND !is_member_of($vbulletin->userinfo, 31) AND !is_member_of($vbulletin->userinfo, 27) AND !is_member_of($vbulletin->userinfo, 7))
{
print_no_permission();
}
// #################### HARD CODE JAVASCRIPT PATHS ########################
die(" Sorry, Could not create a connection to our Mail Server, your email was not created, please hit the back button and try again: Contact the admin at $xxadmins_email if you encounter further problems");
}
$message="Email Signup at $xxdomain \n account:$cpun1@$xxdomain \n username:$xxname quota:$xxquota login:$password\n\n If the user forgets their password you can change it in CPanel Email Maintanence \n\nRegards,";
//writing the success into database to prevent duplicate creations errors
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET cpmail = 2 WHERE username='$cpun' LIMIT 1");
echo ("has already been registered/activated. Please contact the administration.</center>");
echo ("<br><br>");
} else {
$status="new account created";
echo "<br/><strong>Thank you $cpun ,</strong><br/>Your email address $cpun@$xxdomain with password $password has been created with $xxquota MB Storage! Thank you for signing up for <br\>$xxdomain email.<br/> You may go back into your email login page now at <a href='http://www.$forumurl/email.php'>http://www.$forumurl/email.php<br/><br/>";
}
//////end of the email creation block
}
$cpemail = ob_get_contents();
ob_end_clean();
// change the line below to contain the name of the actual main output template used in your script