View Full Version : Reply by email v. 0.1
It works just like FireFly described it here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36753)
Note: Your PHP must be compiled with IMAP support (read inside in the install.txt file)
This hack should be working just fine on EVERY vBulletin version.
I hope you like it:)
Post all your comments,bugs, improvements you would like to see.
Its not perfect yes.. i know :)
[Last update: 19/04/02 version 0.3]
Admin
04-02-2002, 12:40 PM
It will post the posts as a Guest since $bbuserinfo is not set correctly. ;)
new version is out (some bugfixes inluding FireFly one)
Bald Bouncer
04-02-2002, 02:50 PM
fantastic mate, I like the sound of this hack and hopefully my members will use it....will have to install it ;)
James Cridland
04-02-2002, 05:51 PM
If you only want to put the contents of a reply in your e-mail, download this hack.
Ignore everything till "Go to admin cp and edit the 'email_notify' template". Then, obviously, only put in $message in the template where you want the text to be.
Ignore everything starting with "Then you just need to run mailreply.php every 10 minutes or so."
This way, your users can read replies but not post anything without returning to the site.
For an example of the e-mail you might get, see http://forums.mediauk.com/showthread.php?s=&threadid=15339
James Cridland
04-02-2002, 06:47 PM
Note that there's another "sendnotification" to find. You need to add this to your hack.
Open "mod/moderate.php"
Find sendnotification($thread['threadid'], $thread['userid'], $key);
Replace with sendnotification($thread['threadid'], $thread['userid'], $key, $message);
Otherwise this will cause problems when your moderators try to moderate any postings.
My board is heavily hacked, so check that this is present in your version of moderate.php.
Renegade
04-02-2002, 07:25 PM
Very cool, maybe I will give it a try!
Originally posted by James Cridland
Note that there's another "sendnotification" to find. You need to add this to your hack.
Open "mod/moderate.php"
Find sendnotification($thread['threadid'], $thread['userid'], $key);
Replace with sendnotification($thread['threadid'], $thread['userid'], $key, $message);
Otherwise this will cause problems when your moderators try to moderate any postings.
My board is heavily hacked, so check that this is present in your version of moderate.php.
Note that you gotta add $message to sendnotification function in admin/functions.php
Admin
04-03-2002, 06:40 AM
Or you can just re-declare sendnotification() and default $meesage to nothing...
James Cridland
04-03-2002, 07:46 PM
Yep, I defaulted it to "(Unavailable)", so it isn't obviously wrong.
bitbender
04-04-2002, 12:10 AM
Thank you for releasing this.
TheCaver
04-04-2002, 07:10 PM
Gimp, any chance of making this more like a listserv to where all prior posts in that thread show up? Maybe even HTML it to make it pretty?
Curious.......
JC
whats *like listserv* give me an example and ill do it
TheCaver
04-06-2002, 09:17 PM
Thanks for the reply.
More like a listserv:
Like more user friendly reply, ie, when the user hits reply, he doesn't have to cut and paste/type anything in the subject line.
Also, be able to remove the "you will not receive any more notifications till you visit the board" thing.
If it helps, here's my scenario, I run a large automotive site where people have outings in their local regions. They currently use Yahoo Groups to stay updated on local stuff.....
We have regional forums, but most like to get their local news in email format....And I'd rather have them stay on my site rather than going off to Yahoo ;)
Thanks for any consideration,
JC
well i could not make it clean the message when the user hits reply.. its server side (on yahoo and i dont yet control it :P)
TheCaver
04-07-2002, 06:49 PM
Yea, I can see how that would be an issue. Chen, any input?
JC
TheCaver
04-09-2002, 02:42 PM
Gimp, is there any advantage of using IMAP over POP? Mine seems to work ok with POP but fails to open stream with IMAP.....
Thanks!
JC
hypedave
04-09-2002, 05:09 PM
okay when I run the mailreply.php
I get this error
Fatal error: Call to undefined function: imap_open() in C:\Inetpub\wwwroot\forums\mailreply.php on line 14
I setup is
Windows 2000 Server
iMail email server using pop3
any suggestion
TheCaver
04-09-2002, 05:57 PM
Got another question :)
On this forum, there are 2 series of numbers when you get notified. What's the significance of the second set?
Thanks!
JC
TheCaver
04-09-2002, 07:19 PM
Notes for others trying this hack:
To allow people to hit reply on the email instead of cutting and pasting you must edit a couple of items.
First, in mailreply.php find:
list($check,$threadid)=explode("-",$letter->subject);
if ($check!="[thread") {
replace by:
list($check,$threadid)=explode("-",$letter->subject);
$check = substr($check, -7);
if ($check!="[thread") {
Next, edit your emailsubject_notify to:
Reply to post '$threadinfo[title]' [thread-$threadinfo[threadid]]
I'm working on getting the server to strip everything but the reply but its uphill, if anyone wants to help, I'd sure appreciate it...... :D
JC
hypedave
04-10-2002, 04:53 AM
has anyone been able to get this to work at all, ????
TheCaver
04-10-2002, 05:00 AM
It works, it's just not polished.....
Hopefully, we'll get some news on whether or not it will be in vB3, then I can stop this madness :)
JC
hypedave
04-10-2002, 05:39 AM
Originally posted by TheCaver
It works, it's just not polished.....
Hopefully, we'll get some news on whether or not it will be in vB3, then I can stop this madness :)
JC
well can you help me out then, with my error, I got the error to go wat, now when I run mailreply.php it takes foreverrrrrr, then php jus times out, how does your mailreply.php file look like
and how exactly to the users respond back ?
TheCaver
04-10-2002, 06:04 AM
Umm, how did you get the error to "go away" ? :)
JC
Originally posted by TheCaver
Notes for others trying this hack:
To allow people to hit reply on the email instead of cutting and pasting you must edit a couple of items.
First, in mailreply.php find:
list($check,$threadid)=explode("-",$letter->subject);
if ($check!="[thread") {
replace by:
list($check,$threadid)=explode("-",$letter->subject);
$check = substr($check, -7);
if ($check!="[thread") {
Next, edit your emailsubject_notify to:
Reply to post '$threadinfo[title]' [thread-$threadinfo[threadid]]
I'm working on getting the server to strip everything but the reply but its uphill, if anyone wants to help, I'd sure appreciate it...... :D
JC
it has notting to do with that.. you CANT clear the message on the user side its IMPOSSIBLE
Originally posted by TheCaver
Got another question :)
On this forum, there are 2 series of numbers when you get notified. What's the significance of the second set?
Thanks!
JC
the 2nd number is a password for email notification.. I could do it but because of not much popularity with this hack i dont think i will. only if u REALLY need it i might
Originally posted by hypedave
okay when I run the mailreply.php
I get this error
Fatal error: Call to undefined function: imap_open() in C:\Inetpub\wwwroot\forums\mailreply.php on line 14
I setup is
Windows 2000 Server
iMail email server using pop3
any suggestion
look/check ur pm:
Taken from install.txt
PHP compiled to support IMAP
Linux users read here:
http://www.php.net/manual/en/ref.imap.php
======
Windows users:
1. Copy php_imap.dll from your phpdir/extenstions to your windows dir
2. Edit path/to/windows/dir/php.ini (open it)
Find:
;extension=php_imap.dll
Replace with:
extension=php_imap.dll
Originally posted by TheCaver
Gimp, is there any advantage of using IMAP over POP? Mine seems to work ok with POP but fails to open stream with IMAP.....
Thanks!
JC
I tested it with IMAP (MDaemon mail server).. i dont know if there is any difference and there shhouldnt
James Cridland
04-10-2002, 03:18 PM
Originally posted by TheCaver
Also, be able to remove the "you will not receive any more notifications till you visit the board" thing.
To do this:
Open \admin\functions.php
Find: $useremails=$DB_site->query("SELECT user.*
FROM subscribethread,user
WHERE subscribethread.threadid='$threadid'
AND subscribethread.userid=user.userid
AND user.userid<>'$userid'
AND user.lastactivity>'$lastposttime[dateline]'
");
Replace with: $useremails=$DB_site->query("SELECT user.*
FROM subscribethread,user
WHERE subscribethread.threadid='$threadid'
AND subscribethread.userid=user.userid
AND user.userid<>'$userid'");
hypedave
04-10-2002, 03:32 PM
okay I got it to work, the mailreply.php works
and comes with the message
All done!
now the reply by email's arent being sended the the thread ID's
any tips on this, im getting closer :glasses:
did u follow all the steps in the installtions guide?
did u update the templates?
hypedave
04-10-2002, 05:25 PM
Originally posted by Gimp
did u follow all the steps in the installtions guide?
did u update the templates?
yep I sure did
do u get the thread id by email?
hypedave
04-11-2002, 05:08 PM
yes I do and when I reply back , it goes back to the server, then I wait for about 5min and run the mailreply.php and it says all done, but I dont see it being inputted in the thread on the forum
TheCaver
04-11-2002, 10:18 PM
Its because the string replace function is not working correctly. Try my modification or format the subject of the reply email to look like:
[thread-<whatever>]
If your email reply is like:
Re: blah blah [thread-12345]
then the stock version won't work........
Also, when mailreply.php works, it will say:
Added #1
Added #2
etc.
All Done.
not just All Done.
JC
hypedave
04-11-2002, 10:27 PM
Originally posted by TheCaver
Notes for others trying this hack:
To allow people to hit reply on the email instead of cutting and pasting you must edit a couple of items.
First, in mailreply.php find:
list($check,$threadid)=explode("-",$letter->subject);
if ($check!="[thread") {
replace by:
list($check,$threadid)=explode("-",$letter->subject);
$check = substr($check, -7);
if ($check!="[thread") {
Next, edit your emailsubject_notify to:
Reply to post '$threadinfo[title]' [thread-$threadinfo[threadid]]
I'm working on getting the server to strip everything but the reply but its uphill, if anyone wants to help, I'd sure appreciate it...... :D
JC
okay if you are talking about these modification, still no go on this end
TheCaver
04-11-2002, 10:29 PM
When you hit reply in your email, cut and paste the Subject line in here........
JC
hypedave
04-11-2002, 10:31 PM
Originally posted by TheCaver
When you hit reply in your email, cut and paste the Subject line in here........
JC
here ya go
=====================================
Hello hypedave,
grisu has just replied to a thread you have subscribed to entitled - Referreal Program - in the Flabber forum of Mindsights Forums.
This thread is located at:
http://www.mindsights.com/forums/showthread.php?threadid=466&goto=newpost
There may be other replies also, but you will not receive any more notifications until you visit the board again.
Yours,
Mindsights Forums team
~~~~~ NEW ~~~~~
New at Mindsights Forums!
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 e-mail subject:
[thread-466]
You should also remove this text to ensure your reply is readable by other forum users.
~~~~~ NEW ~~~~~
Here are the contents of the post:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100? it took us half a year to get the first 100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:
To unsubscribe from this thread, please visit this page:
http://www.mindsights.com/forums/member2.php?action=usub&threadid=466
To unsubscribe from ALL threads, please visit this page:
http://www.mindsights.com/forums/member2.php?action=usub&type=allthread
hypedave
04-11-2002, 10:33 PM
and when I hit reply this is how the subject looks like
Re: Reply to post 'Referreal Program' [thread-466]
TheCaver
04-11-2002, 10:37 PM
Well, this proves that my mod won't work :)
But try this as your subject:
[thread-466]
JC
hypedave
04-11-2002, 10:39 PM
Originally posted by TheCaver
Well, this proves that my mod won't work :)
But try this as your subject:
[thread-466]
JC
yep I even tryed [thread-466] as the subject and still no go
I know it has to be something simple
TheCaver
04-11-2002, 10:39 PM
Originally posted by Gimp
it has notting to do with that.. you CANT clear the message on the user side its IMPOSSIBLE
That was just getting the reply to work.
I'm trying to get the server to process the email BEFORE it gets stuck in the DB as a post.........
I think I have given up however :)
JC
hypedave
04-11-2002, 10:42 PM
Originally posted by TheCaver
That was just getting the reply to work.
I'm trying to get the server to process the email BEFORE it gets stuck in the DB as a post.........
I think I have given up however :)
JC
ah ha, oh no, you cany give up yet, dont give up, 1 more step and you will be done right, thats what demo is all about right :)
TheCaver
04-11-2002, 10:50 PM
Before you try the above, you must remove my mods........
JC
hypedave
04-11-2002, 10:52 PM
Originally posted by TheCaver
Before you try the above, you must remove my mods........
JC
can I jus attached the files and send them to you ?
I ahve tryed everything, I no it has to be something simple of my end just im just not doing right i guess
Originally posted by FireFly
It will post the posts as a Guest since $bbuserinfo is not set correctly. ;)
I downloaded the latest one and it still posts it as guest if I reply by email.
hypedave
04-12-2002, 01:58 PM
Originally posted by orca
I downloaded the latest one and it still posts it as guest if I reply by email.
what is your current config
phpversion, mysql, os, email server ?
im curious cause I cant get it to work
Redhat Linux 7.2, PHP 4.1.2, mySQL 3.23.49.
hypedave
04-13-2002, 04:36 AM
okay I got this to work for me two times to day, but strangly
it only works if I reboot my server, can someone explain their experiences in getting this to work ? if you have gotten this to work
orca this can only happen if u reply from email that doesnt exist in the users' database.. which cant happen.. very strange
Well, I sent it not from my home-acount. May I didn't notice that the sender was changed...
Originally posted by Gimp
orca this can only happen if u reply from email that doesnt exist in the users' database.. which cant happen.. very strange
hypedave
04-14-2002, 11:22 AM
anybody fund a solution for my problem yet ?
James Cridland
04-14-2002, 03:09 PM
If someone posts a nasty message on your BB, this system means that, regardless of what you do, your have still 'published' this message to subscribed users.
This means, reluctantly, that we've had to switch out nice "message in the e-mail" reply off.
James Cridland
04-15-2002, 07:54 PM
Er, no, don't do that.
If you have four replies in a thread, you'll get four e-mails...!!
hypedave
04-16-2002, 05:23 AM
okay I get this error now
Fatal error: Call to a member function on a non-object in C:\Inetpub\wwwroot\forums\mailreply.php on line 37
im on a MDaemon 5.0.5 email server now
VirtueTech
06-01-2002, 02:39 AM
HypeDave: This worked for me:
Find this line:
$permissions=getpermissions($threadinfo[forumid]);
Replace it with:
$permissions=getpermissions();
I hope that helps.
Sinclair
06-25-2002, 11:55 AM
Can anyone told to me how i can start the mailreply.php via crontab?
hypedave
10-07-2002, 01:39 AM
Originally posted by Sinclair
Can anyone told to me how i can start the mailreply.php via crontab?
point your crontab to the following path
/home/account/public_html/forums/mailreply.php
ChurchMedia
12-30-2002, 05:29 AM
I have it installed and working. I set up a cron job to run the mailreply.php evey 5 minutes. MUCH easier than the other "email posts" hack. Thanks for the great hack!
There are 3 things that would make it work better for me:
1. I can put the thread id in the subject, but unless it's at the beginning of the subject line, mailreply.php won't post it. Is there a way for it to ignore the RE:? Maybe add an * before the thread id and have it look for it as a marker?
2. When replying by email, the post doesn't go back out to subscribers of the thread, so no one knows they replied unless they go back to the site. Can anything be done about that?
3. This is related to the Points hack by Shinra and the "points for posting" hack by Iguacu. Points aren't added when replying by email. Not a big deal, but would be nice to know how to fix.
Thanks again!
anywhereanytime
07-06-2003, 03:06 AM
This thread has been inactive for quite a while ... does it still work since we need something like this badly ??
Or, is there a newer, fully released hack ??
csimo
09-09-2003, 04:15 PM
bump
iggy123
09-18-2003, 12:10 PM
anymore information on this being updated?
SinCityJet
05-17-2005, 03:51 PM
My goal is to be able to allow selected users to send an email from their client to my ArGoSoft mail server, and then have the contents posted in news section.
A: Will this hack do that?
B: Will this hack work on vB 3.0.7?
Marco van Herwaarden
05-17-2005, 03:55 PM
This is an old hack for vB2. Hacks written for vB2 will not work on vB3.
Do a search in teh vB3 section and you will find something like you are looking for i think.
The hack is called vB Mail Reply :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.