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.
  #61  
Old 21 Oct 2004, 18:24
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
The installation appears to be fine, however the email that I am getting is empty with the words (no subject) and in the body: [no message]. Even the post itself is missing.

I went in phrases to update just in case, still no luck... Please help!
Reply With Quote
  #62  
Old 21 Oct 2004, 18:29
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Which phrases are included in email? I put in my back up copy and I am still getting the same problem. Now, last night I installed, removed it because I did not have IMAP functionality yet, and I am afraid that the removal removed the whole phrases.
Reply With Quote
  #63  
Old 29 Oct 2004, 06:50
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
I installed and uninstalled so many times. It tells me the same thing everytime: That there is a parse error on eval code at line 11 and that I am missing a ']'. I reverted back and I am still getting the same thing. I'll b getting it with a blank message until I remove the new phrase completely. Which leaves me to believe that the problem is in the phrase.

I looked at the phraseit seems to be fine

~~~~~ NEW ~~~~~
New at \$vboptions[bbtitle]!
You can now reply to the thread by replying to this message. All you need to do is to make sure this code appears in the email subject:
[thread-\$threadinfo[threadid]-\$touser[field\$vboptions[mailserver_profilefieldid]]]
You should also remove this text to ensure your reply is readable by other forum users.
Additionaly, you can start a new thread in the \$foruminfo[title] Forum simply by sending a mail to \$vboptions[mailserver_emailadress] with this code in the subject: [newthread-\$foruminfo[forumid]-\$bbuserinfo[field\$vboptions[mailserver_profilefieldid]]]
~~~~~ NEW ~~~~~
Reply With Quote
  #64  
Old 29 Oct 2004, 07:20
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
yep! $touser[field should be closed in both instances ....before $vboptions
Reply With Quote
  #65  
Old 29 Oct 2004, 07:40
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Smile

I am getting this error

Fatal error: Call to undefined function: imap_open() in /home/xxx/domains/xxx.com/public_html/vb/includes/cron/vbemailreply.php on line 55


The install went fine, the pop account is working fine in outlook. I use port 1010 but changed the port from 110 to 1010 in the php file.

Any other idea's?

Last edited by freeshares1; 31 Oct 2004 at 09:18.
Reply With Quote
  #66  
Old 30 Oct 2004, 00:00
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Originally Posted by Seinfeld
So more time but when i send a mail i have ...

The error that occurred was:
No permission: you do not have permission to post in this forum.

what is wrong?
I get the same error too. What I did was commenting this out. However, when I send a mail with the variable [thread-$threadinfo[threadid]-password], it post, but by itself in no forum, and of course as such, the post cannot be found

When I try to change the thread into [post-$threadinfo[threadid]-password]

then nothing happened.
Reply With Quote
  #67  
Old 31 Oct 2004, 09:17
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Originally Posted by freeshares1
I am getting this error

Fatal error: Call to undefined function: imap_open() in /home/xxx/domains/xxx.com/public_html/vb/includes/cron/vbemailreply.php on line 55


The install went fine, the pop account is working fine in outlook. I use port 1010 but changed the port from 110 to 1010 in the php file.

Any other idea's?
Any idea's or suggestions?

Thanks in advance
Reply With Quote
  #68  
Old 31 Oct 2004, 21:00
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
I have fixed my error it was my php not compiled with imap so thats all good and the cron works but the emails i recieve are blank.

and i am getting this error as others are

Parse error: parse error, unexpected T_VARIABLE, expecting ']' in /home/xxxl/domains/xxx/public_html/vb/includes/functions_newpost.php(1091) : eval()'d code on line 11

Last edited by freeshares1; 31 Oct 2004 at 21:04.
Reply With Quote
  #69  
Old 31 Oct 2004, 21:04
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
blank emails? Make sure you setup a username and password in the settings. After that, If you manage to post in forums, please let me know how you did it.
Reply With Quote
  #70  
Old 31 Oct 2004, 21:09
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
and for the variable error that you are getting, it has to do with the phrase 'notify' where they are missing a ']' . But that is another story. You'll find out that variable profilefiled will never pass and you'll end up harcoding it directly in code.
Reply With Quote
  #71  
Old 01 Nov 2004, 05:29
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
I now have this working (kind of) i will post what i have done later today
Reply With Quote
  #72  
Old 01 Nov 2004, 05:40
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Thanks in advance. I am anxious to learn what you have done for the no forum permission error message.
Reply With Quote
  #73  
Old 01 Nov 2004, 07:23
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Firstly if you get the following


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

This means your server's PHP is not compiled with IMAP. This is a core requirement of this hack. If you have root access to your server you can recompile php with IMAP if not ask your host.

As Lionel posted earlier in thread i had to change the following in the phase notify. This was to fix the fact that i was getting blank email's


FROM

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

TO

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


I am still playing with it but as it stands i can send replies to threads i havent yet checked to see if i can create new thread. Sorry i have never had premission problem.


Colin - Great hack

Last edited by freeshares1; 01 Nov 2004 at 08:01.
Reply With Quote
  #74  
Old 01 Nov 2004, 19:02
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
ok after further investigations i have noticed the following

1. i have to put the subject in the following format [newthread-2-password]] if i do it as [newthread-2-password] i get a message saying i have not reached the min no of characters. This leaves the extra ] in the subject.
2. The cron doesnt seem to work the only way i can make it run is by manually running it twice (even if i set it up using my server cron job)

any idea's are most welcome.
Reply With Quote
  #75  
Old 01 Nov 2004, 19:06
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
you'll find out that this does not work

1-the cron will never work
2-new users do not have email password automatic
3-you'll never be able to post in forums

and more...

my suggestion is to download chen's version and try to analyze it as I am doing.

Last edited by Lionel; 01 Nov 2004 at 19:08.
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 07:33.

Layout Options | Width: Wide Color: