PDA

View Full Version : vB Mail Reply


Colin F
08-07-2004, 10:00 PM
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 (https://vborg.vbsupport.ru/member.php?userid=1)'s Email posts into forum hack, found here: https://vborg.vbsupport.ru/showthread.php?s=&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/main/manual_database_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.

FIND (around line 196):

$post['poststarttime'] = trim($post['poststarttime']);

ADD BELOW:

if ($post['isemail']) { $bbuserinfo = $post['userinfo']; }


FIND (around line 273):

if ($vboptions['logip'])

REPLACE WITH:

if ($vboptions['logip'] AND !$post['isemail'])


FIND (around line 321):

if ($prevpostfound)
{

ADD BELOW:

if ($post['isemail'])
{
return ('dupepost');
}
else
{


FIND:

}
else
{
if ($parentid == 0 AND $type != 'thread')

REPLACE WITH:

}
}
if (!$prevpostfound)
{
if ($parentid == 0 AND $type != 'thread')


FIND:

$useremails = $DB_site->query("
SELECT user.*, subscribethread.emailupdate
FROM " . TABLE_PREFIX . "subscribethread AS subscribethread, " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "usergroup AS usergroup ON (usergroup.usergroupid = user.usergroupid)
WHERE subscribethread.threadid = $threadid AND
subscribethread.emailupdate IN (1, 4) AND
subscribethread.userid = user.userid AND
user.usergroupid <> 3 AND
user.userid <> " . intval($userid) . " AND
user.lastactivity > " . intval($lastposttime['dateline']) . " AND
(usergroup.genericoptions & " . ISBANNEDGROUP . ") = 0
");

REPLACE WITH:

$useremails = $DB_site->query("
SELECT user.*, userfield.*, subscribethread.emailupdate
FROM " . TABLE_PREFIX . "subscribethread AS subscribethread, " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON (userfield.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "usergroup AS usergroup ON (usergroup.usergroupid = user.usergroupid)
WHERE subscribethread.threadid = $threadid AND
subscribethread.emailupdate IN (1, 4) AND
subscribethread.userid = user.userid AND
user.usergroupid <> 3 AND
user.userid <> " . intval($userid) . " AND
user.lastactivity > " . intval($lastposttime['dateline']) . " AND
(usergroup.genericoptions & " . ISBANNEDGROUP . ") = 0
");


FIND:

$evalemail["$languageid"] = '$message = "' . str_replace("\\'", "'", addslashes(iif(empty($email_text[PHRASETYPEID_MAILMSG]), $emails['-1'][PHRASETYPEID_MAILMSG],$email_text[PHRASETYPEID_MAILMSG]))) . '";'.

ADD ABOVE:

$touserfieldcode = "field".$vboptions[mailserver_profilefieldid];
$subjectcode_reply = "[thread-".$threadinfo[threadid]."-".$touser[$touserfieldcode]."]";
$subjectcode_newthread = "[newthread-".$foruminfo[forumid]."-".$touser[$touserfieldcode]."]";
Add the following as a translation of the phrase notify:

Hello $touser[username],

$bbuserinfo[username] has just replied to a thread you have subscribed to entitled - $threadinfo[title] - in the $foruminfo[title] forum of $vboptions.

This thread is located at:
$vboptions/showthread.php?t=$threadinfo[threadid]&goto=newpost

~~~~~ 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:
$subjectcode_reply
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_emailaddress] with this code in the subject: $subjectcode_newthread
~~~~~ NEW ~~~~~

Here is the message that has just been posted:
***************
$pagetext
***************

There may be other replies also, but you will not receive any more notifications until you visit the forum again.

Yours,
$vboptions[bbtitle] team

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:

To unsubscribe from this thread, please visit this page:
$vboptions[bburl]/subscription.php?do=usub&t=$threadinfo[threadid]

To unsubscribe from ALL threads, please visit this page:
$vboptions[bburl]/subscription.php?do=viewsubscription&folderid=all
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/vbmailreply_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.
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/xclick/business=colin%40jesus.ch&no_shipping=1&cn=vBulletin.org+Username&tax=0&currency_code=USD)

[b]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!
https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=68113)

[b]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.

Colin F
08-08-2004, 01:38 PM
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.

Deska
08-08-2004, 04:13 PM
Nice hack
I'll wait for final release :D

Ming Keong
08-08-2004, 04:53 PM
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)

Colin F
08-08-2004, 05:19 PM
OK, that would mean you can't connect to the mail server.
Can you PM me your mailserver data?

Ming Keong
08-08-2004, 05:32 PM
OK, that would mean you can't connect to the mail server.
Can you PM me your mailserver data?

Ok, sent. Thx!

Colin F
08-08-2004, 05:50 PM
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.

P.Jackson
08-08-2004, 06:49 PM
wow this seems a awsome hack! great work Colin i will await a RC release and install :D

Osterling
08-08-2004, 08:08 PM
looks like an incredible hack..

i will have to contemplate if i want this option on my site, but wow, nice hack

TheComputerGuy
08-09-2004, 02:59 AM
awesome...I will install this later

Ming Keong
08-09-2004, 07:36 AM
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..

Erwin
08-09-2004, 12:28 PM
Do you have PHP compiled with the IMAP module? You may need to judging from those errors. I could be wrong.

Ming Keong
08-09-2004, 01:58 PM
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.

Logikos
08-09-2004, 02:38 PM
Great hacks m8

sabret00the
08-09-2004, 02:43 PM
wow, i've been waiting for this, who's got it working thus far?

Colin F
08-09-2004, 03:08 PM
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.

Sanity
08-09-2004, 07:34 PM
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 ;) ).

Colin F
08-10-2004, 04:09 AM
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?

Ming Keong
08-10-2004, 06:39 AM
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?

Sanity
08-10-2004, 07:08 AM
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 ;)

Colin F
08-10-2004, 09:43 AM
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...

Ming Keong
08-11-2004, 02:43 AM
I think that there's a bug in the install script. For example, for pharse 'emailreplyerror', it appears as follows on my board

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,
Team

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.

Colin F
08-11-2004, 03:52 AM
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.

teksigns
08-12-2004, 12:50 PM
how do you enable the notifications

i cant find a option anywhere

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

Ming Keong
08-12-2004, 05:10 PM
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...

Colin F
08-12-2004, 06:59 PM
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.

teksigns
08-12-2004, 07:31 PM
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 .......

Colin F
08-13-2004, 05:04 PM
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?

teksigns
08-13-2004, 05:11 PM
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 .......

Ming Keong
08-13-2004, 05:14 PM
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.

teksigns
08-13-2004, 05:20 PM
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?


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

Colin F
08-13-2004, 05:22 PM
Do you have any languages installed other than the default english?

teksigns
08-13-2004, 05:24 PM
Do you have any languages installed other than the default english?

no i do not .

teksigns
08-13-2004, 05:41 PM
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

Colin F
08-13-2004, 06:04 PM
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...

Colin F
08-13-2004, 06:22 PM
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.

teksigns
08-13-2004, 06:33 PM
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.

well that get me by the first problem ....

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?

Colin F
08-13-2004, 06:55 PM
I can't duplicate that. Can you copy the text of your notify.php here?

teksigns
08-13-2004, 07:11 PM
I can't duplicate that. Can you copy the text of your notify.php here?


i do not see a notify.php in my dir anywhere .......

i have 3.0.1

not sure if thats something new or not

Colin F
08-13-2004, 07:15 PM
the phrase notify

/me hits himself on head

teksigns
08-13-2004, 07:23 PM
the phrase notify

* Colin F hits himself on head


i have uninstalled already .....


but it looked just like the one in the install file.....

i didnt see any errors or anything ......

Colin F
08-13-2004, 07:34 PM
It should be the one in the install file without the backslashes...

Can you PM me a link to your forum so that I can have a look at the problem?

eLiTeGuRu
08-23-2004, 06:26 AM
Is there a way to make a new thread, instead of only replies?

Colin F
08-23-2004, 03:55 PM
yes there is. just use the code [newthread-3-abcde], that being [newthread-(forumid)-(emailpass)]

The code as it is now in the first post won't work right though, you'll probably have to adjust some things (as mentioned by someone in the thread) until I have time to update it.

Lahey
08-23-2004, 09:28 PM
I hope you are successfull with creating this hack.
I am also interested in additionally using this "hack" to post new threads by email. Here is my suggestion of a feature I could use.
A feature that will allow for me to:
1st. setup a new forum just for the following.
2. setup a new user
3. setup a pop3 account for that user.
4. all emails sent to that user's email account be posted as a new thread under the newly created forum?

Reason for this feature would be for mimicking another of our forums so that we have a searchable archive.

How close are you to having a RC or screenshots?

My 3rd question is: Is this turned on separatly from "subscribing to a forum" or "subscribing to a thread" to get the emails that this hack allows to reply to?

This will be a great addon/hack.
Thanks

Seinfeld
09-02-2004, 06:14 PM
I have this Error

<<<
Warning: imap_open(): Couldn't open stream {pop3.domain.de:110/pop3/notls}INBOX in /forum.path/includes/cron/vbemailreply.php on line 55

Warning: imap_headers(): supplied argument is not a valid imap resource in /forum.path/includes/includes/cron/vbemailreply.php on line 56

Warning: imap_close(): supplied argument is not a valid imap resource in /forum.path/includes/includes/cron/vbemailreply.php on line 277
>>>
Greetings

Colin F
09-03-2004, 06:02 PM
Did you change the settings to point to your pop3 server?
Can you reach the server with Outlook?

Seinfeld
09-03-2004, 06:15 PM
Yes. I have change to my pop3 Server and imap. but with imap or mit a another email addy is the same problem (can call mails mit outlook).

Edit: hmmm ... i need smtp authenfication first. can this script?

Greetings
Seinfeld

Colin F
09-03-2004, 06:25 PM
Das hat nichts mit SMTP zu tun.

Kannst du mir bitte mal Zugangsdaten zu deinem Board senden per PN damit ich es mir anschauen kann? Danke

Seinfeld
09-05-2004, 09:29 AM
Ich habe es nun.
Allerdings krieg ich nun imme

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

-=Sniper=-
09-06-2004, 01:08 AM
I know its in the thread about creating a new thread using a email! but maybe you could make it more clear? :)

this would be great for posting news in my news forums, as I get news emails!

thx

venomx
09-06-2004, 09:00 AM
I am going to wait for an RC release to install this but I have a few questions.
Will the emails we send back increase our post counts?
Will the forumhome Last Post stuff update?

I just remembered I am not sure Ill be able to install this because I have the uShop hack installed and it gives points for new threads/posts.... :(

Colin F
09-06-2004, 09:42 AM
I am going to wait for an RC release to install this but I have a few questions.
Will the emails we send back increase our post counts?
Will the forumhome Last Post stuff update?

I just remembered I am not sure Ill be able to install this because I have the uShop hack installed and it gives points for new threads/posts.... :(
Yes, Emails you send into the forum will increase the postcount. The forumhome stuff should also update.
The whole part where it inserts the post is done by the same function that entering a normal post uses.

I haven't tested it with the uShop hack, but I don't think there should be any conflicts...

venomx
09-06-2004, 10:25 AM
Ok I just asked because I added Article Bot and it posts news from a RSS feed... well when it posts it posts a few threads each time (3 posts every 7 hours) but the forum home always shows the first thread it made that time as the newest. :(
And it was not getting uShop points for the posts but does for any replies. :(

breathwork
09-10-2004, 12:28 PM
I have it working with the help of the amazing colin..... thanks and it is a truly great hack... :banana:

Bergman
09-28-2004, 05:40 PM
It seems to be a great hack and i probably will install it later if i got my email settings clear before.

Beermonster
10-14-2004, 08:02 AM
I've tried installing this and I get

Step 4) Obtain Mailserver Data


Fatal error: Call to undefined function: print_form_header() in /home/vsites/xxx/htdocs/forums/vbemailreply_install.php on line 360


If I try to uninstall I get

Step 10) Removing Profilefield

error

Looks like a great hack, just can't install it :(

Seinfeld
10-19-2004, 01:24 PM
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? :(

sfowler39
10-19-2004, 02:04 PM
I get this error, what should I do to fix this?

Process vB Email Replies

Fatal error: Call to undefined function: imap_open() in c:\inetpub\wwwroot\vb\includes\cron\vbemailreply.p hp on line 55

sfowler39
10-20-2004, 12:15 PM
it was working fine, but now its stopped and I tried to uninstall it to do a reinstall and this is what I get.

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'setting_mailserver_profilefieldid_title', 'Email Reply Password Profile Field', '5000')
mysql error: Duplicate entry 'setting_mailserver_profilefieldid_title-0-5000' for key 2

mysql error number: 1062

Date: Wednesday 20th of October 2004 08:02:19 AM
Script: http://hrc/vb/admincp/vbemailreply_install.php?step=2
Referer:
Username: sfowler
IP Address: 140.95.51.235


Also if I go to the control panel there are lots of email password fields that have now appeared.

picture attached will show you what I mean, HOW CAN I FIX THIS PLEASE.

Lionel
10-21-2004, 05:24 PM
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!

Lionel
10-21-2004, 05:29 PM
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.

Lionel
10-29-2004, 05:50 AM
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 ~~~~~

Lionel
10-29-2004, 06:20 AM
yep! $touser[field should be closed in both instances ....before $vboptions

freeshares1
10-29-2004, 06:40 AM
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?

Lionel
10-29-2004, 11:00 PM
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.

freeshares1
10-31-2004, 08:17 AM
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

freeshares1
10-31-2004, 08:00 PM
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

Lionel
10-31-2004, 08:04 PM
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.

Lionel
10-31-2004, 08:09 PM
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.

freeshares1
11-01-2004, 04:29 AM
I now have this working (kind of) i will post what i have done later today

Lionel
11-01-2004, 04:40 AM
Thanks in advance. I am anxious to learn what you have done for the no forum permission error message.

freeshares1
11-01-2004, 06:23 AM
Firstly if you get the following

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

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
\$vboptions!
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]]]


TO
\$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[B]]$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]]]



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 ;)

freeshares1
11-01-2004, 06:02 PM
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.

Lionel
11-01-2004, 06:06 PM
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.

freeshares1
11-01-2004, 06:19 PM
I can do 3 no 2 i am not bothered about as it will use it more for moderator's and admin's it's no 1 i need to sort out

I fully understand this is a beta and am happy to work with colin to make this a final release.

Colin F
11-01-2004, 07:54 PM
Just wanted to mention that I'm currently working on fixing this up.

I'll update the first post with all the new information when I'm done.

freeshares1
11-01-2004, 07:59 PM
thanks Colin and if you need any help or testers please let me know. (pm me)

We appreicate your support:)

Lionel
11-01-2004, 08:04 PM
thanks Colin. We have been struggling on that one.

Colin F
11-03-2004, 11:26 AM
OK, I updated the first post with some better installation instructions and edited the vbemailreply.php file a bit.

I think I'll have to reupload an updated install file once I'm at home... but otherwise it should work.
Please wait for that (another 3 or 4 hours) and then test it.

freeshares1
11-03-2004, 11:43 AM
great thanks colin, Would you advise that we uninstall and reinstall? Or just replace the vbemail_reply.php?

Colin F
11-03-2004, 11:46 AM
great thanks colin, Would you advise that we uninstall and reinstall? Or just replace the vbemail_reply.php?
you don't have to uninstall, but I advise checking that you have finished all the steps documented in the first post, as I have added steps...

freeshares1
11-03-2004, 11:47 AM
ok thanks i will let you know how i get on :)

freeshares1
11-03-2004, 06:30 PM
Colin, Thanks for the revised version.

Below are my findings and what i have done.

Actions i took

uploaded vbemailreply.php

Findings

I can now send to the forum :) using thread and newthread without adding the extra ] on the end. :) :) :)



My main problem is now is the cronjob. Maybe i am doing it wrong but i cannot get the mail to be delivered without manually running the cron job twice from within the VB control. I have also tried to run the job from my web hosting CP neither work.

I have also noticed when creating a new thread i noticed that it does not bring the title in the conformation email


Dear xxx,

Your thread "" was succesfully received and entered in the forum
xxx!
Here is a direct link to your post:
http://www.xxx/vb/showthread.php?t=

Thank you,
xxxx


I have tested the following and all work fine

[Quote]
smilies
Bold Text

I am going to test further.

Thanks again for your continued support.

Colin F
11-03-2004, 06:34 PM
Colin, Thanks for the revised version.

Below are my findings and what i have done.

Actions i took

uploaded vbemailreply.php

Findings

I can now send to the forum :) using thread and newthread without adding the extra ] on the end. :) :) :)



My main problem is now is the cronjob. Maybe i am doing it wrong but i cannot get the mail to be delivered without manually running the cron job twice from within the VB control. I have also tried to run the job from my web hosting CP neither work.

I have tested the following and all work fine

[Quote]
smilies


I am going to test further.

Thanks again for your continued support.
about the cron job...

this is done using the normal cron system.

If you have it set up on a testboard, you might not have enough activity to trigger the cron...


Also, all the bbcodes/smilies should work, as it uses the same function.

Lionel
11-03-2004, 08:12 PM
I keep on getting the same 'no permission to post in forums'

Also, when replying to a thread, *not* posting a new one If I only put the code in there without a subject, it is all coming backing back to me.

freeshares1
11-03-2004, 08:22 PM
if i had to guess it might be a conflict with another hack ? or maybe a difference between 3.0.3 and 3.0.1? If it helps colin i am using 3.0.3 un hacked.

Lionel
11-03-2004, 08:31 PM
I am using 3.01 if that means something

Lionel
11-03-2004, 08:39 PM
I commented out that section for the no forum permission and now I am getting a forum closed error

Lionel
11-03-2004, 09:11 PM
now I am convinced it has to do with the version. It does not see the forumid. When I comment out in vbreply both sections for the no forum permission and the forum closed error, I get a mysql error for an empty forumid

lastthread = '\This is the test thread\'',
lastthreadid = 1614,
lasticonid = 0
WHERE forumid =
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9

mysql error number: 1064

freeshares1
11-04-2004, 06:50 AM
Colin,

I found a cure to the cron problem :) i needed to add

include_once './includes/cron/vbemailreply.php';

in my index.php above

eval('$navbar = "' . fetch_template('navbar') . '";');

I believe it add a query to yuo home page doing this but it works for me.

Also on a different note you might want to add a notice on the first post stating that PHP compiled with IMAP is a requirement.

Seinfeld
11-04-2004, 07:23 AM
I have reinstall but the self problem.

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

:(

freeshares1
11-04-2004, 07:27 AM
Seinfeld,

What version is your VB? What hack have you installed that user functions_newpost.php?

Colin F
11-04-2004, 07:35 AM
Colin,

I found a cure to the cron problem :) i needed to add

include_once './includes/cron/vbemailreply.php';

in my index.php above

eval('$navbar = "' . fetch_template('navbar') . '";');

I believe it add a query to yuo home page doing this but it works for me.

Also on a different note you might want to add a notice on the first post stating that PHP compiled with IMAP is a requirement.
Well, that's not really a cure.

What that does is just add a call to vbemailreply.php on each call to your index.php, which defeats the purpose of the cron.
On a busy board, that's not really an option...

Seinfeld
11-04-2004, 07:36 AM
@ freeshares1: I have the version 3.03 and hacks have: vBXirc, SMS System and WelcomePanelHack.

Beermonster
11-04-2004, 08:02 AM
All I get is
The error that occurred was:
Invalid email password: the email password you specifed does not match the one in the database

I had several problems installing it and the only way I could uninstall it was comment out part 10 of the install script, but it didn't uninstall everything, so I've ended up with a load of password profile fields, I've deleted them all but I don't think it is reading the right one now, how do I find out which field it is reading?

Colin F
11-04-2004, 10:57 AM
The fieldid is a setting in your vBulletin Options.

seems like I'll have to go over the uninstall routine as well...

Lionel
11-04-2004, 04:57 PM
I have reinstall but the self problem.

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

:(

I have that problem too on 3.01. Regardless that I am admin, or that I post in an open to everybody forum.

I've got imap compiled and the mail server is pop3

Lionel
11-04-2004, 11:06 PM
Before I give up completely, can someone confirm please that this is working or not working on 3.01?

Colin F
11-05-2004, 09:42 AM
Unfortunatelly, I don't have any vB 3.0.1 files, so I can't compare them to see what changes have been made.

Lionel
11-05-2004, 10:48 AM
would that be ok with vbulletin and you if I zip and mail you a copy of function_newpost with licence info removed?

Colin F
11-05-2004, 03:45 PM
Oh, just thought of something: are you sending the emails from the email account that is associated with your user?

Lionel
11-05-2004, 05:18 PM
sure of course. I receive the notification and I click reply.

dethfire
11-05-2004, 06:15 PM
awesome idea, I'm excited for a stable version

Lionel
11-10-2004, 01:46 AM
Something new is happening. I enabled access masks and gave myself permissions all over. Now the error message is no longer saying that I have no permissions to access FORUMS. The permissions error is about accessing THREAD. I disabled access masks, and it still says no permission to post in thread.

Colin F
11-10-2004, 04:40 AM
That would actually mean that the thread is hidden or locked or something...

I'll have a look at it when I get some time.

Lionel
11-11-2004, 02:54 AM
I tought you should be the first to know: I am able to insert a thread.
The problem was from another hack....

Thank you for a super hack!!! :banana:

Lionel
11-11-2004, 03:15 AM
But right after that, I got an error with [newthread] same old permissions and other post with [thread] in same forum were not successful. Maybe there is a time limit in script to avoid flooding?

Lionel
11-11-2004, 01:35 PM
is there a way to bypass site's email account and directly put in the email which is sending in the subscribed threads?

Colin F
11-11-2004, 02:01 PM
is there a way to bypass site's email account and directly put in the email which is sending in the subscribed threads?
I've looked at that as well, but from what I see, that would require a change to the vbmail() function...

sabret00the
11-17-2004, 11:53 AM
can i ask why is this still in beta?

Colin F
11-17-2004, 02:41 PM
can i ask why is this still in beta?
I've still got some things to fix up, and there was also something I wanted to add, allthough I can't remember what it was at the moment :)

Lionel
11-17-2004, 03:07 PM
Colin, a stupid question does this hack deals with sessions? I was able to successfuly send a thread once, this after I recreated my sessions database. Also, I have been trying to send all the emails while I was online (webmail). Maybe because it knew I was online on the site and that couldn't be me sending an email? I know that's silly, but I must explore all the possibilities....

scottct1
11-18-2004, 03:22 PM
Ok I just tried installing this...

When an email is being sent out from the server it comes from the email address specified in my vbulletin options, not the special email box I setup for replies to go to.

I want users to be able to click reply and reply to their messages not have to remove the address in the to box and then use the correct address.

How do I fix this?

Thanks!

KidCharlemane
11-19-2004, 03:17 AM
I'm also getting blank emails from the forum when my posts are updated. Also no subject line. I've changed both instances of the notify phrase to match the required text but still nothing. Any ideas?

Lionel
11-19-2004, 04:38 PM
I'm also getting blank emails from the forum when my posts are updated. Also no subject line. I've changed both instances of the notify phrase to match the required text but still nothing. Any ideas?

try to update your phrases ...

Lionel
11-19-2004, 04:44 PM
More and more puzzling to me. It works from outlook express, but not from webmail based on same server... like I posted above. Does this make sense?

nexialys
11-26-2004, 02:02 PM
question... why adding a new userfield for a email, when users already have their email embeded in their userinfos ?!

i don't see the use of a second email added to the userfields, using these userfields is always a crap... why not simply use the actual email, or add a new field in the user table for a secondary email ?!

anyway, i may make the change myself (personal thoughts, so personal use!)

Colin F
11-26-2004, 03:41 PM
question... why adding a new userfield for a email, when users already have their email embeded in their userinfos ?!

i don't see the use of a second email added to the userfields, using these userfields is always a crap... why not simply use the actual email, or add a new field in the user table for a secondary email ?!

anyway, i may make the change myself (personal thoughts, so personal use!)
nexialys, it seems you didn't look through the code all the way. There isn't any email in the additional userfield, what's added is a emailpassword.


Also, I don't see why you say the userfields are crap... To me they're one of the best things in vB3!

nexialys
11-26-2004, 04:15 PM
nah, maybe it's useful, but badly built... you need to geopardise the field# instead of having a hardcoded name or id...

and email password or new email, i don't see why you don't just give it a try in the user table itself... would make less management from the system, and anyway... it's my own point of view.. you have yours.. ;)

Viks
12-09-2004, 03:56 AM
this
Is
a
great
hack

:)

will wait for final release

zukowskig
12-10-2004, 01:50 PM
Would anyone be interested in helping us get this installed? We'd be willing to pay for services....

Please email me at garyz@easysoftsolutions.com...

XanaduRanch
12-12-2004, 04:31 PM
I'm also getting blank emails from the forum when my posts are updated. Also no subject line. I've changed both instances of the notify phrase to match the required text but still nothing. Any ideas?
Had the same problem after fixing a few others an uninstalled it. Guess we'll have to wait for a non-beta.

In the next version would it also be too difficult just to set up one e-mail account, that whenever an e-mail is sent to that account, a new thread or new post is created from the receipt of the e-mail, automatically? That is all we need for our purposes. But it'd be nice to have the rest as well.

RCSwap
12-22-2004, 03:15 AM
Just blank emails here too. :(

zukowskig
01-03-2005, 07:52 PM
Would anyone be interested in helping us get this installed? We'd be willing to pay for services....

Please email me at garyz@easysoftsolutions.com...


The only taker I got on this was Colin F, but he has seemed to have disappeared and has not finished the job. Anyone else want to help?

H2k
01-07-2005, 10:30 PM
wow, i've been waiting for this, who's got it working thus far?
why u dont make that they can also creat Thread by useing email ? kind like Yahoo Group

i remember there is a mod in phpBB but not sure .. iread about it 3 year ago ..

poeple can reply and creat thread all by use email and how join the group for example Malling List Group and u must make a forums so allthe thread will be created there it iwll be send to this group and they can reply to any thread in their email and they also can creat thread by use email

not sure about this info .. but i remember it was old LOL in phpBB

anyway nice hack i need to install it..

DjTaz
01-12-2005, 07:39 PM
I just tried this myself on version 3.0.5 and it didnt kill my boards or anything , but i found that none of my mails were sending for the subscribed threads anymore...

Excellent idea, its a pity that it isnt working perfectly on all systems yet , but excellent work on it so far Colin ... hope you dont get discouraged .. it would be a shame to give up on it since its so good and almost there as regards working 100%

Thanks anyway

Viks
02-14-2005, 02:50 PM
i cant install beta as i dont have a test forum.. where i can try it out... but i am eagerly looking forward for the final release.... keep us posted!

eva01_
02-14-2005, 03:25 PM
this is a fantastic idea, i have someone that has been looking for this.

i hope that Colin continues development on it ^^.

i am going to install it on my test forum to see if it works when i get home

DjTaz
03-05-2005, 10:37 AM
Anything further on this ? Id love to try it again and see if its doing any better ?

Freezerator
03-23-2005, 09:29 AM
Is there still any development on this great hack? I really want to use it, but i rather don't use something beta.

Willing to donate if someone repairs the bugs and makes it a final?

nexialys
03-23-2005, 12:09 PM
Willing to donate if someone repairs the bugs and makes it a final?
you can always ask in the Services Requests forum if you want this made by a commercial coder$$$... else, you have low chances these guys pass across your request!

Aylwin
03-30-2005, 05:54 AM
Has anyone got this working with version 3.0.7? The main reason I decided on vBulletin was because of this hack. Yes, I realize it's still in Beta version but it's nevertheless very frustrating that I can't get it to work.

First, I was getting blank emails. After removing the code below, emails arrive correctly:
Additionaly, you can start a new thread in the $foruminfo[title] Forum simply by sending a mail to $vboptions[mailserver_emailaddress] with this code in the subject: $subjectcode_newthreadThis means I can't start new threads but that's okay... for now. By the way, I also tried the correction posted by freeshares1 but that didn't work either.

Then, when I try to reply I get the error "No permission: you do not have permission to post in this forum." This is exactly the same as Lionel's error where the forumID is empty for some reason (I, too, commented out the part that checks permissions). However, in my case I have no other hacks installed so this is probably related to the version.

Could Colin or someone please please give some advice?

Thanks!
Aylwin

P.S. Is there any way to configure this so that it only processes emails with the code in the subject? The email address I'm using is also used for other purposes.

Aylwin
04-01-2005, 02:20 PM
Finally got it working! :banana: Now I can say that this is a truly wonderful mod! In my opinion, it should be a standard feature on all commercial forum software!

Here's how I got it to work on my forums:

In vbemailreply.php, find this:
###### GET THE THREAD OR POSTID AND OTHER INFO ######
if (preg_match('#\[post-([0-9]+)-([a-z0-9]+)\]#i', $subject, $subjectparts)) {
$postid = intval($subjectparts[1]);
} else if (preg_match('#\[thread-([0-9]+)-([a-z0-9]+)\]#i', $subject, $subjectparts)) {
$threadid = intval($subjectparts[1]);
} else {
preg_match('#\[newthread-([0-9]+)-([a-z0-9]+)\]#i', $subject, $subjectparts);
$forumid = intval($subjectparts[1]);
$type = "thread";
}and replace with this:
###### GET THE THREAD OR POSTID AND OTHER INFO ######
if (preg_match('/\[post-([0-9]+)-([a-z0-9]+)\]/i', $subject, $subjectparts)) {
$postid = intval($subjectparts[1]);
} else if (preg_match('/\[thread-([0-9]+)-([a-z0-9]+)\]/i', $subject, $subjectparts)) {
$threadid = intval($subjectparts[1]);
} else if (preg_match('/\[newthread-([0-9]+)-([a-z0-9]+)\]/i', $subject, $subjectparts)) {
$forumid = intval($subjectparts[1]);
$type = "thread";
}
I also had a few problems with the confirmation emails. So a few changes to vbemailreply_install.php are needed.

Around line 440, find:
\$vboptions[bburl]/showthread.php?p=$newpost[postid]#post\$newpost[postid]and replace with:
\$vboptions[bburl]/showthread.php?p=$newpost[postid]Around line 447, find:
Your thread \"\$threadinfo[title]\" was succesfully received and entered in the forum \$foruminfo[title]!
Here is a direct link to your post:
\$vboptions[bburl]/showthread.php?t=\$threadinfo[threadid]and replace with:
Your thread entitled "$title" was successfully received and entered in the forum $foruminfo[title].

Here is a direct link to your post: $vboptions[bburl]/showthread.php?t=$newpost[threadid]Or in my case, I simply modified the necessary phrases after the installation.

A few things I wish it could do though:
1) If I reply via email, I would like to resume receiving the reply notification email (as if I had visited the forum and viewed the subscribed thread)).
2) If I start a new thread via email, I would like to be automatically subscribed to that thread if that is the default setting in my profile.
3) Long lines of text are automatically cut and continued on the next line after about 70 characters. That's fine but there also a "=" added at the end of each line. I wish it wouldn't do that.

I think there were one or two more but I can't remember. :rolleyes:

Anyway, great mod! I hope further development is done this.

Lionel
04-01-2005, 03:58 PM
I can confirm that works

Aylwin
04-04-2005, 09:26 AM
I've fixed the problem about lines being automatically cut and the "=" sign showing up! :)

In vbemailreply.php, at around line 92, find:
$mailmessage = imap_body($mailbox,$msgno);after it, add a new line:
$mailmessage = quoted_printable_decode ($mailmessage);

Viks
04-08-2005, 01:37 AM
Is there a place for admins to switch the option ON/OFF for users to start and stop vBmail Reply option for members/usrgroups.

Viks
04-10-2005, 11:48 PM
anyone.. !?

please reply..

I just want to know if there is a way to send emails out to members with each new post that is made on the board.. but TURN off vBMail Reply option.

WILL APPRECIATE ANY REPLY

Eternal2u
04-12-2005, 05:40 PM
a couple questions..

will this slow a large forum down..since it has to draw each email reply that has been sent in..

my concern is a slow down of my forums which happened before with vB on a slower server, but since upgrading to dual xeon's, i've had no problems, and don't want to install mods that will cause issues with my boards speed..

Also, is it admin cp configurable, in other words, on off like said above, and do you have to make a new email address on your site to allow this to work, or use an email address of your own..

Also, is email virus going to cause issues, and cause for the server to become infected with email virus etc, which would in turn screw over your vB forum with using a email reply system like this?

Just some concerns of mine, if you'd please answer them I would much appreciate it..

Thanks

-Eternal2u

Aylwin
04-13-2005, 05:33 AM
I'm probably not the best person to answer this but...

I'm not sure if this will really slow down a large forum that much. For each email reply that is sent, it means one less user visiting the site. That means less clicks, less page generations, less MySQL queries, etc.

At the moment, there's no easy way to turn it on and off. And yes, you do need a dedicated email address because it processes every single email that arrives. I though tabout using a shared email address too but I'm too lazy (and probably too incompetent) to make the necessary changes. It was much easier to simply setup a dedicated email address.

As for viruses and other malicious code sent via email, I doubt you'll have any problems. This system is text based and any attachments are ignored and eventually deleted along with the email after processing. The only issue I see is if the dedicated email address somehow got on a spam list. It won't show up on the site but it will be a lot of useless work for the server since it processes all incoming emails. But this can be fixed by changing the email account.

Someone please correct me if anything I've said above is nonsense.

Aylwin

amphicar770
04-15-2005, 04:20 PM
Great hack and a much needed enhancement to VB.

One question, does it only send out a notification of new messages or does it actually provide the text of those messages. The ability for a user to subscribe to email delivery of messages to a specified forums is also greatly needed.

Thanks again. Keep up the great work.

Jagged Tooth
04-25-2005, 09:23 AM
Great Hack

/me clicks install

--Jagged Tooth--

dbalzotti
05-13-2005, 08:50 PM
Thanks for this hack, e-mail posting would be a great addition to vbulletin...

My Problem:
I got to 'Step 4) Obtain Mailserver Data' in the install and it won't go any further, no error message, just sits at that step. Any ideas?

Thanks-
Dave

Chris M
05-13-2005, 09:33 PM
Very nice hack idea Colin - Any idea when this is going to come out of BETA and become a full release?:)

Satan

yoyoyoyo
07-18-2005, 05:03 AM
Very nice hack idea Colin - Any idea when this is going to come out of BETA and become a full release?:)

SatanI am also wondering the same thing... this looks very cool!

banuchi2
07-31-2005, 11:34 AM
Any idea if there will be either this hack or a similar one available for vb 3.5? Thanks.

yoyoyoyo
07-31-2005, 12:24 PM
so what would be the format for sending an e-mail reply to a post? I have installed this, and have sent a few test e-mail but have seen no posts

yoyoyoyo
08-26-2005, 09:50 PM
so what would be the format for sending an e-mail reply to a post? I have installed this, and have sent a few test e-mail but have seen no postsanyone?

MrMister
09-22-2005, 05:12 PM
Doh, something tells me he isn't around anymore :(

With this link at least

MrMister
10-11-2005, 12:28 PM
I take it no 3.5 eh? :(

COBRAws
10-12-2005, 05:20 AM
Calling Colin F :D


3.5? pleasee

MrMister
10-12-2005, 04:17 PM
Has anyone tried to port this to 3.5?

I am in the process of it, but the problem is that the install file just stalls... it doesn't do anything but bring me into some kinda "endless loop" page.

COBRAws
11-10-2005, 07:29 PM
bump

Annapurna
03-05-2006, 11:58 AM
Has anyone tried to port this to 3.5?

I am in the process of it, but the problem is that the install file just stalls... it doesn't do anything but bring me into some kinda "endless loop" page.
Anything new?
I'd really appreciate it to have it worked on 3.5.4!

Andreas

DjTaz
04-08-2006, 12:25 AM
I managed to get this working at last - but im not even sure what i did to be honest - i was trying everyones suggestions , and after messing with a load of files it eventually worked , but i was doing so much i cant say what did it !

Great script , its working on 3.0.7

DjTaz
04-08-2006, 03:34 PM
I did a tiny edit on this that may help people as well

In /includes/functions_newpost.php find (around 1217) :

'$subject = "' . str_replace("\\'", "'", addslashes(iif(empty($email_text[PHRASETYPEID_MAILSUB]), $emails['-1'][PHRASETYPEID_MAILSUB],$email_text[PHRASETYPEID_MAILSUB]))) . '";';


and replace with :

'$subject = "' . str_replace("\\'", "'", addslashes(iif(empty($email_text[PHRASETYPEID_MAILSUB]), $emails['-1'][PHRASETYPEID_MAILSUB],$email_text[PHRASETYPEID_MAILSUB]))) ." ". $subjectcode_reply . '";';


This will put the reply code into your subject line of the mails sent , so that all your users need to do is click REPLY - it saves them having to change the subject line.

Dax IX
04-15-2006, 11:07 PM
I would really like to see a port of this as well. It sounds like JUST the thing I'm looking for! :D

fat3x
04-20-2006, 12:17 AM
nice very god

DjTaz
07-06-2006, 01:04 PM
Dont suppose anyone has upgraded this to 3.5 yet ?

I had to move hosts so i decided to upgrade to 3.5 and i miss this hack - only just had it working and all !

Bashar
07-09-2006, 02:51 PM
Dont suppose anyone has upgraded this to 3.5 yet ?

I had to move hosts so i decided to upgrade to 3.5 and i miss this hack - only just had it working and all !

it didnt work for you when you moved to 3.5.x ?

DjTaz
07-30-2006, 01:44 AM
it didnt work for you when you moved to 3.5.x ?

To be honest i hadnt even tried it - i assumed it wouldnt install.

EricaJoy
08-31-2006, 12:29 AM
/me adds to the 3.5 please chorus

MediaHound
09-08-2006, 06:55 PM
3.6.0 please
(clicks subscribe to thread)

COBRAws
09-15-2006, 05:02 AM
hello hehehe

any news for 3.5 or 3.6?

3z3k3l
11-14-2006, 10:53 PM
Anything new?
I'd really appreciate it to have it worked on 3.5.4!

Andreas

Ditto

DjTaz
01-09-2007, 01:42 PM
I'm going to try this on my backup version of my 3.5 boards later and see if it blows up or if i can edit it enough to make it work - ill fill people in if i get it going - my hopes arent high.

TomC18
01-18-2007, 03:26 PM
Dido

theinvisibleman
01-27-2007, 08:17 AM
still no news on this for 3.6?

Cyricx
02-09-2007, 07:31 PM
No promises....

But I've gotten permission from Colin to port this as long as I release it here.

I'm giving it a whirl... but as I said.. no promises....

ALOT has changed since 3.0

Anyone interested in helping out send me a PM.

Dullweber
03-13-2007, 08:25 AM
I can't help with programming, but the company I'm working for would actually pay for such a feature, I just posted a service request. Maybe that's motivating enough to really give it a whirl? PM me if you are interested...

Regards,
Dullweber

SBlueman
05-20-2007, 03:43 AM
so is this a dead mod?

giovannicosta
05-28-2007, 10:44 AM
Cool, I will click install to wait for updates...3.6.7 compatible I assume?

InfoNirvana
05-28-2007, 06:40 PM
No promises....

But I've gotten permission from Colin to port this as long as I release it here.

I'm giving it a whirl... but as I said.. no promises....



That'd be great.

I can't help with programming, but the company I'm working for would actually pay for such a feature, I just posted a service request. Maybe that's motivating enough to really give it a whirl? PM me if you are interested...

Regards,
Dullweber

I'll ask my group. They'd be happy to contribute for this functionality.

Cool, I will click install to wait for updates...3.6.7 compatible I assume?

I did as well.

tekguru
06-16-2007, 09:13 PM
Did anything ever come of developing this Mod?

Cyricx
06-18-2007, 11:30 AM
Just trying to juggle time to release a beta version. I've got it done except for attachments. I'm hoping to release something soon, it's all a matter of what time I can set aside from work and family.

tekguru
06-18-2007, 04:15 PM
That is superb news as this is the one facility that we find missing from vB.

If you want any testers just yell!

DjTaz
06-18-2007, 07:48 PM
Just trying to juggle time to release a beta version. I've got it done except for attachments. I'm hoping to release something soon, it's all a matter of what time I can set aside from work and family.


Will this new version be for VB 3.6 or for 3.5 ?

Im running 3.5 at the moment and dont really want to go to 3.6 cause ill lose all of the mods i have done already :(

Hostboard
07-14-2007, 01:32 PM
What phrases do these apply to? Did a quick search but came up empty. Tried to modify the install script and re-run but it did not like the chnages.

Thanx


I also had a few problems with the confirmation emails. So a few changes to vbemailreply_install.php are needed.

Around line 440, find:
\$vboptions[bburl]/showthread.php?p=$newpost[postid]#post\$newpost[postid]and replace with:
\$vboptions[bburl]/showthread.php?p=$newpost[postid]Around line 447, find:
Your thread \"\$threadinfo[title]\" was succesfully received and entered in the forum \$foruminfo[title]!
Here is a direct link to your post:
\$vboptions[bburl]/showthread.php?t=\$threadinfo[threadid]and replace with:
Your thread entitled "$title" was successfully received and entered in the forum $foruminfo[title].

Here is a direct link to your post: $vboptions[bburl]/showthread.php?t=$newpost[threadid]

Or in my case, I simply modified the necessary phrases after the installation.

tekguru
07-14-2007, 09:57 PM
Any progress yet?

Cyricx
07-15-2007, 12:09 AM
I've released the beta version here -

https://vborg.vbsupport.ru/showthread.php?t=151222

The only things I've got left to solve before I release the full version is the attachment code :)

tekguru
07-15-2007, 10:53 AM
Superb news on the way!

mjname
01-27-2009, 02:58 AM
Is there a way to integrate this into blog? I would love to be able to email a daily blog entry from my iPhone. I think it is stupid to spend so much energy on facebook and twitter when I could be using that time/energy updating my VB Blog instead.

Thanks
matthew