MatthewByrom
Forum Replies Created
-
There is the comment issue. Basically the only thing I needed to change to add the comments to the Digests were to change the lines that only looked at groups.
However, I agree that it’s down to that, as when I turn comments off again the problem goes away (though we don’t get any comments at that point).
I did have to add some bodged horribleness to bp-activity-subscription-digest.php to remove duplicates. However, if the latest version of GES does that without my changes, then I’d rather use that & maintain a fighting chance of being able to keep up with updates etc without a lot of fiddling.
Many thanks for the link & advice, r-a-y. I’ll give it a try & let you know how it works.
Cheers Scott. I appreciate that.
Forum: Fixing WordPress
In reply to: Comments appear duplicated in Email Digest when Pods is activeHi Scott,
I’ll check that first. Worth looking into.
I’ll reply with my findings.
Thanks.
Hi Scott.
We’re running WordPress 3.5 & Pods 2.2 at the moment.
No plans to update WordPress for the forseeable.
Hi Scott.
Thanks for the reply.I’ve tried that already, when we click the dropdown, the fields are all located in one long line, separated by “n”.
For example:
I enter the following list, as displayed:
Baptist World Aid Australia
CEDAR Fund
Food for the Hungry
Integra
MAP International
Mission Alliance
Mission East
SEL
Tear Australia
Tear Netherlands
TEAR Fund NZ
Tearfund Belgium
TearFund Switzerland
Tearfund UK
World Concern US
World Relief Canada
World Relief US
World Renew
Integral Secretariat
MedairWhen I save it & try to create a comment, The option ends up like this:
Baptist World Aid AustralianCEDAR FundnFood for the HungrynIntegranMAP InternationalnMission AlliancenMission EastnSELnTear AustralianTear NetherlandsnTEAR Fund NZnTearfund BelgiumnTearFund SwitzerlandnTearfund UKnWorld Concern USnWorld Relief CanadanWorld Relief USnWorld RenewnIntegral SecretariatnMedair
I tried the key|value trick, but ended up just getting:
“Baptist World Aid AustralianCEDAR Fund”
On the drop-down as an option.Hello there,
As an extension to the above question:
When creating a Simple (Custom Defined List) option, how would you separate the options to put each on a new line?
I’ve tried comma separation, semi-colon, even \n.
Have I missed one?
Thanks for all your advice guys. I’ve managed to make some progress.
The Client basically said she wants to be notified about everything, so I changed BPGES to record groups & blogs. I know I’ve now broken BPGES for updates, so I’m going to learn how to write a plugin & then add my changes in there/reinstall BPGES to make sure it’s OK.
BPGES now displays a Comment which links back to the Post beautifully.
I also had to add some code myself to get the Group to match correctly for the comments. As you say, the item_id was always being set to 1, which didn’t help.
We’re not finished, as I need to sort this plugin aspect out. I’m going to have a go myself before getting someone else in again.
I can’t tell you how much you have helped. Our developer guy just vanished & I honestly thought we’d be left with a broken plugin. Thank God for these forums!
Right, we had a developer do some functionality for us, but then ceased to exist.
The Developer added created some code in the file bp-activity-subscription-digest.php to pull the associated comments & present them with a post:
$post_id = $item->secondary_item_id;
$args = array(
'post_id' => $post_id, // use post_id, not post_ID
'count' => true
);$count_comments = get_comments($args);
if($count_comments > 0):
$item_message .= "<div style=font-weight:bold;'>Follow Ups To Post</div>";
$args = array(
'post_id' => $post_id // use post_id, not post_ID
);$comments = get_comments($args);
foreach($comments as $comment) :
$item_message .= "Comment by: " . $comment->comment_author . ' ' . $comment->comment_content . "<div style='padding: 10px; border-top-width: 1px; border-top-color: rgb(238, 238, 238); border-top-style: dotted; margin-top:10px;'></div>";
endforeach;endif;
Initially, this looks fine.
The issue with the above solution is of course that, once a digest fires, that post is no longer logged in wp_usermeta & so therefore if anyone posts a comment to that post after the digest, it will not be added to the next Digest.
Looking in wp_bp_activity, I can see that comments are being recorded as type “new_blog_comment”, so the Posts being made must be Blog Posts (apologies for the confusion, I’m having to hunt this stuff out myself & there’s lots to this website that I wasn’t involved in)
Also the component is listed as Blogs, not Groups – So that’s got to change, according you your response earlier. The Developer we hired didn’t do anything with that, it seems.
The comments are being recorded by a plugin called Pods. I’m guessing that plugin changes what is added to the activity stream.
Looks like we’ve got to find a new developer to help.
Is anyone on these forums aware of a firm or developer that can be employed to add functionality to BPGES?
The comments are replies to regular posts, but not Blog Posts.
Is there a filter anywhere that identifies Blog posts, by any chance? or perhaps Forum Comments?
I’ll pass it on.
Comments currently appear to be added to the Activity Stream, just not in the digest. There must be some additinal information required to put them in the correct group.
Thanks for the pointers.
Resolved this for me in any case.
We have emails with branded header image etc, using WP Email Template LITE.
The branding was not being applied to digests.In bp-activity-subscription-functions.php, check around line 294.
Replace:
wp_mail( $user->user_email, $subject, $message . $notice );With:
@wp_mail( $user->user_email, $subject, $message . $notice );Our branding was then applied.
Hope this helps anyone with a similar issue.
Hi Scott,
Apologies for the tardy response.
Becs made the functionality freely available on this post. Hope this helps.
Sorry to resurrect a possibly old thread, but I was wondering if anyone has had any success in adding comments/replies into digests?
It appears both @nickharambee and I appear to want the same functionality.
If anyone has any solution to this I’d be most grateful.
Matthew.
Same here!
Anyone had any luck with this?
Hi Ray.
Thanks for the advice. We did investigate subscribe2, but it lacked the ability for Users to dictate how regularly they want their digests on a per-category basis, which BPGES handles so well.
In the end, thanks to the assistance of the frankly brilliant @becskr, who provided us with some custom functionality, our posts are now added to the activity stream & BPGES sends post emails just like a Forum post or Update.
Thanks for the advice, mattyrob.
Sounds like a bridge too far. Time is against me on this one too.
Thanks for letting me know. Appreciate the advice.