captainmack90
Forum Replies Created
-
Forum: Plugins
In reply to: [Front End PM] How do you send a message programmatically?Thank you Shamim! That worked straight away.
There was no problem regarding dashes, I found that someone had switched on some caching, preventing me from seeing any arriving messages.Everything working perfectly as of now – great plugin!
Forum: Plugins
In reply to: [Front End PM] How do you send a message programmatically?How would that look? I’ve looked through the code and came up with the following, which does not work:
//Send private message to guest. $message['message_to_id'] = $guest_id; $message['post_author'] = 1; //TODO: Change to System user ID $message['message_title'] = $full_name . __(' have confirmed you', 'text-domain'); $message['message_content'] = __('You have been confirmed') . '"' . get_post_meta($event_id, '_job_title', true) . '"'; fep_send_message($message);How can you set the post_author? So the “from user” is not the current user?
Btw. the latest commit fixed the unread message count problem!
Thanks!Forum: Plugins
In reply to: [Front End PM] Redirect button to message page automatically fill a name ?Thank you Shamim! Apparently, another person has switched on caching for the develop-server, so I fixed it by disabling it. I had the message count error and will try the latest commit, thanks!
Forum: Plugins
In reply to: [Front End PM] Redirect button to message page automatically fill a name ?Disregard what i wrote below, I’m doing additional testing to confirm whether this really is the case. As it also could seem like the messages are either extremely delayed (many minutes) or is somehow blocked and released in batches (which I couldn’t see the reason for).
I’ll update as I test more.
I have updated to latest beta commit, I think that I have narrowed the problem. It’s only when sending to a user that has a dash “-” in their nicename. (I’m using nice-name to send it). And for some reason, when sending to one without a dash in the nicename, it does come up in the inbox as unread, but the fep_get_new_message_number() returns 0, when it should return the correct amount (in this case 1), marking it as unread makes fep_get_new_message_number() return 1, as it should
Forum: Plugins
In reply to: [Front End PM] How do you send a message programmatically?How do you use it? As far as I could read from the code, I needed to do the following:
//Send private message to guest. $message['message_to_id'] = $guest_id; $message['message_title'] = $current_user->user_firstname . __(' confirmed you', 'text-domain'); $message['message_content'] = __('You have been confirmed as a guest on ','text-domain') . get_post_meta($event_id, '_job_title', true); fep_send_message($message);Are there more requirements than the three fields? When sending messages from the system.
Forum: Plugins
In reply to: [Front End PM] Redirect button to message page automatically fill a name ?Hi Shamim,
Using beta
When I use nicename, the message is sent succesfully (on the sender page), however, the receipient never receives the message? Any idea what could cause this?
I’m simply echoing the button like this;
echo '<a id="contact-host-widget" class="button" href="/messages?fepaction=newmessage&to=' . get_the_author_meta( 'nicename' ) . '&subject=' . get_the_title() . '">' . __('Contact','text-domain') . '</a>';which seems to work. I even receive an email about a new message, but there’s no new message in the inbox.
Another, small questions is how you remove the character min limit on messages?
Forum: Plugins
In reply to: [Front End PM] Redirect button to message page automatically fill a name ?is it possible to use something else than author login? E.g. I have users that can be everything from “Firstname Lastname” to emails, but it does not accept spaces nor emails in the url. Can IDs be used instead? Spaces is fine, when it’s the subject field.
Forum: Plugins
In reply to: [Front End PM] test of beta version 3.3.1-betaThanks Shamim! I’m now able to remove menu items on the user’s side. I was wondering what other actions/hooks have been changed/added/removed?
Great plugin and love that you’ve added more actions/filters to it 🙂
Have a great weekend,
Forum: Plugins
In reply to: [Front End PM] test of beta version 3.3.1-betaI’m not sure if this is a bug with the new version, but removing a menu item like the example on your site describes:
if (!is_admin()) remove_action('fep_menu_button', array(fep_menu_class::init(), 'settings'));to ones child theme function.php throws this error
PHP message: PHP Fatal error: Uncaught Error: Class 'fep_menu_class' not found inForum: Plugins
In reply to: [Front End PM] test of beta version 3.3.1-betaHi Shamim,
Thanks for the plugin, I just found it! Is it possible to see some screenshots of the new beta version?
Quick update:
I’ve tried to make the description field NOT required, however, this results in the description not being sent with the HTTP POST. So, for some reason, the text that is being written in the description text area does not get sent on first try (but on second try).Forum: Plugins
In reply to: [WP Job Manager] Description is a required field – ERRORHi Nourish,
Can you list the plugins in question? I had thought of jQuery perhaps doing something with the field, but I’m unable to debug the issue, especially since it works on second try.
Forum: Plugins
In reply to: [WP Job Manager] Description is a required field – ERRORI’m having the same problem, eventhough the decription has been filled with writing, it throws an error saying that it has to be populated. If i write in the box again, then it works on 2nd submit.