Quote:
Originally Posted by lancet
Вот есть
http://www.vbulletin.org/forum/showthread.php?t=125890
http://www.vbulletin.org/forum/showthread.php?t=115597
http://www.vbulletin.org/forum/showthread.php?t=66247
но скорее всего для 3.5, я просил в запросах, но никто не скинул.
Если найдешь черкни.
|
Вот, держите.. все они для 3.5.х..
Дополнение к
mail.php (
http://www.vbulletin.org/forum/showthread.php?t=66247)
Installation:
Upload email.php into your forums directory, link to it, and you've got an instant web-based POP3/ IMAP email interface in your forums!
Nothing else to do!
By default, this allows registered members, moderators and admins access only. You can edit the top of email.php to add or remove usergroupids easily.
Settings:
At the top of the PHP file, you can change the variables to:
1. Decide which usergroups can use this
2. Allow or disallow the changing of the FROM: email address (security update)
3. Exempt yourself so you can always change the FROM: email address
Requirements:
1) This hack requires PHP 4 or higher on your server.
2) This hack requires you to have IMAP support compiled with PHP on your server. If you get a error like "imap_open undefined function", then you dont have IMAP support. Sorry!
If you see this error message, you do NOT have IMAP compiled with PHP:
Quote:
Fatal error: Call to undefined function: imap_open() in /home/yourforums/public_html/forum/email.php on line 652
|
Please click the install link at the bottom of this thread for updates.
Enjoy!
Add-Ons (OPTIONAL) -
1) Username and Mail Server saved in Member Profile:
To make the Username and Password become part of a member's profile (I don't suggest to include password as well as staff can then have access to this), just create 2 custom profile fields in your Admin CP - one for Username, the other for Mail Host Server. Make sure they do not show up in the user's profile.
Then, note down the custom profile ID number of each of the 2 custom profile fields (hover your mouse over the link to each, and it's the number at the very end of the URL in the status bar).
Then, in email.php, find:
PHP Code:
if ($CMD=="")
{
if (!$session_server)
{
Underneath, add:
PHP Code:
$user = $bbuserinfo[fieldx];
$host = $bbuserinfo[fieldy];
Change x to the ID number of the username profile ID, and y to the ID number of the host mail server profile ID. Done!
2) Force user to use a specific mail server:
In email.php, find:
PHP Code:
$HTML .= "<tr><td align=right>Server: </td><td><input TYPE=text NAME=host value='$host'></td></tr>\n";
Change to:
PHP Code:
$HTML .= "<input TYPE=hidden NAME=host value='mail.yourserver.com'>";
Change 'mail.yourserver.com' to your own mail server subdomain name.
3) To force users to use only POP3 or IMAP
In email.php, find:
PHP Code:
$HTML .= "<tr><td align=right>Type: </td><td> POP3<INPUT TYPE=radio size=1 NAME=opt group=opt value='POP3' checked>";
$HTML .= "IMAP <INPUT TYPE=radio size=1 NAME=opt group=opt value='IMAP'></td></tr>";
// $HTML .= "<input type='hidden' name='opt' value='POP3'>\n"; // set to IMAP als IMAP
Replace with:
PHP Code:
$HTML .= "<input type='hidden' name='opt' value='POP3'>";
Change POP3 to IMAP if you wish.