Home › Forums › Front End PM PRO › Hide attachment in front end
Tagged: attachment
- This topic has 12 replies, 2 voices, and was last updated 6 years, 8 months ago by Sanne Huntink.
-
AuthorPosts
-
April 10, 2018 at 3:58 pm #13210Sanne HuntinkParticipant
Hello,
I was wondering if it is possible to hide the attachments. We already insert the attachments through a link in the text so it is kinda double when the attached files also are underneath the text.
I hope someone can help me with this.
Kind regards,
Sanne HuntinkAttachments:You must be logged in to view attached files.April 10, 2018 at 4:13 pm #13214Shamim HasanKeymasterYou want to disable attachment feature completely so that users can not send attachments? or users can send attachments but not shows attachment links?
April 10, 2018 at 6:11 pm #13220Sanne HuntinkParticipantHi there,
No I don’t want to completely disable the attachments. I want that users can send attachments but not show the attachment links.
Can you help me with this?
April 10, 2018 at 8:59 pm #13224Shamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_action('wp_loaded', function(){ if( class_exists( 'Fep_Attachment') ) remove_action('fep_display_after_message', array( Fep_Attachment::init(), 'display_attachment') ); }, 15 );
April 11, 2018 at 1:14 pm #13235Sanne HuntinkParticipantHi,
Thank you for the code but when I add it to the functions.php the website broke. Is there another way?
April 11, 2018 at 1:36 pm #13240Shamim HasanKeymasterwhat is your php version?
I have tested this code before giving you. So it should work. Did you add this code before closing tag (?>
) of php?
Can you please check your server error log and see what is the error there?April 11, 2018 at 3:26 pm #13257Sanne HuntinkParticipantAh I already find what I did wrong. Thank you for the code!
Another question I have:
I am testing the Front end PM system but when I add a new announcement the notification mail isn’t sending. The system says the email has been send but I didn’t get anything in my email inbox.Can you help me with this?
Attachments:You must be logged in to view attached files.April 11, 2018 at 7:28 pm #13266Shamim HasanKeymasterCan your website send email? eg. registration, lost password email?
If you send a message, is that notification email sent to your email?
Can you please check and see all fields are filled and give me a screenshot of Front End PM PRO > Settings > Emails? Also please check “From Email” is same domain email of your website and email exists in your server. Some host may block email sending if email not exists.April 12, 2018 at 2:14 pm #13270Sanne HuntinkParticipantAh that might be the problem. As you requested I tried to reset my password but the system hasn’t send the reset password link at my mailaddress. But when I add a new user the system does send an email with the announcement that there is a new user added to the website.
In the attachment you’ll see the screenshot I took from the email settings Front end PM Po. I also checked if the from email is the same as the domain. First it wasn’t the same so I changed the mailaddress to one matching with the domain and tested again, but still no notification mail has send.
Attachments:You must be logged in to view attached files.April 12, 2018 at 5:57 pm #13274Shamim HasanKeymasterI see you unchecked “Send email?”. If you unchecked this, this will not send email when an announcement is published. Try checked and test.
Are you using any SMTP plugin?April 13, 2018 at 12:52 pm #13284Sanne HuntinkParticipantHello,
Yes but doesn’t the system send an email to all users? We have made different roles for the website so we can make an announcement to 1 person without another person seeing this. But when I check the box “send email” all the users get an announcement email right?
I am not using an SMTP plugin.April 13, 2018 at 9:51 pm #13319Shamim HasanKeymasterI see that option is misleading. This will send email to all users from that selected role(s) only.
So check that checkbox and try.
Let me know.April 16, 2018 at 1:36 pm #13386Sanne HuntinkParticipantHello,
Thank you for confirming. I’ve enabled the Send mail box and now the selected role(s) get an announcement email. Great!
Thank you very much! -
AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.