Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vB Mail Reply Details »
vB Mail Reply
Mod Version: 0.7Beta, by Colin F (Member) Colin F is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 37
Released: 08 Aug 2004 Last Update: 03 Nov 2004 Downloads: 49
Not Supported Re-usable Code Translations Is in Beta Stage  

vB Email Reply 0.7BETA


What it does:
This allows your members (and you of course) to reply to threads by email. All they have to do is wirte to a specific email address (that you specify) and include a special code in the email subject.

How it works:
A script (vbemailreply.php) is run using the vB3 Cronsystem every minute. This checks a pop3 or imap account for emails and then processes these emails, inserting the data into the database. Then a reply is sent to the sender, stating that either the post/thread got entered correctly or that there was some kind of error.

Is it complicated?
Actually no. There is an install script that does most of the work as well as two small file changes. If you do have problems installing it, contact me for help.

Changes:
New files (2):
/includes/cron/vbmailreply.php
/includes/mimeDecode.php

Changed files(1):
/includes/functions_newpost.php

New database fields/tables(1):
New userfield added by installscript

New templates(0):

Changed templates(0):

New phrases(3):
emailreplyerror
emailreplydone
emailnewthreaddone

Changed phrases(1):
notify

Screenshots:
none

Credits:
The idea and small parts of the script are based on Chen 'FireFly' Avinadav's Email posts into forum hack, found here: http://www.vbulletin.org/forum/showt...threadid=40595

Instructions:
  • Backup all your files as well as your database.
    For help backing up your database, look here: http://www.vbulletin.com/docs/html/m...atabase_backup
  • Upload vbmailreply.php to your /includes/cron/ folder
  • Upload mimeDecode.php to your /includes/ folder
  • Open the file /includes/functions_newpost.php in your favourite PHP editing program.

  • Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  • Add the following as a translation of the phrase notify:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  • Upload the file vbmailreply_install.php to your admincp folder
  • Be sure to either have a POP3 or IMAP email account ready before running the installation. The data will need to be entered.
  • Open your browser and go to http://www.yourforums.com/admincp/vb...ly_install.php and follow the instructions.
  • Delete the vbmailreply_install.php file from your webserver.
Donations:
This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you.

Install:
Don't feel like donating, but still want to thank me for my work? Click the install button to show your appreciation. As a great side effect, you'll get an email update once there is a bigger update or important security fix!

Updates:
09.08.2004 - I've updated the vbemailreply_install.php file, as there was an wrong value while entering the settings.
Also added support for SSL (untested)
Fixed the whole install routine.
03.11.2004 - Updated the installation as well as the vbemailreply.php file.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 08 Aug 2004, 15:38
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Oh my god, it's english!
Well it isn't that hard to translate
Translate the three phrases emailreplydone, emailreplyerror and emailnewthreaddone. The error messages are hardcoded into the vbemailreply.php file, you can change them in there if you like.

Can I use this with a mailserver that requires SSL?
Not yet. I haven't built in that function yet, but if you need it, respond in this thread or PM me, then I'll code it in as well.
__________________

Last edited by Colin F; 08 Aug 2004 at 19:48.
Reply With Quote
  #3  
Old 08 Aug 2004, 18:13
Deska's Avatar
Deska Deska is offline
 
Join Date: Aug 2002
Nice hack
I'll wait for final release
__________________
Regards,

Deska.
Reply With Quote
  #4  
Old 08 Aug 2004, 18:53
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
I keep getting these errors:

Warning: imap_open(): Couldn't open stream {mail.myserver.com:143}INBOX in /site/www/includes/cron/vbemailreply.php on line 41

Warning: imap_headers(): supplied argument is not a valid imap resource in /site/www/includes/cron/vbemailreply.php on line 42

Warning: imap_close(): supplied argument is not a valid imap resource in /site/www/includes/cron/vbemailreply.php on line 263


I've tried both pop3 and imap and neither works. (The mail account has been verified to work on both using other means)

Last edited by Ming Keong; 08 Aug 2004 at 19:20.
Reply With Quote
  #5  
Old 08 Aug 2004, 19:19
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
OK, that would mean you can't connect to the mail server.
Can you PM me your mailserver data?
__________________
Reply With Quote
  #6  
Old 08 Aug 2004, 19:32
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
Originally Posted by Colin F
OK, that would mean you can't connect to the mail server.
Can you PM me your mailserver data?
Ok, sent. Thx!
Reply With Quote
  #7  
Old 08 Aug 2004, 19:50
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Originally Posted by Ming Keong
Ok, sent. Thx!
I updated the vbemailreply.php file, as there seem to be some servers that have to be told that no SSL is required.
This should fix it for all of them.
__________________
Reply With Quote
  #8  
Old 08 Aug 2004, 20:49
P.Jackson P.Jackson is offline
 
Join Date: Sep 2003
Real name: Paul
wow this seems a awsome hack! great work Colin i will await a RC release and install
Reply With Quote
  #9  
Old 08 Aug 2004, 22:08
Osterling Osterling is offline
 
Join Date: Jan 2004
looks like an incredible hack..

i will have to contemplate if i want this option on my site, but wow, nice hack
Reply With Quote
  #10  
Old 09 Aug 2004, 04:59
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Real name: Joe
awesome...I will install this later
__________________
I'll buy your forum!
Reply With Quote
  #11  
Old 09 Aug 2004, 09:36
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
Originally Posted by Colin F
I updated the vbemailreply.php file, as there seem to be some servers that have to be told that no SSL is required.
This should fix it for all of them.
Unfortunately, I'm still getting the same errors with the new vbemailreply.php

The e-mail test account that I've created for you is still active..
Reply With Quote
  #12  
Old 09 Aug 2004, 14:28
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Do you have PHP compiled with the IMAP module? You may need to judging from those errors. I could be wrong.
Reply With Quote
  #13  
Old 09 Aug 2004, 15:58
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
Originally Posted by Erwin
Do you have PHP compiled with the IMAP module? You may need to judging from those errors. I could be wrong.
Yes, my PHP has been compiled with IMAP.
Reply With Quote
  #14  
Old 09 Aug 2004, 16:38
Logikos Logikos is offline
 
Join Date: Jan 2003
Great hacks m8
__________________
Full Time PHP Developer
Please feel free to contact me if you have any paid work to be done.
Reply With Quote
  #15  
Old 09 Aug 2004, 16:43
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Real name: sabe
wow, i've been waiting for this, who's got it working thus far?
__________________
UNDER CONSTRUCTION: Confessionary Hack

Make me a Hack of The Month author: GRPS: Groups Commune
make my hacks, they'll make you famous

unless it's a security concern, please do not pm/im me for support unless you're willing to pay.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:17.

Layout Options | Width: Wide Color: