vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBulletin POP3 / IMAP Email Client for vB3 - Web-based access to POP email accounts! (https://vborg.vbsupport.ru/showthread.php?t=66247)

Erwin 06-16-2004 10:00 PM

vBulletin POP3 / IMAP Email Client for vB3 - Web-based access to POP email accounts!
 
vBulletin POP3 / IMAP Email Client
Version 1.4 for vBulletin 3.x.x by Dr Erwin Loh

World's easiest hack to install! Upload a file, and you're done! No templates to add, no files to edit!!! :cool:

Ever wanted to access your POP3 or IMAP email account when you are away from your Outlook Express? Sick of Hotmail and free web-based email addresses, and want to just stick with your ISP email account? Want to be able to use a web-based interface? Want to be able to integrate this interface into your forums and offer it to your members?

Here we have it - I've created a file that does all that.


Features:

1. Only 1 file to upload, no templates, no file edits!
2. Automatic integration into your forums, with your forum colors and layout.
3. Accesses any POP3 or IMAP email account.
4. Ability to bypass any firewalls that any mail servers may have.
5. Ability to READ, REPLY, REPLY ALL, DELETE, FORWARD, and COMPOSE emails using the interface.
6. Ability to read HTML emails.
7. Ability to ATTACH files.
8. Ability to VIEW / DOWNLOAD ATTACHMENTS.
9. Ability to show HEADERS of emails.
10. Ability to allow certain usergroups access to this.
11. Ability to allow or disallow users from changing their FROM: email address
12. Ability to let yourself change the FROM: email address at at all times.
13. Your user can use this to access their ISP email account, or (Yahoo email or Hotmail premium accounts) via your forums!


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.

Updates:

Version 1.1 - removed the vB2 variable $bburl which was left over.
Version 1.2 - removed the vB2 variable $bbtitle, changed it to vB3, and also fixed up the table heading variable - purely cosmetic.
Version 1.3 - added automatic navbar support.
Version 1.4 - fixed email address server name domains, removed 1 query by caching template, fixed Attachment: alignment.

Screenshots:

1. Login screen
2. List of emails
3. Reading emails
4. Composing emails

Enjoy! :D

corsacrazy 06-17-2004 12:36 PM

cant get it to work what is an example input for username/ server etc pls

just takes me to

my url /email.php?CMD=cookie which is an 404 page

Lurk 06-17-2004 01:03 PM

did you put ads on that hack?
because i just got a popup..

Erwin 06-17-2004 01:05 PM

Quote:

Originally Posted by Lurk
did you put ads on that hack?
because i just got a popup..

Of course not.

Erwin 06-17-2004 01:06 PM

Quote:

Originally Posted by corsacrazy
cant get it to work what is an example input for username/ server etc pls

just takes me to

my url /email.php?CMD=cookie which is an 404 page

It works fine on my server. Do you have IMAP compiled with your PHP?

corsacrazy 06-17-2004 01:44 PM

Quote:

Originally Posted by Erwin
It works fine on my server. Do you have IMAP compiled with your PHP?

yes definatly ... do you want to take a look or can i see yours as a demo?

Boofo 06-17-2004 01:44 PM

The $bburl isn't parsing right. When I click it, I get the same error. I have it set at http://www.yoursite.com/forums/email.php but it keeps going to http://www.yoursite.com/email.php after clicking the button.

corsacrazy 06-17-2004 01:46 PM

Quote:

Originally Posted by Boofo
The $bburl isn't parsing right. When I click it, I get the same error. I have it set at http://www.yoursite.com/forums/email.php but it keeps going to http://www.yoursite.com/email.php after clicking the button.

thats what i was tryin to say basically :) lol cheers man

NuclioN 06-17-2004 01:46 PM

Erwin can there be a reason why a host not want to let people use IMAP based mail?

pjdaley 06-17-2004 02:06 PM

maybe, someone can post the codes to edit the usercp so it'll have its own section, if member has never used the e-mail, it'll make them (if they choose to) give user and pw, and ect. so their account e-mail can get set up.... and also... under private messages on the forumhome, it'll say E-mails: or whatever... :squareeyed:

Ryan Ashbrook 06-17-2004 02:22 PM

Great! Thanks I'll install this A.S.A.P. Been waiting for it. :)

attroll 06-17-2004 04:27 PM

Erwin

Code you fix your first post so that we can read what is withing the PHP codes in the actual post?

350Chevy 06-17-2004 04:27 PM

Quote:

Originally Posted by corsacrazy
thats what i was tryin to say basically :) lol cheers man


Yup, same thing.. it's trying to goto /email.php instead of forums/email.php

I fixed that manually by doing a replace all $bburl/ to $bburl/forums/

Now am unable to recieve e-mail or login.. when entering my e-mail information...

Quote:

Warning: Couldn't open stream {****.com:110/pop3}INBOX in /home/www/lssix/forums/email.php on line 653

350Chevy 06-17-2004 04:31 PM

When trying to access hotmail:

Quote:

ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://www.lssix.com/forums/email.php?

The following error was encountered:

Zero Sized Reply
Squid did not receive any data for this request
Looks like it needs some work.. Will be great when all the bugs are worked out though.. ;)

attroll 06-17-2004 04:42 PM

I changed all the $bburl's and now I get the following error:

Fatal error: Call to undefined function: imap_open() in /home/atphotos/public_html/forum/email.php on line 652

RMS-Chef 06-17-2004 04:43 PM

Odd....

I am getting the following error:
Fatal error: Call to undefined function: imap_open() in /xxxx/xxxx/xxxx/vb/email.php on line 652
(above for POP3 and line 653 when IMAP is selected)

phpinfo shows "mod_imap" as a loaded module....should that cover it?

Dan 06-17-2004 04:45 PM

Nice might use it.

gwhooooey 06-17-2004 07:34 PM

Works fine for me... but I'd rather it was layed out better. Hopefully you'll do something about this in a future update.

Erwin 06-17-2004 07:40 PM

Quote:

Originally Posted by attroll
I changed all the $bburl's and now I get the following error:

Fatal error: Call to undefined function: imap_open() in /home/atphotos/public_html/forum/email.php on line 652

It means you don't have IMAP compiled with PHP.

Erwin 06-17-2004 07:51 PM

Update:

Version 1.1 - removed the vB2 variable $bburl which was left over.

Please download and upload the new email.php to fix the this bug. The redirects should work properly now.

Erwin 06-17-2004 07:56 PM

Quote:

Originally Posted by RMS-Chef
Odd....

I am getting the following error:
Fatal error: Call to undefined function: imap_open() in /xxxx/xxxx/xxxx/vb/email.php on line 652
(above for POP3 and line 653 when IMAP is selected)

phpinfo shows "mod_imap" as a loaded module....should that cover it?

That is odd, as it should work if IMAP is compiled with PHP. Either recompile PHP again with IMAP, or speak to your host.

Jolten 06-17-2004 08:07 PM

>>Call to undefined function: imap_open() in /home/atphotos/public_html/forum/email.php on line 652<<

Same error on my server. I assume it's because I don't have imap configured with php on the server.

DWard 06-17-2004 08:08 PM

Won't let me login, says details are incorrect, but they're not.

Erwin 06-17-2004 08:10 PM

Quote:

Originally Posted by DWard
Won't let me login, says details are incorrect, but they're not.

Try another POP account and see. Some mail servers have high security and don't allow web-based logins. This hack definitely works as my members are using it on my site.

corsacrazy 06-17-2004 08:28 PM

i get this crap aswell

Call to undefined function: imap_open() in /home/public_html/forum/email.php on line 652

Erwin 06-17-2004 08:30 PM

Quote:

Originally Posted by corsacrazy
i get this crap aswell


Call to undefined function: imap_open() in /home/public_html/forum/email.php on line 652

Read my first post - you need IMAP compiled with PHP for POP access to work on PHP.

Merjawy 06-17-2004 09:00 PM

Thanks Erwin

I've tried it ... but :)

Fatal error: Call to undefined function: imap_open() bluh bluh :(

I guess I can't use it for now till I get IMAP support... thnx though

350Chevy 06-17-2004 09:27 PM

I got it to work.. anyway you could get the HTML to work in the e-mails? or no..

350Chevy 06-17-2004 09:29 PM

One other thing.. when anyone sends an e-mail no matter what account or server they're logged into it's always sent from: Nobody [nobody@lssix.propagation.net]

Erwin 06-17-2004 10:07 PM

Quote:

Originally Posted by 350Chevy
One other thing.. when anyone sends an e-mail no matter what account or server they're logged into it's always sent from: Nobody [nobody@lssix.propagation.net]

That's probably because you do not have suexec compiled for php, so "nobody" is the owner of the php file.

My users and myself are able to send emails with the proper From: email information.

deathemperor 06-18-2004 01:42 AM

primium yahoo/hotmail accounts....does that mean free-accounts cannot access via this hack ? if not, this would be incredible since yahoo upgrade free accounts to 100MB.

350Chevy 06-18-2004 02:11 AM

Hotmail's pop server name is pop3hot.com.. I have no idea what Yahoo's is but I'm sure you could find out if you did a little research...

Quote:

That's probably because you do not have suexec compiled for php, so "nobody" is the owner of the php file.
And exactly how would I do this? :ermm:

Erwin 06-18-2004 02:15 AM

Quote:

Originally Posted by 350Chevy
Hotmail's pop server name is pop3hot.com.. I have no idea what Yahoo's is but I'm sure you could find out if you did a little research...



And exactly how would I do this? :ermm:

Recompiling php with suexec, and making sure it's set in httpd.conf. To be honest, your problem is quite odd since most hosts would have it set up properly already.

Erwin 06-18-2004 02:16 AM

Quote:

Originally Posted by deathemperor
primium yahoo/hotmail accounts....does that mean free-accounts cannot access via this hack ? if not, this would be incredible since yahoo upgrade free accounts to 100MB.

You can only access POP mail accounts, so if your yahoo/ hotmail accounts have POP, this would work.

deathemperor 06-18-2004 01:25 PM

Y!mail upgraded but unfortunately free account still cannot use pop.
bad, It won't be able to grow up my board with this cool hack...

350Chevy 06-18-2004 01:55 PM

Use Google's GMail when it's released (if it's not released yet).. It gives you 1000MB of email space.. that's 1 GIG of e-mail.. FREE.. :D

mharmon 06-18-2004 02:02 PM

How can you check to see if you have IMAP compiled? I'm getting the same 404 error.

RetroDreams 06-18-2004 02:14 PM

Erwin,

Lovely piece of work. What would be involved to make templates for this and build around this? This is some solid work and I'd love to integrate it further.

ChurchMedia 06-18-2004 04:56 PM

I saw someone had this same error but didn't see a solution.

PHP Code:

Warningimap_open(): Couldn't open stream {******.net:110/pop3}INBOX in /***path/***to/forum/email.php on line 652 

Any ideas? Great hack concept!

mdunne2004 06-18-2004 06:13 PM

Super Hack, cheers m8


All times are GMT. The time now is 04:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01679 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete