![]() |
Reply by email v. 0.1
It works just like FireFly described it here
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] |
It will post the posts as a Guest since $bbuserinfo is not set correctly. ;)
|
new version is out (some bugfixes inluding FireFly one)
|
fantastic mate, I like the sound of this hack and hopefully my members will use it....will have to install it ;)
|
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...threadid=15339 |
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. |
Very cool, maybe I will give it a try!
|
nice
|
Quote:
|
Or you can just re-declare sendnotification() and default $meesage to nothing...
|
Yep, I defaulted it to "(Unavailable)", so it isn't obviously wrong.
|
Thank you for releasing this.
|
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
|
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)
|
Yea, I can see how that would be an issue. Chen, any input?
JC |
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 |
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 |
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 |
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 |
has anyone been able to get this to work at all, ????
|
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 |
Quote:
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 ? |
Umm, how did you get the error to "go away" ? :)
JC |
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
Open \admin\functions.php Find: PHP Code:
PHP Code:
|
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? |
Quote:
|
do u get the thread id by email?
|
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
|
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 |
Quote:
okay if you are talking about these modification, still no go on this end |
When you hit reply in your email, cut and paste the Subject line in here........
JC |
Quote:
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/sho...6&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/mem...b&threadid=466 To unsubscribe from ALL threads, please visit this page: http://www.mindsights.com/forums/mem...type=allthread |
and when I hit reply this is how the subject looks like
Re: Reply to post 'Referreal Program' [thread-466] |
All times are GMT. The time now is 12:50 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:
|