joxyzan
Forum Replies Created
-
Forum: Reviews
In reply to: [Bulk Convert Post Format] Works but could be improvedThank you for the update! @razorfrog
Good to hear that my feedback was useful! Will check the changes next time I have to make a bulk convert ??
Forum: Plugins
In reply to: [Comment Mention] Problems with double quotes (“) in notificationsI forgot to report that Yes, it works fine now. Thank you for both a quick reply and a quick fix! Case closed. ?? @bhargavbhandari90
Forum: Plugins
In reply to: [Comment Mention] Warning: foreach() argument…Did you fix this?
I haven’t seen that error lately! ??Forum: Plugins
In reply to: [Comment Mention] How to output Display Name in mentions?Ah, okay. I’ve don that now! ??
Forum: Plugins
In reply to: [Comment Mention] How to output Display Name in mentions?Also: when searching for users to mention using @ in the comment section, I would like only the Display Names to be shown in the list.
Forum: Plugins
In reply to: [Comment Mention] Disable author link?Hmm, I don’t see that possibility in the email settings. ??
To clarify: I’m using #comment_content# in the Email Content field, and in the resulting email notification the mentioned users within that comment content are shown with links to their author page.
Forum: Plugins
In reply to: [Comment Mention] Enable shortcodes in Email SubjectWorks great!
Thank you for a VERY quick response and update! ????
While talking about shortcodes: I would really appreciate #first_name# as an option to #user_name# in the email content, for a more personal touch in my notifications.
Forum: Developing with WordPress
In reply to: Change post category when a comment is postedPS. I’m a little confused about why I have to include parameters 2-5 in the $data-array so any clarification/simplification on that would also be very much appreciated. ??
Forum: Developing with WordPress
In reply to: Change post category when a comment is postedHello @bcworkz !
I’m getting back to you hoping for another answer on this weird little subject. ??
I rewrote the code for posting a prewritten comment and successfully added the change of category in this way:
<?php if(isset($_POST['book'])){ $data = array( 'comment_content' => 'I′m booking this.', 'comment_post_ID' => $post_id, 'comment_author' => $current_user->display_name, 'comment_author_email' => $current_user->user_email, 'comment_author_url' => $current_user->user_url, ); wp_new_comment($data); wp_set_object_terms( $post_id, null, 'category' ); wp_set_object_terms( $post_id, 'booked', 'category' ); echo "<meta http-equiv='refresh' content='0'>"; } ?> <form method="post" action=""> <input name="book" type="submit" id="submit" class="submit" value="Book!"> </form>
It works great! ??
Except that an error flashes before refreshing the page the way I do (with the echo statement):
“Warning: Cannot modify header information – headers already sent by…”Any ideas on how to refresh the page without getting the error?
- This reply was modified 1 year, 1 month ago by joxyzan.
Forum: Plugins
In reply to: [WP User Manager - User Profile Builder & Membership] Change order of tabsThank you Mark!
That worked fine, also for adding my_wpum_rearrange_profile_tabs
PS. You probably should add that information from Github to this page in your excellent Documentation.
Hi again @mkesteban08 !
I solved the white screen problem – it was my own brutal adjustments of the CSS that caused it… ??
The “Deprecated:”-errors showed up in Safari because I had set
define( 'WP_DEBUG', true );
while Chrome partly relied on cache….
So all I’m wondering now is if/when you will fix those errors caused by FILTER_SANITIZE_STRING being deprecetad in PHP 8.1 – even if they cause no visible problems to my site. ??
Hi @mkesteban08 !
While working on my membership site (that is heavily and happily dependent on WPUM) I suddenly had a completely white screen in Chrome when trying to access the site logged in. Logged out all looks okay though.
Searching for the error I found that Safari lists 35 “Deprecated:”-errors before viewing the site, and 19 of them starts with “Deprecated: Return type of WPUM”…
The very first error is:
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /MY_SITE/wp-content/plugins/wp-user-manager/includes/class-wp-user-manager.php on line 389
I wasn’t doing any core changes or updates when this occurred, so I’m a bit surprised.
Could you give me a clue on what went wrong?
WordPress 6.1.2
WPUM: 2.9.7
PHP: 8.1- This reply was modified 1 year, 1 month ago by joxyzan.
Forum: Developing with WordPress
In reply to: Prefill the comment textareaAh… I thought I had tried that already but obviously I hadn’t. Thank you for sharing your knowledge. ??
I found the solution!
Changing the second line of my snippet to:if ( $query->is_main_query() && $query->is_front_page() ) {
Forum: Plugins
In reply to: [Ultimate Category Excluder] Posts unintentionally excluded in a WP_queryI found the solution!
Changing the second line of my snippet to:if ( $query->is_main_query() && $query->is_front_page() ) {