![]() |
vB Mail Reply
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: https://vborg.vbsupport.ru/showthrea...threadid=40595 Instructions:
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. |
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. |
Nice hack
I'll wait for final release :D |
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) |
OK, that would mean you can't connect to the mail server.
Can you PM me your mailserver data? |
Quote:
|
Quote:
This should fix it for all of them. |
wow this seems a awsome hack! great work Colin i will await a RC release and install :D
|
looks like an incredible hack..
i will have to contemplate if i want this option on my site, but wow, nice hack |
awesome...I will install this later
|
Quote:
The e-mail test account that I've created for you is still active.. |
Do you have PHP compiled with the IMAP module? You may need to judging from those errors. I could be wrong.
|
Quote:
|
Great hacks m8
|
wow, i've been waiting for this, who's got it working thus far?
|
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. |
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 ;) ).
|
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? |
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: Quote:
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? |
Quote:
|
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... |
I think that there's a bug in the install script. For example, for pharse 'emailreplyerror', it appears as follows on my board
HTML Code:
Dear, 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. |
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. |
how do you enable the notifications
i cant find a option anywhere im not getting any notifications except the normal thread reply notification ..... |
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... |
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. |
Quote:
|
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? |
Quote:
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 ....... |
Quote:
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. |
Quote:
notify phrase is still not getting updated on my install .... when i search for phrases with notify in the variable name it finds 2 notify 1 is a Standard Phrase the other is : Custom Phrase if i click the edit button on the Custom Phrase one it only shows the contents of the Standard Phrase one .... still not getting updated |
Do you have any languages installed other than the default english?
|
Quote:
|
i have noticed that the default notify has a language id of -1 if you view it in phpadmin and the notify you add has a language id of 0....
maybe this is the problem |
The -1 language is the master language. The problem is, if I change that, the notify phrase gets overwritten with every update, which I don't want...
Making it language 0 should make it the translation into the default language, which is privileged before the master language. So actually, 0 should be right... |
Well... what about we change the 0 to 1...
I'll test it and upload the file if it works, but I think this is it. [€dit]updated, check it out. |
Quote:
however now as long as i have that english translation in place when i submit a reply to a thread with email notification enabled it crashes when i clcik submit to a white page (Blank) must be somehthing in the updated notify that php is not liking any ideas? |
I can't duplicate that. Can you copy the text of your notify.php here?
|
Quote:
i do not see a notify.php in my dir anywhere ....... i have 3.0.1 not sure if thats something new or not |
the phrase notify
/me hits himself on head |
All times are GMT. The time now is 04:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|