Andrew Perryman
Forum Replies Created
-
AuthorPosts
-
Andrew PerrymanParticipant
Cool, thanks Shamim…
January 24, 2019 at 2:58 pm in reply to: Urgent – Disable design feature in code or via backend ( Group messages killed ) #21037Andrew PerrymanParticipantShamim.. you are a star ????
I have tested it and it works a treat.. ????.
Thank for you lightning support response..
I have created a custom plug in to place all my PHP fep amendments in and it works perfectly from the plugin too.
As said before, only as a seed of thought, maybe a dashboard checkbox to give a choice to turn this on or off would be great in the next version.
Andrew.
Andrew PerrymanParticipantHi Kelly,
Was this a reply or question for Shamim or me as I can see what you have asked if it was for me it as you have marked it private and it has been screened from all except Shamim?
Andrew
December 25, 2018 at 1:08 am in reply to: messagebox Small visual tweak to include group name in message listing #20099Andrew PerrymanParticipantShamim,
Xmas bonus sent via my wife account… 🙂
Have a great new year.
Andrew
December 24, 2018 at 2:06 pm in reply to: messagebox Small visual tweak to include group name in message listing #20073Andrew PerrymanParticipantHi Shamim,
Wow that’s great.
Thanks for all your input it will make the listing much more insightful for all.
I would like the donate a Christmas bonus to you for a the efforts you have made but can’t find a way to do it.
Can you please send me your preferred payment method or PayPal account detail via a PM..
Thanks
Andrew
December 24, 2018 at 12:14 am in reply to: messagebox Small visual tweak to include group name in message listing #20060Andrew PerrymanParticipantHi Shamim,
I does not need the word “Group” just the group “name” of the group is enough…
You could set a limit and truncate the full name that is displayed, it is just so people can see instantly what group the icon represents rather than having to click and view every group icon to find the group they want to answer.
Andrew
Andrew PerrymanParticipantShamim,
Update… The odd un-forwarded user has now received forwarded mails successfully on their home network so I can only assume he has decided to reply to emails via a browser session or infant stopped using an otherwise PC. The other possibility is that his windows main platform has received adequate updates to be current and naturally eliminated the problem as an update fix.
Who knows but I will keep a close eye on his message activity..
I’ll mark this thread a s resolved.
Andrew
Andrew PerrymanParticipantShamim,
You star… ????
Yes that worked for both prompt mails both New message and new reply, well done, I can now safely say this will hopefully eliminate cross talk confusion for all those users that share multiple groups.
I hope you get a good nights sleep..
Andrew
Andrew PerrymanParticipantShamim,
So after many diferent tests I think the reply tag is not working for some reason..
However the new message tag does only on the first initiate new message.
Andrew
Andrew PerrymanParticipantShamim,
I wonder if the reply is being stripped of the new tag?
just a seed of thought.
Andrew
Andrew PerrymanParticipantHi Shamim,
Is the ‘where’ section correct in the routine below as it works for a new message in the email prompt and displays ok but when it is piped back via a reply it does not display on a new reply, it look like the return variable is empty unless the ‘where’ section is missing the correct description for ‘reply’?
add_filter( 'fep_eb_email_legends', function( $legends, $mgs, $user_email ){
$legends['cus_group'] = array(
'description' => __('Mail group name', 'front-end-pm'),
'where' => array( 'newmessage', 'reply' ), //where this tag will be used
'replace_with' => ! empty( $mgs->mgs_id ) ? apply_filters( 'fep_is_group_message', '', $mgs->mgs_id ) : '',
);
return $legends;
}, 10, 3);your thoughts..
Andrew
Andrew PerrymanParticipantHi Shamim,
Cool thanks, that fantastic it works a treat… 🙂
I was about 80% there when I realised I needed to use an apply_filter…
$group = apply_filters( ‘fep_is_group_message’, true, get_message_id() );
But this just gave me 1 or 0.. you saved me a big headache.. lol
Anyway thank you very much.
I replied to you PM message r.e. satBB.
Andrew
Andrew PerrymanParticipantPPPS..
Shamim,
I am shooting in the dark here, what variable should it be to set the current group the message is being sent to?
For example..
‘replace_with’ => [ $group ][‘name’]
Andrew
Andrew PerrymanParticipantPPS..
Plus this will need extra code wrapped around it to identify and to only set the tag if a group is chosen..
Andrew
Andrew PerrymanParticipantPS..
Shamim,
I have just started reading through your code but it is wood for trees sometimes but is the variable I am after called – “$message_id” – does this represent the mail group name?
e.g.
So would this work…
add_filter( 'fep_eb_email_legends', function( $legends, $post, $user_email ){
$legends['group'] = array(
'description' => __('Mail group name', 'front-end-pm'),
'where' => array( 'newmessage', 'reply' ), //where this tag will be used
'replace_with' => '$message_id'
);
return $legends;
}, 10, 3);
Or have I got this totally wrong and it is called something else?
Andrew
-
AuthorPosts