PDA

View Full Version : Major Additions - Email Integration (New Threads/Replies by and through email!)


Pages : 1 [2]

Serenit_y
03-24-2010, 11:20 AM
Alright, I've now done the following
1. Installed EI 2.6.1,
2. copied the code from the patch to the file "forum_read.php" in my vbulletin cron folder
3. created the system cron file (with the 4line perl script) to initiate the forum_read.php file in my home folder;
/home/user/forum_read (no file extension)

4. added a command line to my cron tab to activate the cron, every two minutes with the line;
*/2 * * * * /home/jfasheyi/forum_read
5. Set the EI cron to run every minute, from the vbulletin EI integration panel.

Question
1. Whilst installing EI 2.6.1 BETA, it said
"go to AdminCP -> Email Integration -> Forum Setings Help" to find a script, which will test to
see which email connection your server uses
- I went to Email Integration settings, from the vbull options tab, but no "Forum settings help" option
existed. I use vbull. 3.8.4.
2. Looking at the system cron script, this line
"php /root/forum_read/forum_read.php" how will it know where to find my forum_read.php vbulletin cron
file, which is in the vbulletin/includes/cron folder.
3. When I add the forum_read.php cron to vbulletin, should it be added as a vbulletin product,
or Email Integration product.

Thanks a lot,

toivo
03-24-2010, 11:51 AM
- I went to Email Integration settings, from the vbull options tab, but no "Forum settings help" option existed. I use vbull. 3.8.4.It is not in the options tab but at the bottom of the left pane.
"php /root/forum_read/forum_read.php" how will it know where to find my forum_read.php vbulletin cron file, which is in the vbulletin/includes/cron folder. You do not need to copy the file into the includes/cron folder, it can stay in your home directory, but you need to modify the path in the 4 line shell script to point to your home directory, or omit the path and the current directory will be used by default.
When I add the forum_read.php cron to vbulletin, should it be added as a vbulletin product, or Email Integration product.The forum_read.php script cannot be added to vBulletin as a product or plugin because it has to work independently of vBulletin, triggered by the scheduler of the operating system on the same or another server. I run it from another server, and if you run it from the web server, you may have to modify the script.

Serenit_y
03-24-2010, 01:19 PM
It is not in the options tab but at the bottom of the left pane..

There is no EI option at the bottom of the left pane, admincp, here's a screenshot of my left pane.

http://smg.photobucket.com/albums/v437/Xiaodun_X2/IT/?action=view&current=Screenshot2010-03-24at25603PM.png

Serenit_y
03-24-2010, 02:54 PM
new problem, I re-installed everything.
Ran EI, but instead of saying "Done", it just didn't give a response.
- Out of 4 emails I posted onto the mail server, it only copied one to the forum
- It didn't delete any of the emails from the forum
- Whenever it ran, it kept copying that same email from the forum.

My assumption is, Perherps the code simply runs to
- Get email from mail server

And ignores the loop that tells it to get all the other emails on the mail server, then delete all the other emails.
Help?

Serenit_y
04-01-2010, 07:56 AM
I've resolved the issue, for anyone who might have Qualms following the instructions on this board or can't find the right Information, here's precisely what I did.

To get EI to work

1. Un-Installed 3.8, and installed 3.7.1 Patch Level 2
2. Installed EI Mod, 2.6.1 beta
3. Added the patch on POST #843 here; https://vborg.vbsupport.ru/showthread.php?t=151222&page=57;


To make the Cron run every 3 minutes, and output to a logfiles
Followed the instructions here;
https://vborg.vbsupport.ru/showpost.php?p=1581411&postcount=898

A bit more explanation Using Centos 05,

1. Created a file forumread.php in my home directory, to hold the php code (Code 1 on the above link)
2. Created a file forumread.cron in my home directory, to hold the command line script (Code 2 on the above link).
Added a line which, everytime the cron runs, writes into the file 'cronlog.txt', stating the date and time the cron last ran.
Here's an extract of my forumread.cron file;


#!/bin/bash
# load forum home page and read cron.php
/usr/local/php/bin/php /home/username/runcron.php
date +"EI Cron ran on%t %D At %T"%n >/home/username/cronlog.txt
exit 0


- went to my crontab home page, and created a new cronjob to access and run 'forumread.cron'
'cd /var/spool/cron'
'crontab -e'
'*/3 * * * * /home/username/forumread.cron

(My crontab is eddited using vi edittor, so to save the above change, typed ':wq')

Everything works well so far.
Thanks to Toivo and Cyrix.

Good luck.
Ciao

Rhaegar
04-15-2010, 07:27 PM
Hi - just wondering if there's any news on getting this ported to vb4.

Serenit_y
04-27-2010, 06:09 PM
Need some assistance in running the EI cron using the forumread.php patch,

I created a proxy site; forums.domainname.com, to connect to my vbulletin forum installed at, servername.domainname.com/vbulletin

On the forumread.php file, should the forum url variable be
The proxysite url, i.e.
$forum_url = 'http://forums.domainname.com/vbulletin/index.php';

Or should it be the server site
$forum_url = 'http://servername.domainname.com/vbulletin/index.php';

The same question with the cron URl variable,

Thank you v.much in advance.

John.

FCS-Webmaster
04-28-2010, 09:41 AM
Hi there any solutions for vb4 Users? This Mod really rocks and I don't want to miss it :-/

Krahl
04-28-2010, 08:09 PM
Same here. VERY interested in a vB 4 port of this mod.

ecraig
04-29-2010, 02:08 PM
Will this Email Integration version work on VB3.8.X ?

ecraig
05-02-2010, 02:51 PM
Email Integration error

Our messages are going through on the boards now, but they are being duplicated and are causing repetitive emails to go out each time.

Theres an error on the EI cron which may be the cause:


Fatal error: Call to a member function set_parsing_language() on a non-object in /local/apache/content/forums.afponline.org/htdocs/forums/includes/cron/emailintegration.php on line 1615

Do you know what could be happening?

Here is that section of code:
else
{
eval(iif(empty($evalemailplain["$touser[languageid]"]), $evalemailplain["-1"], $evalemailplain["$touser[languageid]"]));
$plaintext_parser->set_parsing_language($touser['languageid']);
$message = $plaintext_parser->parse($message, $foruminfo['forumid']);
}

$emailreturnaddress = $foruminfo['ei_replyaddress'];
$eiusername = $userinfo['username'];
$eidelimiter = stripcslashes($vbulletin->options['ei_header_newline']);
$eiheaders = '';
$eiheaders .= 'Date: ' . date('r') . $eidelimiter;
$eifromheader = 'From: ';
if($vbulletin->options['ei_use_single_from_address'])
{
$eifromheader .= $vbulletin->options['ei_single_from_name'] . '<' . $vbulletin->options['ei_single_from_address'] .'>';
}

Serenit_y
05-03-2010, 08:57 AM
To Ecraig

See post #843 here; https://vborg.vbsupport.ru/showthread.php?t=151222&page=57;
For a fix on the repetiive mail post issue.

LittleSilver66
05-04-2010, 09:11 PM
Hello,
We are not having any trouble receiving emails about new posts and threads, but it seems that the mailbox specified for replies is not being polled so the replies are not showing up in the forum.
IMAP is enabled in PHP and we are using GroupWise 7.0 and Outlook Express.
Can you point me in the right direction as to what the issue may be?

Thank you very much and I look forward to your response.

LittleSilver66
05-04-2010, 09:15 PM
Also I am having trouble finding the script you are talking about from your install.txt:
"If you have problems getting emails to appear in the forum, you can use a help script I have written which tests many different configurations to determine the proper entries for your forum. To use this script, go to AdminCP -> Email Integration -> Forum Setings Help. Enter the information as described, and run the script. Be aware that this script can take a *very* long time to run.
When the script has finished running, you should see a box with recommended settings which allowed the script to successfully connect to your IMAP server. Use these settings to configure your forum."

Where exactly is this?

topianno
05-07-2010, 05:48 AM
Aloha!
I was wondering if anyone knew if there were any plans for support for this plugin with vBulletin 4.0?

I recently upgraded to 4.0 and I am getting an error caused by the plugin.

THE ERROR I AM GETTING IS LISTED BELOW:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1146) : eval()'d code on line 1

Anyone have any ideas on how to resolve this?

Thanks ahead of time!

-Gabe

barne77
05-10-2010, 06:59 AM
any update for vb4

ArchAngelz
05-16-2010, 09:14 AM
Guess we are all waiting for a vb4 solution to this.

Serenit_y
05-19-2010, 08:09 AM
Also I am having trouble finding the script you are talking about from your install.txt:
"If you have problems getting emails to appear in the forum, you can use a help script I have written which tests many different configurations to determine the proper entries for your forum. To use this script, go to AdminCP -> Email Integration -> Forum Setings Help. Enter the information as described, and run the script. Be aware that this script can take a *very* long time to run.
When the script has finished running, you should see a box with recommended settings which allowed the script to successfully connect to your IMAP server. Use these settings to configure your forum."

Where exactly is this?

Ciao,

Do you have Mail parse installed? Under admin options, Maintenance list, I think you'll find php.info, if theres a mention of mailparse then it's installed, else you need this.

I also couldnt find the script AdminCP -> Email Integration -> Forum Setings Help, the author was refering to.

Serenit_y
05-19-2010, 08:10 AM
Is there a way to handle bounced messages?
Or store them?

Thanks in advance.

Serenit_y
05-21-2010, 12:15 PM
Anyone one run into a problem where you can send messages to the forum through a google account, but cannot receive notifications?

toivo
05-22-2010, 04:05 AM
Is there a way to handle bounced messages?
Or store them?
Check the vBulletin Options - Email Options. If you have selected the option 'SMTP Email' to send through an SMTP server, rather than using the internal mail() function, you can set the mailbox for bounced messages in the option 'Bounce Email Address', where the default value is set in the option 'Webmaster's Email' from 'vBulletin Options' - 'Site Name / URL / Contact Details'.

If you have not selected 'SMTP Email', your forum uses the internal mail() function. In the Windows server environment the sender of the email messages is specified in the PHP setting 'sendmail_from' in the file php.ini and then that sender is used as the return address by the servers bouncing the messages.

If your forum is in a *nix environment with a sendmail server, you can probably set the option 'Enable '-f' Parameter' and then use the option 'Bounce Email Address'. Hopefully someone who uses this combination can confirm the settings.

You need a separate mailbox to monitor the messages that bounced because of incorrect email address, mailbox over quota or temporary connection problems.

Auto-replies from holiday rules are different because they are delivered straight to your main mailbox for the forum. Depending on your mail server, you may able to filter them through rules available for example in MS Exchange. If you cannot block auto-replies because the subject does not contain particular words like 'out of office' or 'on leave' or the subject is in a foreign language and if you happen to use the old format in EI Mod, you can implement my hack to delete duplicate messages from the mailbox before they are broadcast to the members: https://vborg.vbsupport.ru/showpost.php?p=1785423&postcount=953

toivo
05-22-2010, 04:14 AM
To use this script, go to AdminCP -> Email Integration -> Forum Settings Help.

Where exactly is this?
Go to the vBulletin Control Panel and scroll down the left pane. The Email Integration option is at the bottom, expand it and you should see 'Forum Settings Help' and 'Auto Subscriptions'.

justdaves
07-04-2010, 02:33 PM
Thanks for the Mod Cyricx!

Any chance this can be coded to include email notification of new posts from an individual member $userid? I'd like my membership to be able to get the content of new posts from their favorite friend list emailed to them.

Thanks. Nice work.

bferrell
07-12-2010, 10:42 AM
Is this going to be upgraded to work with 4.0.4? I'd be happy to make a good donation as I really, really want this mod on my site!

Krahl
07-12-2010, 10:24 PM
Is this going to be upgraded to work with 4.0.4? I'd be happy to make a good donation as I really, really want this mod on my site!

Ditto!

Or if someone is willing to code a similar mod for 4.x, that would be great. If it would take funds, throw out a number!

lbernstein
07-18-2010, 11:47 PM
Is there a way to increase the default number of "subforums" and email addresses I can add to EI? I'd like all of the forums on my site to be able to have the functionality of EI.

kevinh
07-22-2010, 08:19 AM
When I run emailintegration.php from the task manager in vBulletin I am getting the following error;

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2914609 bytes) in /home/mysite/public_html/forums/includes/mimeDecode.php on line 259

It has been working just fine, but I just noticed that some (but not all) posts by email have not been posted into the forums on my site.

If I run mimeDecode.php from the command line on the server it runs without a problem.

Anyone have any idea what could be causing vBulletin to report this error?

fly
07-22-2010, 10:41 AM
^PHP memory limit. Either increase it, or have your host do it.

bferrell
07-22-2010, 04:39 PM
So, it's seems that this mod is on life support, and I really, really want this type of email integration. Are there reputable groups that do custom mod development like this?

Brett

kevinh
07-26-2010, 09:18 PM
^PHP memory limit. Either increase it, or have your host do it.

Thanks, I didn't change the memory limit, but this pointed me to the problem. There was an email with an 8.5Mb attachment in one of the mail boxes which was causing a bit of a "log jam" :)

I should point out however that I have EI set to discard attachments in emails, so the code must be trying to process the attachments in some way before it discards them. This is potentially a problem on a bigger forum where it would be more common for users to ignore the notice that attachments are not allowed.

BigJohnny
08-14-2010, 01:18 PM
I have an as of yet un-live board, but this installed and is working great (so far) on 3.8.3 with HostDiscovery.

BigJohnny
08-14-2010, 01:45 PM
it doesn't seem to work when I reply to an email. Nothing gets posted to the forum/topic, and Ive run the cron script manually.

I don't see the admincp nav options either, but ive uploaded the CPNAV file. <-- fixed this, the cpnav file need to be edited it points to the product emilint, but the product name is emailint37 so it needs to be changed in the cpnav file.

still can't get it to post replies to the emails.

BigJohnny
08-21-2010, 11:11 PM
I guess the author isn't supporting or working on it anymore then.

ecraig
08-31-2010, 05:00 PM
I've created a signature block in my profile on the discussion board and when I reply to a thread, or create a thread, it appears as it should. However, when I receive the email from my reply or thread, the signature block is not present. Also, when I reply to an email, the signature block I have in Outlook doesn't appear. Since I'm not real enthused about the idea of re-typing my signature block on every message, is there some setting I can adjust that will let it show and pass it through?
:confused:

BigJohnny
09-06-2010, 12:27 PM
Still not able to get the replies to post to the board. My host sees the reply coming into the mailbox, but when I perform a manual cron job, the email is purged (and fails to get posted to the forum).

The cron job log usually says that there are no emails in the box, but at times the cron log gives me the following:

"Email Integration results Opened mailbox for General Discussion Blocked from xxxx57@gmail.com Opened mailbox for Touchworks v11 No messages found for Touchworks v11 Opened mailbox for Modules No messages found for Modules"

The reply is originating from the address xxxx57@gmail.com.

I would be willing to pay someone to help get the mod working. PM me if you're interested.

Sounds like you've got the security feature turned on to block free email accounts such as gmail - have you checked that ?

in the cron file there is this code:
// checks for blocked subject lines
$blocks = explode(',', $vbulletin->options['ei_block_list']);
foreach($blocks as $block)
{
if (preg_match("/(.*)" . $block . "(.*)/i", $subject, $subjectnothin))
{
if (!$debug)
{
imap_delete($mailbox,$msgno);
}
$eilog .= "Blocked from " . $fromaddress . "\r\n";
continue 2;
}
}


In your admincp -> vbulletin options -> email integration settings

You need to correct this entry

Blocked Subject Text
Please enter the list of any text you wish to search for in the subject that you will reject any emails for having. Separate each one by a comma.
No Title,(no subject),Your email requires verification,Mail delivery failed,Autoreply,Undelivered Mail Returned to Sender,failure notice


You've added something in there that is causing the issue.

Ok this is all the same problem I'm having. I keep seeing this in my logs

Email Integration results Opened mailbox for Offers Blocked from ......


Im the admin, the board is not public and has no members right now. I've checked through those options and I have nothing set for "Blocked Subject Text", there is no email banning, and it still will not post the emails back to the board, but it will delete them from the server.

????

BigJohnny
09-06-2010, 01:05 PM
well it seems to work now. I guess you have to have some kind of filter in the "blocked subject text" I put "sex" as a banned subject and now they will post.

The ONLY small problem I have is with thread prefixes, If I create a new email and send it off to be posted as a new thread, it does indeed post back as a new thread but it lacks a prefix.

Anyway to enable users who reply/post by email to have the thread prefix?

toivo
09-15-2010, 07:50 PM
Is there a way to increase the default number of "subforums" and email addresses I can add to EI? I'd like all of the forums on my site to be able to have the functionality of EI.I have two forums with EI, each with their own mailbox and over 500 email subscribers in total, and it is working all right.

lemonadesoda
09-15-2010, 09:36 PM
Any plans for 4.x compatibility?

Budget101
10-28-2010, 01:14 PM
Any plans for 4.x compatibility?

I was wondering the same thing, judging by the fact that no one could be bothered to reply to you in over a MONTH, I would say the answer is No.

Mr Chris
11-19-2010, 05:13 PM
I would LOVE to have this for VB4

luluk
11-21-2010, 01:52 AM
yay..!! i need this...!!
is it work on vB 4.0.8 ???

Phototrope
11-21-2010, 06:10 AM
Yes, any chance of upgrading to VB4 ?

kevinh
02-02-2011, 08:33 PM
I wonder if some of the successful users of this mod could suggest some things to try to resolve a problem I am having.

I have been using EI successfully for over a year now with a forum of around 500 users, most of whom had "instant email notification" for new posts selected (that was the default autosubscribe for new users).

For a variety of reasons I recently decided to disable EI for most users, so I removed the "Registered Users" usergroup ID in the EI settings for each of my forums. However, when a new post was made in one of the forums and email notification still went out to all Registered Users.

Can anyone suggest any reasons why this might happen?

gagan007
02-03-2011, 07:23 AM
The same mod for vb4.x.x. would be wonderful...

amphicar770
02-05-2011, 07:17 PM
At this point I think it is reasonable to assume that this mod has been abondoned by the author and is no longer supported.

I certainly do not expect any mod to be supported for eternity. At the same time I do think the author has a responsibility to make his users aware that it is being killed off. I, like others, made multiple contributions to support an effort that was already dead.

I do think this was one of the best mods ever. Unfortunately, it has now become a nightmare as it leaves me stuck on VB 3.7.

saxman2008
03-06-2011, 10:54 PM
I do think this was one of the best mods ever. Unfortunately, it has now become a nightmare as it leaves me stuck on VB 3.7.

I have only just found this mod and I was already on VB 3.8.3
The mod has installed and works on my VB 3.8.3
I have only done basic testing so I do not yet know of any problems but at least I can confirm that the 2.6 version of this mod for VB 3.7 does install and work on VB 3.8.3

Cybertims
03-25-2011, 10:29 AM
Installed and working on 4.1.2 Beta, with a wee tweak here and there.

toivo
03-31-2011, 12:23 AM
Installed and working on 4.1.2 Beta, with a wee tweak here and there.
Well done. Have you thought about publishing your tweaks in the 4.x Mods forum?

nick_h
04-18-2011, 06:37 PM
I was setup with Vb 4.1.2 and i meet an error . Warning: array_merge() Argument #1 is not an array in ....

toivo
04-18-2011, 07:05 PM
Does that warning stop EI from functioning? Where precisely in the code is the warning reported?

You can also off the reporting of warnings in the PHP settings. Warnings should be logged, not displayed.

nick_h
04-18-2011, 07:28 PM
Forum still work fine , but i have a warning at the top of forum .

SimCityForum
05-15-2011, 08:28 PM
This error is begin caused by line 238 in the file product-emailreplyint.xml, which is:

<phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('bbcode_quote'));]]></phpcode>


I haven't yet figured out what to do about it.

SimCityForum
05-16-2011, 12:55 AM
Here is a listing of changes I made to try and get Email Integration working again.

product-emailreplyint.xml
Deleted line:238
<phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('bbcode_quote'));]]></phpcode>

Modified line: 781
Original:
WHERE postid = $postid

Modified:
WHERE contentid = $postid

If I find more changes that need to be made I'll post them, but it appears these changes get this plug-in working again on vB4.1.3

Cyricx
05-17-2011, 08:10 PM
I'll be working on this in the next few days to come and dig over what others have found and what I can figure out to get a new release for vb4 sent out.

filipo
09-13-2011, 03:06 PM
...what I can figure out to get a new release for vb4 sent out.
Cyricx, any updates on the status of your mod for VB4?

dybrn
09-14-2011, 06:12 PM
I'll be working on this in the next few days to come and dig over what others have found and what I can figure out to get a new release for vb4 sent out.
I am looking forward to testing the release for vb4.

Baja
10-11-2011, 04:27 AM
I'll be working on this in the next few days to come and dig over what others have found and what I can figure out to get a new release for vb4 sent out.

Yes, I too would love to see a vb4 version! I'm thinking of using this to create threads in an admin forum for notifications that are only available via email (firewall alerts, itrader alerts, etc).

Cat Terrist
12-05-2011, 09:36 AM
I'll be working on this in the next few days to come and dig over what others have found and what I can figure out to get a new release for vb4 sent out.

Any luck with this? I would love to have this mod up and working for my users

RickMeyer
01-06-2012, 06:07 PM
We need this functionality as well so I took the 2.6.1 beta release and made some pretty heavy changes. It seems to be working so I documented the changes I made and repackaged it as a dot release, hope I'm not stepping an any toes. Here is a summary of what I did:

Moved the 'subscribeforums.php' code into a plugin, EI_SubscribeForums, using the usersub_start hook location.
Also had to add a plugin, EI_EnableSubscription, using the usersub_add_complete hook point to enable the proper options in the drop-down when subscribing to the form.
Templates, USERCP_SUB_MGR and usercp_sub_mgr_forumbits, modified to use the vB4 layout methods.
Changed the USERCP_SHELL mod in the instructions to use a list instead of tables.
Modified the template, subscribe_choosetype, changing the first if condition to look at "$type=='threadid'" to determine if this is a thread or a forum.

Note - this is still largely untested but it seems to be working as originally designed.

filipo
01-06-2012, 08:06 PM
Thanks very much, Rick! Anyone testing Rick's mod, please post your experiences here.

mtn-niche
01-26-2012, 12:48 AM
Rick, I'm trying to get your version of the mod working on vBulletin 4.1.10 and I'm seeing a few problems:

When viewing any page of the forum as a user, I get the following PHP warning at the top of the page:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1366) : eval()'d code on line 1

Also, the Settings > General Settings page (my user profile area) is showing formatting errors such that stuff on the main section of the page is overlapping itself. I've attached a screen shot so you can see what I mean.

And a basic question about the mod installation: in Step 6 (Template EDIT) of the install.txt file, the second template edit says to find "<vb:if condition="$show['subscribetothread']">" and replace it with something else, but there are two instances of the string. Should I replace both instances or just the first?

Thanks for your work on this, and any help you can provide.

RickMeyer
01-26-2012, 01:50 PM
Wow,
I have not seen any of these issues, a few others that I'm working on but not these.
What version of vB are you using?
I'll take a look at these when I get a chance, might be a few days though.

mtn-niche
01-26-2012, 03:26 PM
Rick, I'm using V4.1.10. I found a bunch of other reports of problems when upgrading from 4.1.3 to 4.1.4 due to them moving the message editor from one path to another. I just copied the install package for version 4.1.3 to my server and I plan to try it with that version today. Can you tell me which vBulletin version you are working with? Also, do you know of any browser related issues with vBulletin (I'm currently using Firefox 4.01, so I'm a bit out of date there)?

Thanks

mtn-niche
01-28-2012, 06:30 PM
Update: I've made some progress getting this to work using Rick's 2.6.2 Beta version of the mod with vBulletin V4.1.3 Patch Level 6. I was able to get a post to be created from an email reply (reply to an email from the Instant email Notification.)

I was getting the "array_merge" warnings until I deleted the line from product-emailreplyint.xml as SimCityForum mentioned in post #303, however it was a different line in my file (not line 238). Also, I found three cases of the "WHERE postid = $postid" code in the product-emailreplyint.xml but since the line numbers were different I was not sure if I should change any or all of them. In my version of the file, the code is found on lines 354, 438, and 765 (this is after deleting the one line earlier.) I assume this change is due to a table structure change but I have not tried to figure out the details yet. Anyone else tried this?

mtn-niche
01-28-2012, 08:32 PM
Another update: Seems one needs to go back through every post in this thread as well as the thread for the mod for V3.6 to get this working!

I ran into the problem with the cron job failing and found the solution here:
https://vborg.vbsupport.ru/showthread.php?t=151222&page=57
(see post #843 on that page)
This involves an edit to the emailintegration.php file . Without this fix the processing of the mailbox for the forum would sometimes fail and not delete messages that had been turned in to posts resulting in duplicate posts from one email (and get stuck in a loop). You can see the problem when you manually run the Email Integration task from the Scheduled Task Manager. After this fix when you run the task manually you get a nice report of what was done.

I'll keep testing and post anything else I find. I am surprised there is not more interest in this mod.

Simon Lloyd
01-31-2012, 06:20 PM
Anyone have any issues with this and vb3.8.7 PL2? it's sending out the notifications instantly but not recognising the email replies, could it be to do with vBSEO?, if so anyone got a fix for it?

Simon Lloyd
01-31-2012, 08:16 PM
Also thisrequire_once(DIR . '/includes/functions_threadprefix.php');in emailintegration.php should readrequire_once(DIR . '/includes/functions_prefix.php');in vb3.8.x so i'm still puzzled that some folk have reported it working in vb3.8 ?

saxman2008
03-05-2012, 05:13 PM
Thanks very much, Rick! Anyone testing Rick's mod, please post your experiences here.

Yes, thanks Rick. I am trying to get this working for a new project and no email integration is a show stopper for me. I did have it working with 3.8.4.
I tried Rick's 2.6.2Beta with VB4.1.11 but had various problems there.
I am now trying Rick's 2.6.2Beta with VB4.1.3Patch6 and have it working with one warning.

I am getting;
Warning: mysql_escape_string() expects parameter 1 to be string, array given in [path]/includes/class_core.php on line 727
The above warning is coming from subscription.php?do=dosubforums when I click "Add Subscription" in "Edit Forum Subscriptions". Despite this error it seems forum subscriptions are saved.

UPDATE: 7 March 2012
In VB4.1.5 I did get rid of the above error with a small change in EI_SubscribeForums plugin.
I today decided to try the same thing with VB4.1.11 and I see that EI is now working without any error and without having to edit the EI_SubscribeForums plugin.

Cat Terrist
04-11-2012, 08:27 AM
Thanks very much, Rick! Anyone testing Rick's mod, please post your experiences here.

Iget

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1353) : eval()'d code on line 76

But I have also gotten a lot further with EI working in the main - I see soemone else got the same error I did so I'll apply that fix and see how I go

Cat Terrist
04-11-2012, 09:24 AM
I was getting the "array_merge" warnings until I deleted the line from product-emailreplyint.xml as SimCityForum mentioned in post #303, however it was a different line in my file (not line 238). Also, I found three cases of the "WHERE postid = $postid" code in the product-emailreplyint.xml but since the line numbers were different I was not sure if I should change any or all of them. In my version of the file, the code is found on lines 354, 438, and 765 (this is after deleting the one line earlier.) I assume this change is due to a table structure change but I have not tried to figure out the details yet. Anyone else tried this?

Also note I applied the remove line and change all three instances of "where postid". Errors I had have gone. I will presume that since what I had in vb 4.1.8 is the mirror so far of your results, I will likewise apply your fixes.

Thanks for your work Rick, much appreciated, after the fixes noted it looks like it's working well.

yaku
04-12-2012, 04:03 AM
Is there a way to put all the emails titled the same into one thread?

For example, I'd like to have one thread with Dodgers news. If I find Dodgers news that I'd like to post, I'd just title the email "Dodgers News" and it would go into the thread already made.

Is this possible using this software?

Cat Terrist
05-03-2012, 12:07 AM
Another update: Seems one needs to go back through every post in this thread as well as the thread for the mod for V3.6 to get this working!

I ran into the problem with the cron job failing and found the solution here:
https://vborg.vbsupport.ru/showthread.php?t=151222&page=57
(see post #843 on that page)
This involves an edit to the emailintegration.php file . Without this fix the processing of the mailbox for the forum would sometimes fail and not delete messages that had been turned in to posts resulting in duplicate posts from one email (and get stuck in a loop). You can see the problem when you manually run the Email Integration task from the Scheduled Task Manager. After this fix when you run the task manually you get a nice report of what was done.

I'll keep testing and post anything else I find. I am surprised there is not more interest in this mod.

Okay, I had some posting errors so I backtracked anod contentid is not a valid field in 4.12 so I put back on postid in all three places. Email Intergration passed all tests once the plugin was reloaded

reedness
07-26-2012, 07:04 PM
Anybody have any luck in v4.2.0?

Miyuki419
07-28-2012, 10:11 PM
Ditto. I would like to install this but I wonder if it will work in 4.2.

Cat Terrist
08-20-2012, 09:30 AM
Yes, it works with my test site. You really do need to read carefully the last two pages to make sure you get everything just right. I forgot the contentid thing and spent a bit of time swearing

reedness
08-20-2012, 06:52 PM
Yes, it works with my test site. You really do need to read carefully the last two pages to make sure you get everything just right. I forgot the contentid thing and spent a bit of time swearing

Hi Cat. Are you referring to 4.2?

Cat Terrist
08-27-2012, 09:28 AM
Hi Cat. Are you referring to 4.2?

Yes.

However I did hit one bizarre problem - after multiple forums are enabled, I get a database error every time a new thread is posted on the forum - but a new thread via EI works. One forum, no problem.

But yet, the thread starter is there when you refresh and all posts after that work fine as well as EI. I know where in the xml the error is produced but I havent quite worked out why.

EDIT : Okay, nutted it out, it was the call EI makes to see if there is attachments to the posts. In line 765 of product-emailreplyint.xml, it looks like this for me -

WHERE postidid = $postid

It MUST be

WHERE contentid = $postid

And I am once again good. You might find that line is correct if you have not been testing fixes like I've been.

reedness
08-28-2012, 02:13 PM
Thanks, Cat. Did you try the 2.6.1 Beta version?

reedness
08-29-2012, 07:07 PM
Yes.

However I did hit one bizarre problem - after multiple forums are enabled, I get a database error every time a new thread is posted on the forum - but a new thread via EI works. One forum, no problem.

But yet, the thread starter is there when you refresh and all posts after that work fine as well as EI. I know where in the xml the error is produced but I havent quite worked out why.

EDIT : Okay, nutted it out, it was the call EI makes to see if there is attachments to the posts. In line 765 of product-emailreplyint.xml, it looks like this for me -

WHERE postidid = $postid

It MUST be

WHERE contentid = $postid

And I am once again good. You might find that line is correct if you have not been testing fixes like I've been.

How did you pull off step 6? USERCP_SHELL does not contain this at all.

6. Template EDIT

In:
Admincp -> Styles & Templates -> Edit Templates -> User Control Panel Templates -> USERCP_SHELL

**************
FIND:
**************
<tr>
<td class="$navclass[substhreads_editfolders]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td>
</tr>

**************
AND ADD UNDER IT:
**************
<!-- ##### START MODIFICATION - Email Integration ##### -->
<tr>
<td class="$navclass[subscribe_forums]" nowrap="nowrap"><a class="smallfont" href="subscribeforums.php?$session[sessionurl]do=list">$vbphrase[ei_edit_sub_forums]</a></td>
</tr>
<!-- ##### END MODIFICATION - Email Integration ##### -->

**************
CLICK SAVE!
**************

Cat Terrist
09-04-2012, 06:05 AM
Thanks, Cat. Did you try the 2.6.1 Beta version?

No, for v4 of vBulletin you must use 2.6.2 Beta that was posted a page or two back.

How did you pull off step 6? USERCP_SHELL does not contain this at all.


DO this instead

6. Template EDIT

In:
Admincp -> Styles & Templates -> Edit Templates -> User Control Panel Templates -> USERCP_SHELL

**************
FIND:
**************
<li class="{vb:raw navclass.substhreads_editfolders}"><a href="{vb:link subscription, '', 'do=editfolders'}">{vb:rawphrase edit_folders}</a></li>

**************
AND ADD UNDER IT:
**************
<!-- ##### START MODIFICATION - Email Integration ##### -->
<li class="{vb:raw navclass.subforum}"><a href="{vb:link subscription, '', 'do=subforumlist'}">{vb:rawphrase ei_edit_sub_forums}</a></li>
<!-- ##### END MODIFICATION - Email Integration ##### -->

**************
CLICK SAVE!
**************

In:
Admincp -> Styles & Templates -> Edit Templates -> Subscriptions (Thread Notifications) Templates -> subscribe_choosetype

**************
FIND:
**************
<vb:if condition="$show['subscribetothread']">

**************
AND CHANGE IT TO:
**************
<vb:if condition="$type=='threadid'">

**************
CLICK SAVE!
**************

Rolll
09-11-2012, 10:01 AM
It's not work on 4.2.0

washingtonboise
09-12-2012, 10:19 AM
I have asked Cyricx if he's interested in updating to 4.x or allowing other coders to work with his code to update this mod.

I've offered $300. Forums for mods which are 3.7 and lower will be locked soon. I've asked him to reply here (https://vborg.vbsupport.ru/showthread.php?p=2364758#post2364758) if he's willing to either develop, or allow others to develop.

reedness
10-11-2012, 08:04 PM
Thanks for all your help Cat. I am trying again with 2.6.2. So far no luck. Also, I do not have an emailreplyint.xml in my installation as you mentioned earlier to change to this "WHERE contentid = $postid"

I am still messing with this but you have been very helpful.

Cat Terrist
11-21-2012, 12:59 AM
While I got it workign on 4.2, I'm now having delivery issues where things go mad and older posts get resent.

Looking into the jobschedules at present

iraqiboy90
01-08-2013, 08:55 PM
will this work for vb4.2? Its an extremely useful feature, but sad that nobody had upgraded it yet?

Nelson58
01-22-2013, 03:57 PM
I have asked Cyricx if he's interested in updating to 4.x or allowing other coders to work with his code to update this mod.

I've offered $300. Forums for mods which are 3.7 and lower will be locked soon. I've asked him to reply here (https://vborg.vbsupport.ru/showthread.php?p=2364758#post2364758) if he's willing to either develop, or allow others to develop.

I will pay also. Many of my members want to respond by email. Some are stupid and do it anyway now, thinking it will work.... :D

mykkal
02-10-2013, 02:04 AM
I have this on 3.8.7 PL1. It works but the problem is the emails aren't RFC compliant and they rejected some. It really needs a mailer class update.

Anyone have any issues with this and vb3.8.7 PL2? it's sending out the notifications instantly but not recognising the email replies, could it be to do with vBSEO?, if so anyone got a fix for it?

Simon Lloyd
02-10-2013, 05:36 AM
What did you do to get this working on vb3.8?

mykkal
02-10-2013, 05:51 AM
What did you do to get this working on vb3.8?

Honestly, I just followed the instructions. But also, i'm on my own dedicated servers and i'm using 3.8.7 PL1. PL2 has some major differences and a few new features. That could be the problem.

also, i've had it installed since 3.7. I ran the upgrade with it already in place.

Simon Lloyd
02-10-2013, 01:53 PM
Ahhh!, i see, im on my own box too but the PL's got be the issue, but i feel it was an issue with reading the mails from the inbox for each particular forum.

mykkal
02-11-2013, 12:10 AM
You could be right. I haven't tried to upgrade because I've got so many mods... But honestly the email integration plugin isn't utilized much. I'm thinking of uninstalling it and reinstituting it on a later version of VB.

Do they have email integration plugins for VB4 or VB5?

Ahhh!, i see, im on my own box too but the PL's got be the issue, but i feel it was an issue with reading the mails from the inbox for each particular forum.

andor
04-01-2013, 08:47 PM
Howdy - I am willing to contribute as well. Client specifically requested posting by email to match a competitor's forum for his own users. Requesting for vB 4.2.0. Please PM if developer willing to proceed and required contrubtion to help make it happen. :-)

TomRBurke
07-29-2013, 08:38 PM
Hi I am intertested in getting this to work on VB 4.2 also. Anyone know where we are with this. I have a PHP programmer that can help

digeditor
12-27-2013, 04:04 PM
Just a quick note. I've got this working on 4.2. As soon as the guy I had fix it returns from his vacation, he will post the changes which he made. Think Mid January

Jim

Raptor
01-30-2014, 03:39 PM
any update Jim ?

ahobilam
02-05-2014, 02:21 PM
Please inform me also,
if any updated version is released.
Thanks in advance

digeditor
03-24-2014, 11:15 PM
I've got this working under vB 4+.

I haven't any idea how to get the update onto here so it can be used by the community.

Anyone out there who might know how to go about doing that?

Jim

Simon Lloyd
03-25-2014, 01:51 PM
put your vb installation in debug mode then go to products manager and export the product, then download any associated files with the mod, zip them together and post em here ;)

ozzy47
03-25-2014, 02:53 PM
put your vb installation in debug mode then go to products manager and export the product, then download any associated files with the mod, zip them together and post em here ;)

And that is if it is a total rewrite, as the mod is not marked reusable code. :)

Simon Lloyd
03-25-2014, 07:07 PM
And that is if it is a total rewrite, as the mod is not marked reusable code. :)

Good point, however, i feel someone should attempt to contact the coder as they haven't been here for 3 years.

RichieBoy67
03-25-2014, 07:27 PM
I would love this for 4.2! This would most likely really increase content on many forums allowing members to just reply to a thread or post through email. I want this!

Digital Jedi
03-26-2014, 05:01 AM
Good point, however, i feel someone should attempt to contact the coder as they haven't been here for 3 years.
You know, I've contacted a few different coders of some other mods who didn't specify to take the project over or mark their mod as reusable. Even on their own sites or Facebook Pages. So far, none have returned my calls. Seems some of the old coders don't even want to talk to anyone still using vB.

andor
03-26-2014, 07:41 AM
vB is offering cloud solution now... well, they are really after our own forum traffic aren't they? Maybe that's why developers have jumped ship, a generational shift in platform where they aren't really welcome. Can't blame them. Mind you, this opens up opportunities for other forum developers, and there may be somewhere else we can park our interest in a few years...

This is a much requested plugin from some of my clients, so I'm very interested to see what comes of this.

digeditor
03-26-2014, 02:12 PM
I tried contacting the developer some time ago with no response. I even offered to pay to have it updated for vB 4+. About then I decided that I'd have it done myself (no not by me. Too many years since I coded anything).

Not reusable? Not sure what that implies. Does it mean I can just add a new Mod? And how the heck do you do that?

It is a significant rewrite. Some of the changes which were made to it e.g. That whole "write between the lines" in the reply block area thing is now gone. That was in response to the ubiquitous use of Gmail accounts. Gmail users had trouble with that because Gmail insists on popping up this tiny box for a reply and you don't see the Mods reply box. But the basic bones are still there.

I've had it running on my forum for more than two months and made tiny changes along the way. And more will be done as I'm not enamored of the Subject line containing a thread number when thread info is in the RFC-822 headers which could be used.

Jim

digeditor
03-26-2014, 02:16 PM
I would love this for 4.2! This would most likely really increase content on many forums allowing members to just reply to a thread or post through email. I want this!

That's an interesting comment. I moved from a listserv to vBulletin with that exact thought in mind. The amount of flack that I caught because of the difference in email delivery was incredible.

Jim

blind-eddie
03-26-2014, 03:20 PM
Though it is not marked as reusable, does not mean you can not show (In this thread) step by step instructions on all edits you had to do to get this to work on 4.0.
You can not allow any downloads, just text to show where to edit so others can do the same.

But, you would think with the way vb4 is written compared to 3.7, there should really be nothing stopping anyone from updating any pre vb4 modification to work with vb4.
Just my thoughts.

ozzy47
03-26-2014, 11:54 PM
Though it is not marked as reusable, does not mean you can not show (In this thread) step by step instructions on all edits you had to do to get this to work on 4.0.
You can not allow any downloads, just text to show where to edit so others can do the same.

But, you would think with the way vb4 is written compared to 3.7, there should really be nothing stopping anyone from updating any pre vb4 modification to work with vb4.
Just my thoughts.

Well the underlying PHP code can be exactly the same in vB3 and vB4, the only difference is how the template is rendered, so since it is not marked reusable, it would require a complete rewrite.

It is unfortunate, but until the developer changes the status, a edited version of the mod can not be posted. :(

caciocode
06-24-2014, 07:05 PM
Can anyone write something like the mod completely from scratch? I need this urgently for my forum. I would add some donation to get it started.