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.
  #16  
Old 09 Aug 2004, 17:08
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
I've updated the vbemailreply_install.php and the vbmailreply.php

Ming Keong: I assume you tried with IMAP? I've fixed that as well now. On my board with your data, both IMAP and POP3 work.

you might also want to uninstall and reinstall the hack, as the settings weren't showing correctly.
__________________
Reply With Quote
  #17  
Old 09 Aug 2004, 21:34
Sanity Sanity is offline
 
Join Date: Mar 2002
Iam sorry, but actually I dont understand how it works exactly. Could somebody be so kind to explain it in "baby-words" to me :shy: (not the installation ).
Reply With Quote
  #18  
Old 10 Aug 2004, 06:09
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Your users (the ones that have it turned on) get a notification when new posts are posted. This hack allows them to reply to that notification by email and to insert a post by email. This means they don't have to visit the board, which is good if
-you're at work and aren't allowed in the internet,
-you don't want everything marked read because you just have time to answer that one post
-(I'll think of more )

Are you looking for more technicall details?
__________________
Reply With Quote
  #19  
Old 10 Aug 2004, 08:39
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
The mail server part is working now. Thanks Colin! You've been a great help!

However, like Sanity, and I believe a couple of other users as well, I do not really understand how exactly this hack will work.

I've subscribed to a test thread and replied to it from another user. A notification was received via e-mail. I replied to this e-mail, changing the target e-mail to the e-mail address that the script will process.

The script processed the mail and I received the following error message via e-mail:

-----Original Message-----
From: xxx
Sent: Tuesday, August 10, 2004 3:27 PM
To: xxx
Subject: Error: RE: Reply to post 'First post on new server'

Dear ,

We're sorry, but for the reason stated below we could not process your e-mailed reply.

The error that occurred was:


Below is your reply as received at our server:


Sorry,
xxx Team
All the fields are empty.

Is there a specific format that a e-mail must have before it is recognized by the script? For example, where do I place my password? How do I identify my userid? How do I identify the thread I'm replying to? Is it via the title name? Or do I need to enter the threadid manually somewhere?
Reply With Quote
  #20  
Old 10 Aug 2004, 09:08
Sanity Sanity is offline
 
Join Date: Mar 2002
Originally Posted by Colin F
Your users (the ones that have it turned on) get a notification when new posts are posted. This hack allows them to reply to that notification by email and to insert a post by email. This means they don't have to visit the board, which is good if
-you're at work and aren't allowed in the internet,
-you don't want everything marked read because you just have time to answer that one post
-(I'll think of more )

Are you looking for more technicall details?
OK, basically I understand what its good for and it sounds great to me. If there are some problems I'll come back
Reply With Quote
  #21  
Old 10 Aug 2004, 11:43
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
There is a codeblock that has to be in the subject title of your email. This (should be) is in your notification email. Unless that doesn't get updated right...

It's in the format of: [post-3-test], that being: [1-2-3]
1: "post" or "thread", indicating if this is a reply to a specific post or to the thread itself
2: the post- or threadid. whatever you indicated in 1
3: your email password.

The rest of the subject line (the code is parsed out) will be the subject of your post.
The whole message will be the content of your post. bbcode, [img] and smilies work.

There's another option on 1, "newthread", and 2 being the forumid. But this isn't tested much...
__________________
Reply With Quote
  #22  
Old 11 Aug 2004, 04:43
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
I think that there's a bug in the install script. For example, for pharse 'emailreplyerror', it appears as follows on my board


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

Notice that all the variables are missing. That's the reason why I'm getting blank results for my error messages.

The same problem is also happening to all my other vb mail reply pharses. I've since updated all of them manually.

The 'notify' phrase poses a greater problem. In vb3, there is a notify under the phrase type 'Email body text', and one for 'Email subject text'. Adding a 'notify' phrase to the custom phrase doesn't seem to work. I'm still getting the phrase from the default body and subject phrases. I tried to edit those but they cannot be edited. Tried to add a translation to the default phrases and the result is just blank e-mail notifications.
Reply With Quote
  #23  
Old 11 Aug 2004, 05:52
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
hmmm ok, thanks.

I guess that means adding some \\\'s to the vars...

I'll also check into the notify thing, as soon as I have time.
__________________
Reply With Quote
  #24  
Old 12 Aug 2004, 14:50
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
how do you enable the notifications

i cant find a option anywhere

im not getting any notifications except the normal thread reply
notification .....

Last edited by teksigns; 12 Aug 2004 at 15:06.
Reply With Quote
  #25  
Old 12 Aug 2004, 19:10
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
There are some problems with this hack. For example, when the board sends an e-mail notification with the password, the password should be that of the user receiving the notification. Instead, the board sends the password of the user who last posted.

In addition, some variables in the phrases do not work. I don't think vb can process variables within variables for phrases.

I've managed to brute force my way through everything by changing the variables accordingly, hard coding some stuff, and changing database data directly. It works now.

I'll see if I can consolidate what I've done and post a little something some time next week as I'm really busy this week.

Just off my mind now:
1) Change notify in phrase directly on your mysql database
2) Change the 'post' in the subject to 'thread'
3) Edit the variable within the variable. Hardcode it to $varname[field9] for example, instead of $varname[field$var2]
4) Add the other templates manually into the mysql database
etc...
Reply With Quote
  #26  
Old 12 Aug 2004, 20:59
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
OK, I took a look at most of this stuff. I've changed the install routine so that all the templates work.

I don't understand why you want to do 2) and 3) though, Ming Keong.
__________________
Reply With Quote
  #27  
Old 12 Aug 2004, 21:31
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Originally Posted by Colin F
OK, I took a look at most of this stuff. I've changed the install routine so that all the templates work.

I don't understand why you want to do 2) and 3) though, Ming Keong.
i dont see any updated files .......
Reply With Quote
  #28  
Old 13 Aug 2004, 19:04
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
OK, I'm updating the vbemailreply_install.php file now. For those that already have it installed, just uninstall and install again.

This should fix: -templates (expecially notify) not getting updated or getting updated with wrong values
-wrong userpassword in subjectcode

Any more problems anyone?
__________________
Reply With Quote
  #29  
Old 13 Aug 2004, 19:11
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Originally Posted by Colin F
OK, I'm updating the vbemailreply_install.php file now. For those that already have it installed, just uninstall and install again.

This should fix: -templates (expecially notify) not getting updated or getting updated with wrong values
-wrong userpassword in subjectcode

Any more problems anyone?

are you sure the changes listed in your first post are all thats needed....?

when i installed before and posted a new thread with email notify ...
then i tried to post a reply from another account and get a white page
once i clicked submit .......
Reply With Quote
  #30  
Old 13 Aug 2004, 19:14
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
Originally Posted by Colin F
OK, I took a look at most of this stuff. I've changed the install routine so that all the templates work.

I don't understand why you want to do 2) and 3) though, Ming Keong.

The post variable wasn't working so I added one for the thread. That was why I had to change post to thread. 3) wasn't working on my phrases either so I hardcoded it in instead.
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 17:54.

Layout Options | Width: Wide Color: