The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Email Integration (New threads/replies by email) Details »» | |||||||||||||||||||||||||||
Email Integration (New threads/replies by email)
Developer Last Online: Dec 2011
This mod is based off of the Mail Reply modification by Colin F to which I have obtained permission to rewrite and release. This modification allows you to mimic email lists such as yahoo groups through your forums! After installing this modification you will have new settings in your forum manager where for each forum you can enable this modification and setup a separate email address to use for each forum that you have this enabled for. Just like how there is a separate email address for each yahoo group. After doing so, members can subscribe to each forum that this mod is enabled for to receive notifications for new threads and replies. Any posts in that forum, will be sent to them via email. (Example email attached below). The users can then reply to that email (which will then be processed and posted to the forums through the cron job that runs every 10 minutes), or they can send a new email to the email address and a brand new thread will be created! Essentially mimicing an email list! Suddenly those users that hate forums, can still be dragged into the conversations and help keep the forum's activity level up! BUGS! These are the known bugs to date:
These are the items that are not currently supported:
(See the file in the zip for a complete history!)
Huge thanks also goes to the many individuals that have helped test various incarnations of this mod. MAD PROPS TO: cgmckeever for a great quoting regex for the old format, and all the mods at www.4winmobile.com for helping test version 2.4 prior to release!! You guys rock! Please feel free to donate to my continued work on this modification!! It let's me spend more time on it! Make a Donation! Version 2.6 will work with both 3.6.8 and 3.7! The #.X versions are the solid tested versions. The #.X.X versions are the beta versions. New features and bug fixes will be worked in there and then when I have a solid version it'll be released as the next #.X Thank you!! ~ Cyricx Supporters / CoAuthors Show Your Support
|
Comments |
#222
|
|||
|
|||
That was full of bugs. I forgot to specify the forum in the query. Oops. Here's the updated code
Code:
// hide email addresses $mailmessage = preg_replace("/[a-zA-Z0-9\-_]+@[a-zA-Z0-9\-_]+.[a-z]{2,4}/", 'xxx@xxx.xxx', $mailmessage); // find thread with matching title 'Post' // make reply if match $baseTitle = preg_replace("/re: /", "", $title); $baseTitle = preg_replace("/Re: /", "", $baseTitle); $baseTitle = preg_replace("/RE: /", "", $baseTitle); $forumid = $foruminfo['forumid']; $queryResult = $vbulletin->db->query_first(" SELECT threadid FROM " . TABLE_PREFIX . "thread WHERE forumid = $forumid AND (title = '$title' OR title = '$baseTitle') ORDER BY threadid DESC LIMIT 1 "); if ($queryResult['threadid']) { $threadid = $queryResult['threadid']; $type = "reply"; $cronlog .= "Found reply for thread $threadid"; } // ##### Time To Post The Reply ##### if ($type == "reply") { // Building post info |
#223
|
|||
|
|||
Quote:
Quote:
Please correct me if I still am not understanding the functionality correctly. |
#224
|
||||
|
||||
My mobile phone (a Treo 700p) uses the same "email address" as my computer. So if I emailed a picture/attachment, it'd work.
But if you are talking about sending an MMS (multimedia SMS text message) as an email, yes, it'd be addressed from something like yourphonenumber@yourcellservice.com US Based Carriers: Alltel = xxxxxxxxxx@message.alltel.com AT&T = xxxxxxxxxx@mms.att.net Boost Mobile = xxxxxxxxxx@myboostmobile.com Cingular (AT&T) = xxxxxxxxxx@mms.mycingular.com Einstein PCS = xxxxxxxxxx@einsteinmms.com Sprint = xxxxxxxxxx@messaging.sprintpcs.com T-Mobile = xxxxxxxxxx@tmomail.net US Cellular = xxxxxxxxxx@mms.uscc.net Verizon Wireless = xxxxxxxxxx@vzwpix.com Virgin Mobile = xxxxxxxxxx@vmobl.com ...and those wouldn't work, since it'd be unlikely that the person is using those as their "registered" email address. Perhaps Cyricx can come up with additional allowance to allow for the processing of such SMS or MMS messages. |
#225
|
||||||
|
||||||
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
I think I saw in your block how to add to the cron log, so that may make it into an upcoming version. All - My apologies for the delay in the next version, there was a few bugs found that I need to work on and unfortunately this weekend some RL fit hit the shan so things have been very hectic. Slight delay in the next version unfortunately |
#226
|
|||
|
|||
Quote:
yeah I'd have to think about this, could prolly do it with a user option where they listed alternate email addresses by line or separated by a comma with no spaces so that it forms an array that could be checked against. Something to consider for 3.0 |
#227
|
|||
|
|||
Ok last time: here's my code with bugfixes.
Code:
// hide email addresses $mailmessage = preg_replace("/[a-zA-Z0-9\-_]+@[a-zA-Z0-9\-_]+.[a-z]{2,4}/", 'xxx@xxx.xxx', $mailmessage); // find thread with matching title 'Post' // make reply if match $baseTitle = preg_replace("/re: /", "", $title); $baseTitle = preg_replace("/Re: /", "", $baseTitle); $baseTitle = preg_replace("/RE: /", "", $baseTitle); $forumid = $foruminfo['forumid']; $queryResult = $vbulletin->db->query_first(" SELECT threadid FROM " . TABLE_PREFIX . "thread WHERE forumid = $forumid AND (title = '" . $vbulletin->db->escape_string($title) . "' OR title = '" . $vbulletin->db->escape_string($baseTitle) . "') ORDER BY threadid DESC LIMIT 1 "); if ($queryResult['threadid']) { $threadid = $queryResult['threadid']; $type = "reply"; $cronlog .= "Found reply for thread $threadid"; } // ##### Time To Post The Reply ##### if ($type == "reply") { // Building post info |
#228
|
|||
|
|||
Cyricx - All I'm using it for is to read email from a mailing list and piece together the threads. No replies are allowed on the forum. It's just informational.
I also don't want people to be able to email in replies right now. I can't use threadid because the threads aren't being replied to from the forum. I have to do a gmail-style subject match to make it all work. I understand the limitations but it's all I can do. functions work just fine in cron jobs, you just need to watch your scope. |
#229
|
|||
|
|||
Okay, so what happens if you have two threads titled
"Hey read me!" in the same forum? One of those could be a year old Your query would add the posts to the oldest thread, rather then the newest and correct thread The hiding email address preg, is a great idea! my newest version being debugged right now pulls out the To: emailaddress line completely out but your idea is a much better one |
#230
|
|||
|
|||
That's where I'm getting confused then
How are the threads being replied to? I mean... how are they getting the emails that they are replying too? if your not allowing replies, why are you applying emails as replies to a thread? |
#231
|
|||
|
|||
Just a few more cleanups to do with Pocomail then I'll release the 2.x version
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|