Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymasterShamim HasanKeymaster
Users can see groups in dropdown which they are member.
May be i did not understand you properly. can not user see all groups which they are member in dropdown?Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php
add_filter('fep_menu_buttons', function( $menu ){ unset( $menu['settings'], $menu['announcements'] ); return $menu; }, 99);
Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_form_fields', function( $fields ){ $fields['cus_fep_checkbox'] = [ 'type' => 'checkbox', 'where' => 'newmessage', 'priority' => 22, 'cb_label' => 'Can we use your message on the site as a story?', ]; return $fields; }); add_action( 'fep_action_message_after_send', function( $message_id, $message, $new_message ){ if ( ! empty( $message['cus_fep_checkbox'] ) ) { fep_add_meta( $message_id, 'cus_fep_checkbox', $message['cus_fep_checkbox'], true ); } }, 10, 3); add_action( 'fep_display_after_message', function(){ if ( fep_get_meta( fep_get_the_id(), 'cus_fep_checkbox', true ) ) { echo 'We can use this message on the site as a story'; } });
Shamim HasanKeymasterYes, all settings and data will be there.
Shamim HasanKeymasterYou can use
fep_form_fields
filter hook to add any additional fields andfep_display_after_message
hook to show that bellow message.Shamim HasanKeymasterThis plugin use wordpress function to output its content area. Also i have tested and it keeps its tab if i change and come back later.
Can you please deactivate all other plugins and activate to one of unmodified default theme (tweenty*) and test?
Shamim HasanKeymasterYou can add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'wp_default_editor', function( $r ){ return 'tinymce'; });
remember if user change tab (visual/text) then that will be saved and will use that instead.
December 28, 2018 at 11:35 am in reply to: Users can not reply to messages in front end – You do not have permission #20159Shamim HasanKeymasterOnly one message is having this problem or more?
If any user delete that message from front-end then this error occur. If “Members” group have 5 recipients and one of them deleted that message from front-end (From “Message Box” user can delete any message for himself using bulk action) then all other user will see this error.
This is a feature so that if any user delete a message and other user reply to that message then who delete that message will never receive that reply but who replied will not know if that user receive that reply or not. He may think that deleted recipient is ignoring him. So we made this so that if any user delete any message other users cannot reply that message anymore.
December 28, 2018 at 6:33 am in reply to: Users can not reply to messages in front end – You do not have permission #20154Shamim HasanKeymasterUser will get this error when reply if
1. Any recipient of that message deleted that message
2. Any user block current userPlease check these two condition.
December 25, 2018 at 6:37 am in reply to: messagebox Small visual tweak to include group name in message listing #20102Shamim HasanKeymasterThank you. Received your gift.
Have a great new year.
ShamimShamim HasanKeymasterIf you have styling issue then remove previous code and add
onClick="window.location.href='<?php echo fep_query_url( 'viewmessage', [ 'fep_id' => fep_get_the_id(), 'feppage' => isset( $_GET['feppage'] ) ? $_GET['feppage'] : 1, 'fep-filter' => isset( $_GET['fep-filter'] ) ? $_GET['fep-filter'] : '', ] ); ?>'"
in that div. Also style that div to show cursor as pointer.
Shamim HasanKeymasterIn box-message.php see a line
<div id="fep-message-<?php echo fep_get_the_id(); ?>" class="fep-table-row">
.If you use HTML5 then add
<a href="<?php echo fep_query_url( 'viewmessage', [ 'fep_id' => fep_get_the_id(), 'feppage' => isset( $_GET['feppage'] ) ? $_GET['feppage'] : 1, 'fep-filter' => isset( $_GET['fep-filter'] ) ? $_GET['fep-filter'] : '', ] ); ?>">
before that div and add
</a>
after closing that div.December 24, 2018 at 7:42 pm in reply to: messagebox Small visual tweak to include group name in message listing #20086Shamim HasanKeymasterThank you very much. Much appreciated.
I have sent you my paypal email in your email address.Shamim HasanKeymasterYou can override
box-message.php
template to link that div to message url. Override template instruction in https://www.shamimsplugins.com/docs/front-end-pm/customization/change-templates-2/ -
AuthorPosts