Suika
Forum Replies Created
-
Thought so yeah, thanks for confirming!
Forum: Plugins
In reply to: [Simple Membership] Change membership level after completing profile formHi, I think I misread a detail on the last part of your instructions earlier. I wanted to change the membership level of the user right after updating their profile, not the member’s account status.
So at the moment, I already have the following data:
// after profile form submit
$member_id = 5;
$new_membership_level = 2;And I found this utility function to update the user’s membership level:
SwpmMemberUtils::update_membership_level( $member_id, $new_membership_level );
It seems to be working but I am at the early stages of the project and I just want to be cautious — can you confirm this is the best function to use in my case?
Thank you!
- This reply was modified 6 months, 3 weeks ago by Suika. Reason: added more information
Forum: Plugins
In reply to: [Simple Membership] Change membership level after completing profile formThat sounds exactly like what I need, thank you!
I’ll work on this from today and report back how it goes for anyone else who might be looking for the same thing.
Forum: Plugins
In reply to: [Simple Membership] Change membership level after completing profile formHello, thanks I considered this but I can’t use your default manual registration approval because I need them to be able to log in as soon as they sign up in order for them to complete their profile.
Is there any hook, function, or meta data I can tap into instead in order to change the membership level?
- This reply was modified 6 months, 3 weeks ago by Suika.
I am defining the gallery in posts, I get the album ID from a custom field in the custom post type. It’s a custom template for the single page, and there’s only one gallery in it.
This is what I tried so far from your suggestion – I just copied the outer div and anchor of the first image on the gallery and then replaced the
img
with a text and added some classes to make it look like a button that says “Test Launch Gallery” and I get that it only gets the first image because that’s what’s on thehref
of the link but I’d like to point it to the existing gallery itself.You can check here. Many thanks!
Forum: Plugins
In reply to: [GDPR] Policy Bar Not ShowingHi all,
This has been solved – turns out our custom theme was missing the
wp_footer()
function before the</body>
tag so the privacy bar wasn’t being hooked into anything.Another problem was the Nginx Helper plugin’s cache setting needed to be purged.
Cheers!
So I found the solution based on one of UM’s gists.. This one in particular: https://gist.github.com/ultimatemember/643cd90967e5e415378d which shows an example of how to add a custom profile tab.
Using the
um_profile_tabs
filter, I added a user role validation via a custom function like this:add_filter('um_profile_tabs', 'remove_posts_tab_for_members', 1000 ); function remove_posts_tab_for_members( $tabs ) { global $ultimatemember; // Check if user role is not "Company" if ($ultimatemember->user->get_role() != 'company') { unset($tabs['posts']); } return $tabs; }
Hope this helps if anyone has the same problem! ?? For the unfamiliar, this goes in your theme’s
function.php
file.- This reply was modified 7 years, 6 months ago by Suika.
Forum: Plugins
In reply to: [RSS Feed Widget] Do not show feed item without imageNo, it is working.
But I have items on my feed that doesn’t have images in it. So some of them only shows the title and the other ones shows the title and image.
I would like to know if there’s a way I can filter them out, so that the slider only shows all of the items that has an image. And the ones that doesn’t have images should be skipped.
Thank you
- This reply was modified 8 years, 1 month ago by Suika.
Forum: Plugins
In reply to: [RSS Feed Widget] Default view doesn’t have title linksThank you! This is great!
Forum: Plugins
In reply to: [RSS Feed Widget] Default view doesn’t have title linksThanks for the quick response, I have it as a list now. Hope to have that option soon too!
For anyone needing this, I commented out these lines:
wp_enqueue_script( 'rfw-slider-script', plugins_url('js/jquery.bxslider.js', __FILE__), array( 'jquery' ) );
on the plugin’s
index.php
Cheers!
Forum: Plugins
In reply to: [Multisite Language Switcher] Can’t make admin dashboard language to EnglishUpdate: Turns out it’s only the Advanced Custom Fields Pro bits that are still being translated to other languages. I need them to be in English, but ACF recommends using WPML to solve it.
Is there any way on MSLS that we can prevent texts from ACF to not be translated?
Thank you
Nevermind I used this code
<div><?php if ($alm_current == 1) { echo "odd"; } else { echo "even"; } ?></div>
Forum: Plugins
In reply to: [Multisite Language Switcher] Map post from different post type nameJust to confirm, I tried this for my other sites (ES and DE) and they work fine without the filters. Just change the Labels and Custom Rewrite Slug on CPT UI and you’re good to go. Take note, don’t change the slug!
Cheers!
Forum: Plugins
In reply to: [Multisite Language Switcher] Map post from different post type nameHello!
I use the plugin CPT UI / Custom Post Type UI to create and rename my custom posts.
This was confusing at first when you said it should have the same “name” but translated “slug” because in the plugin I mentioned, the general inputs available are called “name/slug” and “labels” but when I checked the advanced setting below, it has an option to set a “Custom Rewrite Slug” which is where the translated slug should go to.
Additional reference where I got the idea is the parameters for manually registering post types under the
rewrite
args.Not sure if the filters you mentioned are necessary too this way because I’ve removed them but the urls are fine. Will try for the other languages which have more complex translation and I’ll let you know.
Hope this helps someone too.
Thanks, Dennis!
Hi!
Thank you for the email follow up on this thread. This has been fixed now, the main problem on our case is that we were using a custom thank you page but we couldn’t find what was missing and causing the transaction data to not fire up.
Anyway, we decided to use the default woocommerce thank you page (woocommerce/checkout/thankyou.php) and the transaction data are going through perfectly.
Cheers!