Forum Replies Created

Viewing 15 replies - 31 through 45 (of 50 total)
  • Thread Starter alexbosch

    (@alexbosch)

    Hi @lapzor

    I understand you. I’m very satisfied with your support.

    I’ll try what you said.

    Thank you again!

    Thread Starter alexbosch

    (@alexbosch)

    Hi @hchouhan

    We already found how to adapt the code to wpforms. This will be an example code:

    add_filter( ‘mc4wp_integration_wpforms_subscriber_data’, function(MC4WP_MailChimp_Subscriber $subscriber) {
    $form_id = $_POST[‘wpforms’][‘id’];
    if ($form_id == 500) {
    $subscriber->tags[] = ‘ES’;
    } else if ($form_id == 510) {
    $subscriber->tags[] = ‘EN’;
    }
    return $subscriber;
    }, 10, 2);`

    Now, I have another question: If I want to assign one tag to various forms, I need to replicate the entire line, like this:

    if ($form_id == 500) {
    $subscriber->tags[] = ‘ES’;
    } else if ($form_id == 502) {
    $subscriber->tags[] = ‘ES’;
    }

    Or, is there a way to do it without repeating the code?

    At he same time, is there a way to assign more than one tag per form without repeating the entire line of code?

    if ($form_id == 500) {
       $subscriber->tags[] = 'ES';
    } 
    if ($form_id == 502) {
       $subscriber->tags[] = 'CA';
    }

    Thank you in advance!`

    Thread Starter alexbosch

    (@alexbosch)

    Hi @kmacharia

    Yes, it worked perfectly! Thank you so much!

    Thread Starter alexbosch

    (@alexbosch)

    Hi Kenneth;

    Thank you for your answer.

    I already reached the MC4WP team and they recommend me to contact you. They helped me to find how to adapt the filter, but they don’t know which PHP code is needed to point to a specific WPforms form.

    As I said on my first message I found that using the code “$wpforms_form_id” I could sent a tag, but I don’t know how to point to a specific form of your plugin using PHP.

    Can you help me with that part?

    Thank you.

    Thread Starter alexbosch

    (@alexbosch)

    Hi @hchouhan

    Thank you for your rapid response.

    I already found your integration filters on your Github page. With them I managed to send a the same tag for all my WPforms with this code:

    add_filter( ‘mc4wp_integration_wpforms_subscriber_data’, function(MC4WP_MailChimp_Subscriber $subscriber) {
    $subscriber->tags[] = ‘ES’;
    return $subscriber;
    });

    But I had problems when I tried to adapt this code from Contact Forms to WPforms:

    if ($cf7_form_id == 500) {
           $subscriber->tags[] = 'ES';
       } else if ($cf7_form_id == 510) {
           $subscriber->tags[] = 'NL';
       }

    Which identifier I have to use instead of “$cf_7_form_id”?

    Thank you in advance.

    Thread Starter alexbosch

    (@alexbosch)

    This is exactly what I reported before… the primary and secondary colors on Elementor are the colors that Elementor use to link colors.

    But this doesn’t resolve the problem, because I didn’t want to change all the links in my page (our corporative colors) just for being able to use your plugin. This was the reason I stopped using your plugin.

    I think that solving this issue would be a massive improvement for users using Elementor page builder.

    Thread Starter alexbosch

    (@alexbosch)

    Hi again Andrea;

    Yes… now it is working. Yesterday was not… even filling the distance field.

    I think it was a problem with a change I did to the Cloudflare cache rules. It seems solved by now.

    Thank you

    Thread Starter alexbosch

    (@alexbosch)

    Hi @seventyone;

    Sorry for the late answer… I didn’t try to load the shortcode on an Elementor page, sorry.

    I use BuddyBuilder (an integration of Buddypress and Elementor) to build the members page and then, I use the bps shortcode on another page to replicate it but with the role filtering.

    I’m sorry I can’t help you.

    Exactly the same here… and no improvement with enabling/disabling experiments.

    I’m also using Astra + Astra pro, Elementor and Elementor Pro, like @fluiddesk

    Please, help us @davidlbc

    Thank you

    Thread Starter alexbosch

    (@alexbosch)

    Perfect! It definitely works! Thank you so much for you amazing support!

    Thread Starter alexbosch

    (@alexbosch)

    Hi again.

    I already solve that! I forgot to do the main change I need to do… to change which page Buddypress uses as members directory. Now I can leave the BuddyBuilder page as the template where I add whatever I want to apear to the members directory page and use a new page with only your shortcode to copy this template, with the role filtering already incorporated.

    Fantastic! Sorry for the annoyance…

    Just a last question: Is there an option to show more that one user role on the same shortcode. I tried different ways, but I can’t find how to do this.

    Thank you!

    Thread Starter alexbosch

    (@alexbosch)

    Hi Andrea,

    You can’t see any problem, but because you’re seeing the members page as it is… without any function of your shortcode that helps me… I’ll try to explain what I need.

    I wanted to use your plugin to only show some user roles on the members page, and exclude the other ones. Now I’m using another plugin to do that, but I wanted to remove some plugins and this one is totally dispensable apart from this feature that your plugin also can do.

    The problem is that BuddyBuilder doesn’t seem to allow default WordPress sidebars on their pages and I had to create one on the page itself with Elementor page builder. That seems to interfere with your shortcode, that can’t work on a page with other elements.

    I also tried to create another page with your shortcode, but when someone clicks on an xProfile linked information it always sends to the default members page to show all the members that share this information. And if it hasn’t the role filter, all the members ar visible… and this is exactly what I want to avoid.

    If you have any idea of how I could solve that, I’ll be delighted. If there’s no other option, I’ll need to continue with the plugin I’m using…

    Thank you in advance.

    Thread Starter alexbosch

    (@alexbosch)

    Hi Andrea;

    Thank you for your answer.

    I’ll wait to see if Google charges me anything to use the service (I have some free credits to experiment for a trial period of 3 months) and if it’s necessary I’ll try to disable some of the API permissions.

    About [bps_directory] shortcode I have no test site, but I did a try and I understand something. You can acces to the members directory from two urls:

    https:///www.daggas.life/comunidad/
    https://www.daggas.life/aaaa/

    The first one is the default Buddypress / BuddyBuilder members page. What you can see is the default members list, but, if you look the code between the toggle and the members list you can see that there’s a shortcode embedded (yours), but it appears as flat (without height).

    The second one is a blank page with only the [bps_shortcode]. But appears exactly the same page! Your shortcode is embedding the entire page (with the rest of Elementor items), not only the members list… even, if you look on the code you can see the shortcode between the toggle and the members list.

    Obviously, looking at this, if the shortcode embeds the entire page, it couldn’t embed it on itself, because it will cause a bucle of embeds.

    I wish that this would give you the information to understand what’s happening. And if you know how I can fix that, I’ll appreciate.

    Thank you in advance

    Thread Starter alexbosch

    (@alexbosch)

    Hi Andrea;

    Thank you for your response.

    About the problem with the shortcode it’s important to mention that I use BuddyBuilder to customize the Buddypress pages with Elementor. I did some trials to have more information of the issue. If I use your [bps_directory] shortcode on a new page, but I remove the BuddyBuilder members grid on the default members page, the new page (the one with your shortcode) appears blank, exactly the same if I try to replace the default members grid with your shortcode on the members page. I already tried it with bp_pages as a non-persistent group and nothing changed. Do you know why this could be happening?

    When I was talking about disabling the Google API I didn’t refer to the entire API. On your setting guide you recommend enabling 3 different APIs on Google: Maps Javascript, Places and Geocoding. And also I had to enable a payment plan… something I never had to do before with any other Google API I used before… I’m just a little bit concerned about how much it will cost me monthly and, if I had the option to disable something that I don’t use, if this will reduce the options of Google charging me… do you have any idea of that?

    Thank you in advance

    Thread Starter alexbosch

    (@alexbosch)

    Hi Andrea;

    Thank you for your rapid and precise response. Yes, it worked perfectly!

    The only thing that didn’t work was using the bps shortcode on the same members page of Buddypress. I was trying to eliminate a plugin that I use only to filter and exclude some user roles to appear on the members directory and only rely on yours, but it didn’t work… when I embed the bps shortcode the directory appears blank. Do you think this is normal or am I doing something wrong?

    Another question is: if I don’t use the geolocation, can I remove it from the Google Maps API authorization? Maybe this will reduce the options of Google charging me every month, because I had to enable payment on Google Cloud to use it… If you have more information about that, it will be appreciated.

    Thank you so much!

Viewing 15 replies - 31 through 45 (of 50 total)