Windurin
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Getting Repeater Text Field In EmailHi Konrad,
Thanks very much for the detailed response. With that filter, the formatting is better but it is still showing ALL subfields from the repeater when I only want one of them.
So I tried the email args filter and I don’t think I’m doing it right.
With this code here:
add_filter('acfe/form/submit/email_args/form=add-task-list-form', 'my_form_email_args', 10, 3); function my_form_email_args($args, $form, $action){ $task_list = get_field('job_task_list'); if( have_rows('job_list_list') ){ while( have_rows('job_list_list') ){ the_row(); $task = get_sub_field('job_list_task'); $args['content'] = $task; } } return $args; }It is only outputting the last row of the subfield in the repeater. What’s the correct formatting for the [‘content’] if I want to list the rows?
Thanks very much.
Hi. Thanks for the response. No problem. I’ll just wait for the update. Cheers.
Hi, I can confirm there is a message there now saying they must be friends if they do click on Private Message for a non-friend. I would still appreciate the option to hide the Private Message button in the Members listing on non-friends.
I am using Youzify by the way (formerly Youzer) and you mention that plugin in the Tested With… section. At the moment on the Members listing, it shows both your Private Message button AND the Buddypress/Youzify Message button. So I’m hiding the Buddypress one with CSS since that always starts a new Message even if you’ve got a thread open with the user, whereas your Private Message button does return to an existing thread if the option is enabled in the settings.
On the Friends section of a profile, it also show both buttons for each Friend so again I’m hiding the Buddypress one with CSS, but as you can see from this screenshot, it only shows the Buddypress button on the Tabs bar of a user’s Profile:
Can you update the plugin to add your Private Message button here as well please? Thanks.
I’m already in bed so I will try tomorrow 🙂
Sorry for the confusion.
- This reply was modified 5 years, 3 months ago by Windurin.
That’s exactly what I was asking for. When was this added because if you recall I said that the only message displayed before was ‘Start typing’ etc. Where is this ‘must be friends’ message supposed to be displayed because I don’t see one?
Is it because I’m an Admin so I can message anyone by default?
But Member listings are a native Buddypress feature, so even with a vanilla Buddypress install (and even if you hide the built in native Buddypress Message button) there should not really be an option to private message any user (your plugin’s Private Message button) if you’ve chosen to only be able to message Friends in the BP Better Messages options. They contradict each other and it’s inconsistent.
If I tell my users ‘You can only message Friends’ and then they see a Private Message button on all users in the Members listing and they try to message them and despite them not being allowed to actually type a message, there’s no warning to remind them they can only message Friends. See what I mean? Hopefully you will consider adding it soon please. For now, I will have to hide both buttons with CSS. Thanks.
Hi. There’s been a few updates since this message but the Private Message option is still showing for everyone on the Members listing and there’s no custom message if you DO try to PM them. Are you still planning to address this?
To be honest, the best approach would be to only echo the Private Message button if the user is Friends with them so there would be no need for a custom message in that case.
Thanks.
Hi Ruben, thanks for the response.
I am actually using CPT UI to register the custom post types.
What I’m confused about is why there seem to be 2 options for getting Gamipress to work with custom post types? There’s the ‘post of a type…’ triggers under the WordPress section and then there’s the snippet here:
https://gamipress.com/snippets/expansions/events-for-create-and-delete-a-cpt/
Which creates a new section called ‘Custom Post Type Events’ in the dropdown box.
The introduction to this snippet seems to suggest that custom post types won’t work with Gamipress out of the box, but as you pointed out, they do, or should do, under the ‘post of a type…’ option in the WordPress events if you’ve registered them in a standard WordPress way or used CPT UI. So is the info in the snippet outdated, or are you supposed to use both together?
The Create event for the custom post types does work for the second option, and I did actually get it to work with the first option (selecting the same post type from the ‘post of a type…’ event in the standard WordPress section) eventually after I realised the achievement was set to only allow 1 per user, but strangely it’s only working for the 1 custom post type.
The other post types are all registered in the same way, using CPTUI with the same options, so I’m not sure why the ‘post of a type…’ option is not working for them?
The ‘Comment on a post of type…’ trigger is also not working for any of the custom post types. The only trigger that works is commenting on a *specific* post of that custom post type.
Thanks, Chris.
Forum: Plugins
In reply to: [Favorites] PHP if/then code to check if post has been favorited by user?For anyone looking for the solution, I found it on GitHub here:
https://github.com/kylephillips/favorites/issues/107
- This reply was modified 5 years, 4 months ago by Windurin.
Forum: Plugins
In reply to: [Favorites] PHP if/then code to check if post has been favorited by user?Hey. I know it’s been a long time, but did you ever find out a way to do this? I also want to do a similar conditional check. Thanks.
Forum: Plugins
In reply to: [GamiPress - Favorites integration] Favorite A Custom Post TypeHi, thanks very much for the response. That’s great news that it will be implemented officially. I understand that there are a lot of add-ons and you have the main plugin to maintain, but could you please give a rough ETA on when this update might arrive? The Favorites plugin is quite an integral part of my site.
Is it likely to be within the next 3 weeks?
Thanks,
Chris.Forum: Plugins
In reply to: [GamiPress - Favorites integration] Favorite A Custom Post TypeIt would be brilliant if you were able to add it officially to the plugin, but if not, providing a hook like the snippet you have on your website on how to add triggers for Creating and Deleting Custom Post Types would help greatly too. So that something like this would work:
“gamipress_favorites_favorite_{$my_prefix_post_type}” => sprintf( __( ‘Favorite a %s’, ‘gamipress-favorites-integration’ ), $post_type->labels->singular_name )
Forum: Plugins
In reply to: [Custom Post Type UI] Terms Being Automatically Loaded on Custom TaxonomiesUPDATE: I’ve managed to figure this out after days of searching! It was related to the database table wp_term_relationships
This post here helped point me in the right direction:
https://scottnelle.com/648/clean-bloated-wp_term_relationships-table/
After running that query I did find some orphaned/null entries and I could tell by cross-referencing some of the meta_id’s that they matched up to the ones that were always showing up when adding a new post of this post type. After deleting those entries, the form for adding a new post of that post type now has all custom taxonomies empty by default, while still being able to have Load Terms enabled for loading the on editing forms.
Sorry for considering that it might be related to CPTUI – sometimes it just comes down to knowing the right terms to Google 🙂
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] Possible conflict with Anywhere Elementor?I’m also having conflicts with this plugin and Anywhere Elementor. I got the following error when updating to the latest ACF Frontend Form:
Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/anywhere-elementor-pro/includes/modules/ae-dynamic/dynamic-helper.php on line 45
If I disable Anywhere Elementor while ACF Frontend Form is enabled I get a blank page all across the site. If I disable ACF Frotnend Form while keeping Anywhere Elementor enabled, the site loads as normal.
The line in Anywhere Elementor it’s referring to is:
foreach ($acf_group[‘location’] as $locations) {
So it’s related ACF Groups which I don’t even use, although that section also mentions Repeaters, which I do use.
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] Remove Add Media to Post Content fieldYou can create a new custom field of type WYSIWYG, uncheck the ‘Show Media Upload Buttons?’ option and check the ‘Set as post content’ option:
Then in the ACF Frontend Form widget, set the Post Content Field as ‘None/Custom’