Hide attachment in front end


Home Forums Front End PM PRO Hide attachment in front end

This topic is: Resolved

Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #13210
    Sanne Huntink
    Participant

    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 Huntink

    Attachments:
    You must be logged in to view attached files.
    #13214
    Shamim Hasan
    Keymaster

    You want to disable attachment feature completely so that users can not send attachments? or users can send attachments but not shows attachment links?

    #13220
    Sanne Huntink
    Participant

    Hi 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?

    #13224
    Shamim Hasan
    Keymaster

    add 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 );
    
    #13235
    Sanne Huntink
    Participant

    Hi,

    Thank you for the code but when I add it to the functions.php the website broke. Is there another way?

    #13240
    Shamim Hasan
    Keymaster

    what 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?

    #13257
    Sanne Huntink
    Participant

    Ah 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.
    #13266
    Shamim Hasan
    Keymaster

    Can 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.

    #13270
    Sanne Huntink
    Participant

    Ah 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.
    #13274
    Shamim Hasan
    Keymaster

    I 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?

    #13284
    Sanne Huntink
    Participant

    Hello,
    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.

    #13319
    Shamim Hasan
    Keymaster

    I 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.

    #13386
    Sanne Huntink
    Participant

    Hello,

    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!

Viewing 13 posts - 1 through 13 (of 13 total)

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.