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 |
#892
|
||||
|
||||
Quote:
|
#893
|
|||
|
|||
Quote:
The forum has an option to send emails to subscribed users. You do not need EI for that. -Alex |
#894
|
|||
|
|||
Quote:
It's academic now anyway because I'm pressing a head with EI after seeing reply #843 |
#895
|
|||
|
|||
Would someone please explain how I make this mod to a forum running 3.7.1 (what file to I edit? - I can't find anything called "newthread_post_complete"
Thanks, Kevin Quote:
|
#896
|
|||
|
|||
Another question for the EI experts
How long should it take for a reply by email to be posted on the forum? I just had one take half an hour to come through so it ended up out of sequence with another post on the forum. In fact it was as if the forum post triggered the retrieval of the email reply. |
#897
|
|||
|
|||
Hi Kevin,
That is exactly how the 'cron' jobs work, they rely on the forum being accessed. I scheduled a small PHP script on an another box to access the home page every so often to guarantee a reasonable response time to emails. Regards, toivo |
#898
|
|||
|
|||
Hi Toivo,
Would you mind explaining how I can do this because most of my users will be migrating from a mail list and I fear that many of them will use email integration and not access the forum very often, at least initially. Regards, Kevin |
#899
|
|||
|
|||
Hi Kevin,
Here is the code, working under vB 3.6.8. Replace the variables $forum_url and $cron_url. The script reads the home page, extracts the cron.php with the parameters from the result and then sends a request for cron.php which runs the scheduled task(s). Check the results from the vB back end to adjust the interval in your crontab or Windows scheduler, depending on which other cron jobs your site has. Code:
<?php /** * @forum_read.php * @20080723 toivo@totaldata.biz * reads the forum home page and triggers cron jobs to run * tested on vBulletin 3.6.8. * requires php >= 4.3.0 */ $forum_url = 'http://example.com/testvb/index.php'; // cron url from <img src= $cron_url = 'http://example.com/testvb/cron.php?'; // access forum $run_status = forum_read($forum_url, $cron_url); return; function forum_read($forum_url, $cron_url) { // read file contents $page = file_get_contents($forum_url); if ($page === false) { $msg = "forum_read.php unable to read ".$forum_url; error_log($msg); return false; } // find cron.php $cron_start_pos = strpos($page, $cron_url); $msg = ''; if ($cron_start_pos === false) { $msg = "forum_read.php unable to find cron string"; error_log($msg); return false; } // end of url $cron_end_pos = strpos($page, '"', $cron_start_pos); if ($cron_end_pos === false) { $msg = "forum_read.php unable to find end of cron string"; error_log($msg); return false; } // extract full url string with cron.php $cron_url_length = $cron_end_pos - $cron_start_pos; $cron_full_url = substr($page, $cron_start_pos, $cron_url_length ); // read cron.php with parameters $page = file_get_contents($cron_full_url); if ($page === false) { $msg = 'forum_read.php '.$cron_full_url." : - PROBLEM?"; error_log($msg); return false; } return true; } ?> Code:
#!/bin/bash # load forum home page and read cron.php php /root/forum_read/forum_read.php exit 0 In Windows, you can run the script from a command file through the Windows scheduler. Regards, toivo |
#900
|
|||
|
|||
AHHHH. This all makes sense now. I have been scratching my head to find out why EI is inactive at night. I was starting to think the little men who run around and fetch emails are sleeping. LOL
|
#901
|
|||
|
|||
I put in the workaround in #843. I have not had any issues so far.
-Alex |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|