Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter lenehanj

    (@lenehanj)

    Is this plugin still being maintained?

    Can the developers provide some advice for my query?

    Thread Starter lenehanj

    (@lenehanj)

    Perfect, thank you for your help.

    J

    • This reply was modified 8 years ago by lenehanj.
    Thread Starter lenehanj

    (@lenehanj)

    Name:
    figure-blog
    
    Arguments:
    Blank
    
    Open:
    <div id='[+selector+]' class='gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+]' style="padding:20px;margin-bottom:20px;border: solid 0px #c0c0c0; width:50%;">
    
    Row Open:
    Blank
    
    Item:
    <figure>
    <a href="[+link_url+]"  class="fbx-link"><img src="[+link_url+]" alt="[+image_alt+]" style="display: block;margin: 0 auto;"></a>
    </figure>
    
    Row Close:
    Blank
    
    Close:
    </div>
    <br style="clear: both" />
    Thread Starter lenehanj

    (@lenehanj)

    Hi Bill

    Happy New Year.

    Just wondering if you have any update on this?

    I am hoping to launch a website on January 27th that requires this functionality, do you think there is any chance it might be working by then?

    If not, I can look for an alternative.

    Thanks

    John

    Thread Starter lenehanj

    (@lenehanj)

    Hi David

    I have tested what you have suggested and the green tick will indeed tell me everything I need to know about the translation status of an image and whether it has been shared between languages or if it is standalone.

    I’m not sure what the WP community would do without your plugin and patient help.

    Maybe Automatic will incorporate your great work into their core and bring the media library up to speed.
    (And compensate you in the process of course.)

    Thanks so much for you help. If only all support forums could offer this level of detail and help.

    Regards

    John

    Thread Starter lenehanj

    (@lenehanj)

    Thanks so much for your reply.

    “MLA adds a “Bulk Edit on Upload” area to the WordPress Media/Add New (Upload New Media) screen, and the checkbox could be added there. Would that work for your application?”

    Yes that would be great

    “MLA does not provide a similar feature to the Media Manager Modal (popup) Window “Upload Files” tab, and I have no plans to add anything there. Is that a problem for your application?”

    No, I don’t think so.

    “The Media/Assistant screen displays the “flags” column(s) showing the translation status of each item. When WPML is in “All languages” mode the flags columns contain a check mark icon in the column that matches the language of the item, a pencil icon for translations already present and a plus sign icon for translations that do not exist. Clicking on the pencil or plus sign will take you to the Media/Edit Media screen for the item translation. Does this give you the information you need?”

    No, this is not the information I require.

    When I look at the All Languages screen, I can see a plus sign for a translation that does not exist and a pencil sign for a translations that does exist, this is all fine.

    It would be great to know which of the media in the library has the same media file shared between all languages, i.e this would have been done by the WPML Media plugin if the setting ‘When uploading media to the Media library, make it available in all languages’ was checked during the upload of the media item.
    I think you deermine this by the WPML custom field: “wpml_media_processed = 1”

    In a library with many files it would be useful to know which media files are shared between all languages.
    For example, one file and 7 attachements (7 languages)

    If a person know this inforamtion that can distinguish which images (or any media file) are same for all languages and with images are different for every language.

    It is not possible to get this information at the moment with out going into the media item.

    (If an attachment translation of a media file does not have “wpml_media_processed = 1” assiociated with it, then I would determine that the media is only specific to one language.)

    Thread Starter lenehanj

    (@lenehanj)

    Hi David

    Thank you for your reply.

    When I wrote that I had made some progress, unfortunately I could not identify what change that I made during my testing to relay back to you.

    I tried what you suggested by adding multiple ‘id’s to the shortcode but it made no difference in this case. Your solution is adequate but the issue is caused by WPML.

    When a media item is uploaded directly to the media library, whether or not the media item attachment is duplicated into the website languages is determined by a WPML Media plugin setting in the WPML Media plugin admin interface.

    ON: When uploading media to the Media library, make it available in all languages
    OFF: When uploading media to the Media library, do not make it available in all languages

    Because I have two distinct types of media files to upload (i.e. I have images that I want made available in all languages and images that I require to be different for each language) I will have to remember to turn this setting ON when I want to upload an image and have it copied across all translations and turn it OFF when I upload an image that I do not want it copied and just want a different image per translation.

    When I do this the following shortcodes work perfectly:

    Same image across all languages:
    [mla_gallery ids=”1578″ columns=”1″ mla_caption=”{+caption+}” link=”file” size=”large”]

    Different image for each language:
    [mla_gallery meta_key=”eupasset_name” meta_value=”bioavailability” columns=”1″ mla_caption=”{+caption+}” link=”file” size=”full”]

    Two things that would be really helpful would be:
    1. The ability to know whether a media item currently in the library has been copied to all languages or not. Ideally this would be useful in a column.
    (Any media items that have had been made available in all languages have the following custom field attached to their translated versions: wpml_media_processed = 1)

    2. The ability at the time of upload to select whether a media item should be made available to all translations or not in the upload dialogue window.

    (This could be an interface add on that could be turned on and off in the MLA Admin>Languages tab.

    The form code (taken from the WPML Media plugin admin interface using firebug)

    <form id=”wpml_media_options_form”>
    <input type=”hidden” name=”no_lang_attachments” value=”0″>
    <input type=”hidden” id=”wpml_media_options_action”>
    <label><input type=”checkbox” name=”content_default_always_translate_media” value=”1″ checked=”checked”> When uploading media to the Media library, make it available in all languages</label>
    </form>)

    Are these a settings you would consider adding to the MLA uploader in enhance integration with WPML?

    John

    Thread Starter lenehanj

    (@lenehanj)

    Hi

    I have made some progress in that now the shortcode is partially working.

    It now is displays a hyperlink where the image should be and the correct translated caption underneath.

    The hyperlink points to the translated attachment page: ‘https://www.eupati.eu/?attachment_id=2272&#8217;. The shortcode should be rendering the image.

    J

    Thread Starter lenehanj

    (@lenehanj)

    Hi David

    Everything is working now as expected. Thank you so much for your help.

    A donation has been made.

    Wishing you all the best

    John L

    Thread Starter lenehanj

    (@lenehanj)

    Hi David

    Thank you for your response.
    I have implemented your suggestion of using the custom fields and it will definitely be a better option than using the Att-Tags in this case.

    I have no problem with images that do not require translation, the WPML Media plugin/MLA system worked fine for these.

    However you may have misinterpreted my second requirement a wee bit [or may be you did’ent ?? ].

    In the case of this image:
    https://eupati.staging.wpengine.com/wp-content/uploads/2015/06/oral-v-intravenous-bioavailability-v2_EN.png

    I need to present a different image per language because of the text in the image.

    My current plan is to upload a different image to the media library per language. I have 7 languages, so I will upload 7 images.

    I will use two custom fields to label each image as follows:

    1. meta_key=”eupasset_name” meta_value=”DNA-structure-v1″
    This custom field will hold the name of the image and will connect all images across translations.

    2. meta_key=”eupasset_lang” meta_value=”English”
    This custom field will store the language of the image.

    So in an English post I can insert an English version of the image with the following shortcode:

    [mla_gallery meta_key=”eupasset_name” meta_value=”DNA-structure-v1″ meta_key=”eupasset_lang” meta_value=”English”]

    And in the German post I can insert a German version of the image using the following shortcode:
    [mla_gallery meta_key=”eupasset_name” meta_value=”DNA-structure-v1″ meta_key=”eupasset_lang” meta_value=”German”]

    This works as expected.

    However, this method ignores WPML completely as the language is defined by my custom field:
    meta_key=”eupasset_lang” meta_value=”German”

    …not by any WPML function.

    So my question is, can you think of anyway the above scenario might work by incorporating the WPML function. This would help automate the shortcode and keep it the same across of version of the translation.

    I am not aware of any way (and I have searched) to display a different image per language in WordPress/WPML and I have seen a lot of people ask for it.

    Remember the image file must be different per language.

    There are other solutions out there using SVG and WordPress custom fields that I hope to use when IE8 is no longer supported from next January, see: https://css-tricks.com/svg-wordpress-custom-fields/.
    but this solution will not be suitable for any non-vector images.

    Would you have any thoughts about this?

    John L

    Hi

    I am seeing the same error here.

    When I install the plugin (V3) all I get is a blank screen in the admin option for SMK Sidebar Generator.

    Cheers

    Thread Starter lenehanj

    (@lenehanj)

    Thank you for sharing

    Thread Starter lenehanj

    (@lenehanj)

    Thanks for the update Mathieu

    Thread Starter lenehanj

    (@lenehanj)

    Hi Mikko

    Thank you for your reply.

    I assume the only reason that it might not work would be if there was a query_posts() call in the actual search code.

    Because I don’t have a query_posts() call on my search page, it works ok.

    It was not working originally because of a syntax error.

    As far as I can tell at the moment its working fine.

    Your welcome to see it in action, PM me you IP and I can give you access.

    Thank you for your help

    John

    Thread Starter lenehanj

    (@lenehanj)

    Hi Joe

    Thanks for your response. As a feature request I think it would worth considering having an option to change the controls to the more common approach of controlling text by have three A’s of different sizes (small, medium and large) and three boxed C’s for three levels of contrast.

    This arrangement seems to be the norm on web sites with accessibility controls. Am I incorrect to assume this? Is the arrangement of 3 A’s for text size and 3 C’s for contrast not favored by users with accessibility needs?

    I think by providing these controls on your plugin, you would help standardize these controls across the largest web publishing platform in the world.

    C’mon WordPress make these controls as part of the core and make WordPress the most popular web publishing platform in the world lead the way!

    J

Viewing 15 replies - 1 through 15 (of 15 total)