Forum Replies Created

Viewing 15 replies - 46 through 60 (of 91 total)
  • @gdsilva actually you can do it w/o any code it can be done trough the editor with your mouse but it’s a little tricky (to have 3 images side by side all centered), I’ll describe it from scratch (suppose you have a new page)

    1. Click “Add media”, add the 3 images. By default they don’t have an alignment (when you click an image in the page editor, some icons appear and the 4th is “No alignment” and it is selected by defaul). If you would like to correct your page not starting from the beginning, just make sure you change the alignment icon for the 3 images to “No alignment”.

    2. The secret (w/o this you can’t get the wanted result) – add some random text before the 3 images AND after them, you can add a single letter “a”.

    3. Mark (select) everything with the mouse (the text at both sited and the 3 images) and click the text center icon in the icon bar in the editor tab (or press Shift+Alt+C). If you didn’t add some text this action would center the images (their align icons would change to “Align center” instead the default), something that is not wanted. BUT with the trick above, the text and images will get centered in a single line.

    4. Now fix back the trick – just remove the text in the beginning and the end. As a result you will have the 3 images side by side and at the same time centered as a whole.

    Note that this will result in a responsive layout – if you shrink the screen and there isn’t enough space the images will split and go to the next line if needed still centered.

    Thread Starter dingdang

    (@dingdang)

    Because my messages disappeared for a week, I ping the author about this problem again.

    Forum: Plugins
    In reply to: [W3 Total Cache] TTL setup
    Thread Starter dingdang

    (@dingdang)

    Thanks,
    I don’t see such an option. There are several “Expires header lifetime” but I don’t think this is what I’m looking for (the header value can be one, the internal cleaning of cactehd files can be other).

    “and display that data (Fields) thru shortcodes.”

    Where is the doc about the shortcodes?

    Thread Starter dingdang

    (@dingdang)

    Yes I just found out myself about the column name “id” (in my big test table the column name was different). Also noted the SlickGrid implementation – so you already have everything in the box and actually the pagination is not needed at all in that case.

    Thanks! Everything works excellent.

    A recommendation: you may consider to make it usable for those that don’t like to read the documentation: after the installation you can add a link under the plugin called “HOWTO” or something like that with just a sentence on the next page: “If it seems that the plugin is not working this is because you haven’t spent a minute to look at the docs, so click here and read it” hehe

    Thread Starter dingdang

    (@dingdang)

    P.P.S. Actually just to note for anyone interested:
    my previous thoughts were theoretical and I supposed that the scrolling would be slow based on some other table plugins experience (which were really slow with 10K lines).
    To my surprise this one handles 10K lines super fast including the search.
    So I would give it 10 starts if it was possible. ??

    IMPORTANT: The only problem is that possibly I found a bug – with the large table the row “NEW” is missing and at the console there is a message (which seems is related):

    Couldnt find a column: id defaulting to noedit

    Could you look into this?

    Thread Starter dingdang

    (@dingdang)

    P.S. an excellent implementation for clustering a big table is done here: https://clusterize.js.org/

    There is an example of a table with 400,000 lines nicely handled by the browser

    • This reply was modified 6 years, 8 months ago by dingdang.
    Thread Starter dingdang

    (@dingdang)

    Yes but as I can guess if the pagination is done by a limited query the search would be limited to only that page but not the whole table contents?

    My idea however is the following:
    – have the full table loaded (which is OK for all browsers to handle 10-20K lines BUT in memory)
    – display just part of them, and pagination would work just to show next part and hide the current part of data displayed
    – so search would work as it is now, using the full amount of data

    I guess this can be done by just adding a little javascript in the table view page.. but is this done by someone already?

    So to resolve this – can you tell me how your search works? where it checks for matches? Will it work if some lines of the table are hidden (display: none or height:0)?
    If the answer is yes then a pretty simple universal javascript can be embedded that would hide everything but N lines of the table and when you scroll it would dynamically show more (before of after the current set depending on the scroll direction) and hide the same amount of lines that are off screen. That way dynamically only slice of the data would be visible.

    Thread Starter dingdang

    (@dingdang)

    We have managed to hide it as an option when the currency is not supported trough hooks at woocommerce and wpml/woo/multilingual plugins.
    It will be a good option however, to have automatically and transparently not to hide it but to convert unsupported currencies to some predefined default one and only after that to send the request to braintree.

    It seems it doesn’t consider the currency. To add to the currency problems:
    – when a fixed fee is set up, the amount is added as number w/o taking it’s currency
    Seems the plugin must be extended to:
    a) set up currency as well (in addition to the fixed amount)
    b) recalculate the amount based on the current currency on checkout

    QUESTION: is there any hook/filter for the fixed amount on checkout so we could extend it easily (if we suppose the amount at the settings page is for some default currency)

    P.S. Just to note that the above problem happens while the multicurrency is handled by WPML + woocommerce multilingual

    N.B. I just found the appropriate hooks and functions and here is an example code to get this (my problem) fixed (in case ‘EUR’ is the default currency):

    add_filter(‘wc_aelia_cs_convert’, ‘sc_fix_surcharge’, 10, 3);
    function sc_fix_surcharge ($amount, $base_currency, $current_currency) {
    global $woocommerce_wpml;
    if ($current_currency != ‘EUR’) {
    $exchange_rate = $woocommerce_wpml->multi_currency->exchange_rate_services->get_currency_rate($current_currency);
    if ($exchange_rate) {
    $amount *= $exchange_rate;
    }
    }
    return $amount;
    }

    • This reply was modified 6 years, 10 months ago by dingdang.
    Thread Starter dingdang

    (@dingdang)

    Thanks. The plugin however need some way to handle the situations where the currency is not supported (like paypal plugin does) as by default it sends the request to the default one with just the number value of the other currency.
    Is there any hook that could be used to recalculate the amount*currency to the default currency in such cases?
    To give an example – if the amount is 100GBP and let say GBP is not supported by braintree but the default there is EUR, the payment will go trough but for 100EUR (not 100GBP). What we need is transparently recalculate 100GBP to EUR and send the correct amount in EUR in the braintree request.

    Disable 3D security – the latest option in settings

    Not sure if this will help you, but the same error disappeared when I switched off the “3d security” option at the bottom of the settings page of the plugin (this happens if the 3D security option is not enabled by Braintree for the account).

    Forum: Reviews
    In reply to: [10WebAnalytics] Useless
    Thread Starter dingdang

    (@dingdang)

    The URLs are absolutely identical.

    Thread Starter dingdang

    (@dingdang)

    Regarding the 1st issue – we managed the problem by using slb_media_item_properties filter hook:

    add_filter( ‘slb_media_item_properties’, ‘blabla’ );
    function blabla ( $props ) {
    … pll_current_language() … is polylang’s current language
    … $props->{‘caption’} … is the image caption
    … based on the language do something with the caption …
    … we are setting ours to “TEXT_LANG1||TEXT_LANG2” so we don’t have to duplicate the media …
    }

    You can close the ticket, but pay attention to the bug when there is .htaccess auth enabled.

    • This reply was modified 7 years, 4 months ago by dingdang.
Viewing 15 replies - 46 through 60 (of 91 total)