Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
You can use hook ( action and filter ) to change any other function.
Shamim HasanKeymasterIn child theme only /templates folder can be modified.
To modify CSS, just add modified CSS in your child theme’s style.css file. OR add your modified CSS in Front End PM PRO > Settings > General > Custom CSSShamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_display_before_directory', function(){ ?><script type="text/javascript"> jQuery(document).ready(function($){ var delay = (function(){ var timer = 0; return function(callback, ms){ clearTimeout (timer); timer = setTimeout(callback, ms); }; })(); $('.fep-directory-search-form-field').keyup(function() { delay(function(){ $('#fep-directory-search-form').submit(); }, 1000 ); }); }); </script><?php });
Shamim HasanKeymasterWhen release next version, you will be able to translate like any other string. To translate above code just change
Select all
to your language.Shamim HasanKeymasterPlease wait for next version. It will be added in plugin, so you do not need any custom code for this. Next version will be released next week.
Shamim HasanKeymasterThank you for your nice suggestion.
This feature may be included in future version. But cannot give you time when this may include.Shamim HasanKeymasterPlease add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_directory_output', function( $directory ){ $checkbox = '<label><input type="checkbox" class="fep-cus-select-all" />'.__('Select all').'</label>'; $checkbox .= '<script type="text/javascript"> jQuery(document).ready(function(){'; $checkbox .= 'jQuery("#fep-table .fep-cus-select-all").change(function(){'; $checkbox .= 'jQuery( \'#fep-table input[type="checkbox"]\' ).prop("checked", this.checked);'; $checkbox .= '})}); </script>'; return str_replace( '<div id="fep-table" class="fep-table fep-odd-even">', '<div id="fep-table" class="fep-table fep-odd-even">' . $checkbox, $directory); });
It will show a checkbox in “Directory” to select all users from directory. Then from dropdown select “Send message”.
Shamim HasanKeymasterBoth of your understand is correct.
You can only change templates file in /wp-content/themes/spacious-child/front-end-pm/Shamim HasanKeymaster1. Plugin must be installed in plugin directory (normally /wp-content/plugins/)
2. wp-content/themes/spacious-child/front-end-pm/ can contain any files from front-end-pm-pro/templates directoryShamim HasanKeymasterCurrently there is no direct hook in that place. Next version will be released next week and you will be able to change this with direct hook.
If you need this changed within this week let me know. I can provide some code to change this. But that will be indirect, if you are not too much hurry, i prefer you wait for next release.
March 27, 2018 at 6:41 pm in reply to: Custom language files deleted at update to Pro-version #12726Shamim HasanKeymasterIt should not delete any file.
I will try to investigate it more.
What is your language code?
did you put your language file in wp-content/languages/plugins folder?Shamim HasanKeymaster1. Use
.fep-message-title-heading.participants{font-weight:normal;}
for participant style
2. there is no direct tag for “Read by”. May be next version i will try to add a tag.Shamim HasanKeymasterPlease follow step by step
1. Remove all changes you have made for this plugin.
2. Inside your child theme create a folder called “front-end-pm”. So full path will be /wp-test/wp-content/themes/spacious-child/front-end-pm/
3. in this folder copy “viewmessage.php” and change this file as you need ( do not change file name)Shamim HasanKeymasterAre you trying to customize this plugin’s template in your child theme? Here is instruction https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/
Shamim HasanKeymasteradd following code in your theme’s ( child theme’s if any) functions.php
add_filter('fep_get_user_option', function( $value, $option, $default, $userid ){ global $ultimatemember; if( ! $userid ) $userid = get_current_user_id(); if( 'allow_ann' == $option && ! $ultimatemember->user->is_approved( $userid ) ){ $value = 0; } return $value; }, 10, 4);
-
AuthorPosts