how do i setup Front End PM Pro in a chile theme?


Home Forums Front End PM PRO how do i setup Front End PM Pro in a chile theme?

This topic is: Resolved

Tagged: 

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #12843
    SteveMTNO
    Participant

    Hi Shamin,

    Here is a list of the changes I’d like to make in my child theme. I figure it’s best to have them all in one place. Hopefully you can help me with these. Thanks in advance!!

    Steve

    ———————————————–

    In the message box:

    add a leading space to the unread counts for messages and announcements
    “Message Box (1)” and “Announcement (1)”
    instead of
    “Message Box(1)” and “Announcement(1)”

    Add an <h2> tag that says “Message Box”

    On the New Message screen:

    Change the placeholder text on the To: field to “ENter a recipient here”

    Change the placeholder text on the Subject field to “ENter a subject here”

    add placeholder text to the Message textarea:
    “Enter your message here”

    Change “Add new field” to “Attach a file”

    Change the text on the Send button to “Send” instead of “Send Message”

    Change “No file selected” to “No file(s) selected”

    On the reply screen:

    Change the text on the Reply button to “Send” instead of “Reply”

    On the Settings screen:

    Add placeholder text to the field that says “Click in this field to block a user”

    Change the button text to “Save” instead of “Save Changes”

    On the Announcement page:

    Add an <h2> tag that says “Announcements”

    On the Directory page:

    Add an <h2> tag that says “Member Directory”

    #12856
    Shamim Hasan
    Keymaster

    According to our support policy, we do not provide support which require any custom code. after that also i try to assist writing custom code. But that is limited to 1-2 times per customer. Your list is very long. i can write 1-2 from your list. You can hire any developer or me for all of your changes.

    #12865
    SteveMTNO
    Participant
    This reply has been marked as private.
    #12872
    Shamim Hasan
    Keymaster

    Which version you are using? Some of the string i do not find. Eg. “Message Box”, “Announcements” etc which you want in h2 tag.

    Most string change you will find in templates, So as you are overriding templates in your child theme, you can simply change there.

    Sample code:
    Add following code in your child theme’s functions.php. This will change message title placeholder

    add_filter( 'fep_form_fields', function( $fields ){
        $fields['message_title']['placeholder'] = 'ENter a subject here';
        return $fields;
    });
    

    And i charge 50$ per hour.

    #12878
    SteveMTNO
    Participant

    I bought the Pro version (mainly for the support), but most of what I’m doing right now has been in the “regular” version. Right now, I don’t need the added functionality of the Pro version, altho that may change in the future. Overall, I’m very happy with your plugin.

    I’m currently in the process of doing an update on my site and Front End PM is a central part of that update (replacing the existing PM plugin that I was using). In general, I have been able to make all of the styling changes that I want (to make it fit in with the style on the rest of my site), but some of the verbiage changes I want to make are outside the /template folder.

    As for the <h2> tags that you can’t find – that’s because they aren’t currently there. I was wanting to add them to make the appearance on those pages consistent with the other pages in the plugin. The other pages have an <h2> header at the top of the page – but the message box, announcement page, and directory page do not.

    Thanks for the placeholder code. I’ll give it a try and report back.

    Steve

    #12888
    Shamim Hasan
    Keymaster

    I respect all of my customers and try to support in all cases. During purchase you have agreed to our Terms and Conditions where it is clearly written what is covered by the support. After that also i write code most of the time for customers. But that has some limitation.

    As you are overriding templates in your child theme, you can easily add h2 tags in those templates. Eg. in directory.php add <h2>Member Directory</h2> just after ?> in line 16

    #12898
    SteveMTNO
    Participant

    Hmmm, that didn’t work.

    I also tried it like this (this is how it’s done on newmessage_form.php – line 7):

    <h2><?php _e(“Send a Message”, ‘front-end-pm’); ?></h2>

    but that didn’t work in directory.php either..

    btw – thank you again for all your help!! I really appreciate it!!

    #12901
    Shamim Hasan
    Keymaster

    are your child theme active?
    did you added this code after ?>

    #12904
    SteveMTNO
    Participant

    That was my bad. I was copying the updated template files to the /templates folder instead of the ?front-end-pm folder of my child theme.. oops! 🙂

    It’s working perfectly now.

    I think I’ve got just about all of the items above taken care of now. I’m going to mark this issue resolved.

    Thank you again for all your help, Shamim!

    #14894
    David
    Participant

    I am also trying to change the text of the reply button to “SEND” but I cannot find this in any of the templates. Am I missing something?

    #14900
    Shamim Hasan
    Keymaster

    Add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_form_submit_button', function( $button, $where ){
    	if( 'reply' == $where ){
    		$button = '<button type="submit" class="fep-button" name="fep_action" value="'. esc_attr( $where ) .'">SEND</button>';
    	}
    	return $button;
    }, 10, 2 );
    
    #14904
    David
    Participant

    Thanks!

Viewing 12 posts - 16 through 27 (of 27 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.