alex_pen
Forum Replies Created
-
Forum: Plugins
In reply to: [Front End PM] How to remove/change the functions?Thank you now it’s working fine.
Forum: Plugins
In reply to: [Front End PM] How to remove/change the functions?I’m trying to remove some of the buttons in the function.php of my child theme, but I don’t know how exactly i can achieve this goal using the ‘fep_menu_button’ hook.
I’ve tried it using the following line of code, but this approach is causing errors in the backend:
remove_action('fep_menu_button', array(fep_menu_class::init(), 'settings'));Could you give me an example how I would use this hook to unhook a button?
Thanks
Forum: Plugins
In reply to: [Front End PM] PM from user pageThank you for the support and the quick update of the plugin
Forum: Plugins
In reply to: [Front End PM] PM from user pageI found a solution for my problem.
Everytime I clicked on the link the hidden field for the username was set to the user id instead of the name.
So I replaced line 218 of fep-class.php with following code
$message_to = ( isset( $_POST['message_to'] ) ) ? esc_html( $_POST['message_to'] ): $to;That did the trick for me.
Forum: Plugins
In reply to: [Front End PM] PM from user pageHow can i customize this link to contact the author of a an entry instead of one specific person?
I used the following link, that I found in another discussion
<a href="<?php get_bloginfo("wpurl");?>/inbox/?fepaction=newmessage&message_title=<?php the_title(); ?>&to=<?php the_author_meta("user_login");?>">Contact Me</a>My problem with this code is, that it doesn’t set the username in the hidden “recipient” field resulting in an error when I try to submit a message.
Forum: Plugins
In reply to: [Front End PM] PM from user pageI also would like to know how i can add feature to directly pm a user. Could you please explain how its done?
Thank you