Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,996 through 2,010 (of 3,708 total)
  • Author
    Posts
  • in reply to: WYSIWYG "editor_class" #10472
    Anh TranAnh Tran
    Keymaster

    Hello,

    This is the way WordPress's editor work. According to the documentation, the editor_class is "Any extra CSS Classes to append to the Editor textarea".

    Anh

    in reply to: Conditional MB Using Clone-able Select Field #10468
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks a lot for your very detail topic!

    After looking at the bug and the code, I found a bug in this case. I've released a new version of the plugin. Please update it.

    in reply to: Coexisting with Option Tree #10451
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think there's no problem if you use all of them. Or did you see any bug?

    in reply to: Custom HTML in Builder? #10448
    Anh TranAnh Tran
    Keymaster

    Hi Doug, we actually missed to include it. Let us work on that.

    Updated: The new version of Builder has supported this.

    in reply to: Divider needs a custom attribute for specifying Tab #10447
    Anh TranAnh Tran
    Keymaster

    Hi Doug,

    That's a good point. Let me add that to the Builder.

    Updated: It's added to the Builder.

    in reply to: New Google maps pricing policy and MB geolocation #10446
    Anh TranAnh Tran
    Keymaster

    Great links, David! I'll keep continue on that 🙂

    Update: I've done that! Now the "osm" field works similarly to the "map" field. The code is available here. And this is the demo code.

    Please try it and let me know what you think.

    in reply to: New Google maps pricing policy and MB geolocation #10437
    Anh TranAnh Tran
    Keymaster

    Hey guys,

    I'm almost done the OSM field for Meta Box. It's available on Github, in the map-field branch. You can try it now. Here is how it looks so far:

    https://imgur.elightup.com/bqpCvwN.png

    However, I see OSM doesn't provide Geocoding service, which doesn't allow us to look up for an address and find its location on the map. There are several services out there (Bing, Mapbox, ArcGIS), but they are not OSM-official and of course have some limitation on usage.

    I'd probably will put the OSM field into a separate extension because of this limitation. While Google wants to take money from us, its product is really good and widely used.

    What do you guys think about that?

    in reply to: http to https #10434
    Anh TranAnh Tran
    Keymaster

    Hello,

    I'd recommend using the Better Search Replace plugin.

    Or you can use a script called Database Search and Replace.

    Anh TranAnh Tran
    Keymaster

    Thanks for your details!

    Because the Tampa and St. Pete are terms that are connected to People CPT, to get the address, we actually go from post (People) -> taxonomy term (Tampa/St. Pete) -> term field.

    So I think the Beaver addon doesn't work. It can only get post field for the current post.

    I'd suggest you write a custom shortcode to get the term address. Then you can put it in the Text/Heading field in the Beaver Themer. Adding prefix text is also easy then.

    in reply to: Forward on registration or login #10424
    Anh TranAnh Tran
    Keymaster

    Hi Tony,

    You can set the redirect URL for each form. Please see this documentation for more info.

    Anh TranAnh Tran
    Keymaster

    For my understanding, what this js is doing is counting the number of checked items with class=like, and displaying the counter, right?

    Yes, that's right.

    I was wondering, can I also include this in the page from where I launch the Frontend Submission? Because then I can control the location where I want the counter to be displayed.

    Yes, by putting it in a custom JS file will help you control everything easier.

    By the way, I created the .js file, stored it in the js folder of my theme, and included the call in the functions.php, but it doesn’t show a counter, and I don’t know if it counts…

    As it's in the js folder of your theme, you need to change the code in functions.php code to this:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_script( 'custom-handle', get_template_directory_uri() . '/js/custom.js', array( 'jquery' ), '', true );
    } );

    And please change the #selector in the snippet to the CSS selector of the element you want to show the total likes.

    Anh TranAnh Tran
    Keymaster

    Oh, I should have made it clear. It's the JavaScript code, so you should put it in your theme main script file. Or better, create a JS file (assume its name is custom.js) in your theme folder, and put this content inside:

    $( function() {
        // Snippet goes here.
        var total = 0;
        $( '.like input:checked' ).each( function() {
            total += $(this).val();
        } );
        // Output total somewhere
        $( '#selector' ).text( total );
    
        // More snippet goes here.
    } );

    And then in your functions.php file of the theme, add the following code:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_script( 'custom-handle', get_template_directory_uri() . '/custom.js', array( 'jquery' ), '', true );
    } );

    This thing is quite technical, though.

    Anh TranAnh Tran
    Keymaster

    Hi Doug,

    Thanks a lot for your feedback.

    There are 2 issues here:

    • Auto-complete works for both address and street_address field (which doesn't start with "address"). I've fixed this bug in the latest version, please update.
    • The street_address is not auto-populated: I spent hours reading the Google docs, while it clearly states that the street_address is supported, but all the examples are showing street_number and route only. I think you can use custom binding to get the street address part, like this:
    array(
        'id'      => 'street_address',
        'type'    => 'text',
        'name'    => 'Street Address',
        'binding' => 'street_number + " " + route',
    ),
    in reply to: Limit check box selections #10407
    Anh TranAnh Tran
    Keymaster

    I'm afraid it's not available for select field type. But you can do that with select_advanced. See this option on select2 docs.

    Anh TranAnh Tran
    Keymaster

    I've tried to test with 2 addresses and the auto complete works for both. This is the screenshot:

    https://imgur.elightup.com/NPZX1Am.png

    "Find Address" also works for me. Maybe I'm using the latest code of the Meta Box plugin on Github. Have you tried it?

Viewing 15 posts - 1,996 through 2,010 (of 3,708 total)