Harm10
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] Problem with upload_mimes hookThanks again for answering.
I probably didn’t pose my question right.
What you describe in your answer are the MLA settings I know of. For me those belong to category 2: MLA additional definitions.What do you mean by the definitions in category 3: Custom definitions?
Forum: Plugins
In reply to: [Media Library Assistant] Problem with upload_mimes hookThanks for your elaborate reply and explanation.
I would like to zoom in on the MIME type definitions that MLA picks up.
And especially the Custom definitions. How are these set? Apparently not by using the WP created upload_mimes filter?
So can you perhaps describe how someone (like me) can add to those custom types so that addition will be picked up by MLA?Forum: Plugins
In reply to: [Media Library Assistant] Problem with upload_mimes hookWell I added my filter with priority 9223372036854775800 (which is 7 lower then php_max_int on my server. Then my filter works fine and both mime types are added. I know the priority is just a number in an array but why did you code such a large number? Isn’t there some way to postpone execution of your add filter to the moment you desire?
And come to think of it? Why does my add mimes only work after your filter execution? Shouldn’t it be the other way around? Your filter wants to pick the available mime types or not?
Forum: Plugins
In reply to: [Media Library Assistant] Problem with upload_mimes hookI understand your reasoning but I simply think your capturing shouldn’t result in the impossibility of other code (for example other plug-ins) to be executed properly. On what priority is your capturing executed? If every other code has a higher priority than that the setting (or unsetting) will be correct.
I haven’t checked what filter wpuxss_eml_upload_mimes is supposed to do but will that be blocked too?Forum: Plugins
In reply to: [Contact Form 7] Strange default for Spam message?OK, clear. Thanks for the info.
OK. Thanks for the explanation. I already added some translations to the waiting queue. I suppose these will be picked up in due time.
Thanks. I will try to supply the missing translations.
The ones I found in the first place are already corrected but still in yellow and status waiting. The time stamp of that is e.g. 2016-01-11 10:37:53 GMT.
When will those messages get the permanent status?This development version solves my problem with CR LF in the shortcode.
Thanks! I think other users are also helped by this.I have marked this topic as solved.
Forum: Plugins
In reply to: [Media Library Assistant] Fixed href link or caption text per id?I have sent you a mail through the contact form to discuss the translation. I had poedit 1.5.4 (2012) and the dialog in there is definitely different. I now use 1.7.4 and that is much more like what is described in the pdf.
Pointing to the translation pdf in the documentation itself could perhaps give you more response?
Point 7 works OK. So that is another improvement.
Forum: Plugins
In reply to: [Media Library Assistant] Fixed href link or caption text per id?Sometimes the option is already there and you just do not see it.
Of course mla_image_alt is the solution!Perhaps you should put it on some to-do list that whenever someone uses such parms in the general mla_link_attributes or mla_image_attributes you replace their setting otherwise you will end up with a lot of different parms. Just an idea!
So at the end of this series of posts I ended up with all requested in the first post!
Thanks for all the time you put in!Forum: Plugins
In reply to: [Media Library Assistant] Fixed href link or caption text per id?This is very weird. I took a look at the whole source and the unescaped characters are there like you say (both in Firefox that I normally use as in IE 11). But if you select “check element” (also in both browsers) the characters change.
So I guess this is a bug in the checking of the element by the browser.By looking at the generated code I noticed something else.
If someone codes this as part of the mla_gallery
mla_image_attributes="alt='{+mla_fixed_alt+}'"
the end result is that the img tag contains 2 alt parms.
I would expect the presence of the alt parm in mla_image_attributes to suppress the regular one. Or not?Forum: Plugins
In reply to: [Media Library Assistant] Fixed href link or caption text per id?Getting rid of those single quotes made the mla_link_href working as you predicted.
Now I look at my code example I understand why you do not understand me…… ‘Title###Title2’ is what I coded and not ‘Title”Title2’.
So I try to escape the double quote indeed. I expect the resulting html to also be title=”Title###Title2″ which it isn’t.
I understand your explanation what the WP editor will do.
So how I can escape a double quote and still end up with valid HTML?NB This editor also converts those escaped characters…..
So ### should read the & q u o t ; characterForum: Plugins
In reply to: [Media Library Assistant] Fixed href link or caption text per id?I understand your explanation about the html. Better make sure that the shown example in the example code also has the fixed value applied between quotes. Currently there is
e.g., [mla_gallery mla_fixed_title="my title"].
and in my view this should read something like
e.g., [mla_gallery mla_fixed_title="array('my title','my other title')" mla_image_attributes="title='{+mla_fixed_title+}'"].
I have used your new example code and currently the fixed values are applied to the correct mla_gallery!
I already experimented with mla_link_href setting before I posted my previous example! And it doesn’t work.
This is my code:
[mla_gallery ids="961,1006,942,922" link=file mla_fixed_page="array('?p=1857','?m=201211','?p=306#comment-52','?page_id=107')" mla_fixed_title="array('Title 1','Title 2','Title 3','Title 4')" mla_fixed_alt="array('Alt 1','Alt 2','Alt 3','Alt 4')" mla_link_href="'{+site_url+}/{+mla_fixed_page+}'" mla_link_attributes="'title='{+mla_fixed_title+}'" mla_image_attributes="title='{+mla_fixed_title+}' alt='{+mla_fixed_alt+}'"]
which results in links to the page the gallery is on for all 4 images. If I leave out {+site_url+} the result is the same.And perhaps this post gets too cluttered (please tell me if you want a post to be split) with specific things but there is also something else wrong in the processing of the single and double quote when specified in a fixed value and applied in the html part.
If I code this:
[mla_gallery ids="961,1006,942,922" link=file mla_fixed_page="array('?p=1858','?m=201311','?p=406#comment-42','?page_id=127')" mla_fixed_title="array('Justatitle','Title"Title2','Title to the title','Title of title'Title2')" mla_link_attributes="href='{+mla_fixed_page+}' title='{+mla_fixed_title+}'" mla_image_attributes="title='{+mla_fixed_title+}'"]
the translated single and double quote end up translated again in the html element (for the single quote it looks fairly similar):<a title="Title"Title2" href="?m=201311"> <img ..... title="Title"Title2"></img></a>
Although the mouse-over displays the correct text still I think this is considered to be invalid html?
Forum: Plugins
In reply to: [Media Library Assistant] Fixed href link or caption text per id?I have an additional question on this topic.
How can I change the example code in such a way that the mla_fixed values are set per mla_gallery code?
Now if I have 2 mla_gallery codes with the same mla_fixed parm but with other values the values of the first one are used when building the second gallery.And btw I have a code that gives me fixed hrefs:
[mla_gallery ids="961,1006,942,922" link=file mla_fixed_page="array('?p=1857','?m=201211','?p=306#comment-52','?page_id=107')" mla_fixed_title="array('Title 1','Title 2','Title 3','Title 4')" mla_fixed_alt="array('Alt 1','Alt 2','Alt 3','Alt 4')" mla_link_attributes="href='{+mla_fixed_page+}' title='{+mla_fixed_title+}'" mla_image_attributes="title='{+mla_fixed_title+}' alt='{+mla_fixed_alt+}'"]
Forum: Plugins
In reply to: [Media Library Assistant] Fixed href link or caption text per id?I found the development version.
But I also found a bug in the processing of this example.
If I code this
[mla_gallery ids="961,1006,942,922" mla_fixed_title="array('Text number 1','Text number 2','Text number 3','Text number 4')" mla_link_attributes="title={+mla_fixed_title+}" mla_image_attributes="title={+mla_fixed_title+}"]
I have to specify the fixed titles with spaces in between with quotes otherwise I get nothing in my fixed values. This seems logical but the end result of the above is that only the first string gets incorporated into the element (so only showing “Text”).
I can see the values leaving correctly in $item_values array but apparently after this something goes wrong.
If I change the code to
[mla_gallery ids="961,1006,942,922" mla_fixed_title="array('Text number 1','Text number 2','Text number 3','Text number 4')" mla_link_attributes="title='{+mla_fixed_title+}'" mla_image_attributes="title='{+mla_fixed_title+}'"]
so put quotes around the placing of the fixed values everything works OK.
How come?