GuardianAngel
Forum Replies Created
-
Hi,
I am not sure we fully understood each other, the little PHP I know is quite rusty but I sure can code/program. What I was suggesting I was not asking you to do, I wanted to know if you thought it was doable so I might actually try to code/program it.
I was wondering if, if I were to modify the source code to add another field, you thought what I was suggesting could actually be done (ie only display in the list blogs with the same new identifier I would add). If you add told me this was entirely not possible I would not try but your response suggests that it could indeed work.
The “plugin” I added is essentially the link you referred me to, https://github.com/lloc/Multisite-Language-Switcher/wiki/Change-the-blog-collection, with a “header” (ie the comment lines) to make WordPress believe it’s actually a plugin so no, it doesn’t have a setup screen.
I guess someone could either add the functionality I was asking about in your plugin or in that fake plugin filter if one wanted not to modify your plugin source code.
Thank you very much for your help!
Nick
Hi Dennis!
I installed the code you referred to as a plugin (ie “Change the blog collection”)
Is there a way from that filter to know what is the blog id of the current blog to be able to return the appropriate populated array depending on this?
Even better, if I were to add another field in your setup screen (an ID that would be shared by all sites which are supposed to be a translation of each other), is there a way to query it from that filter (or for the code that calls that filter)? If there is, I might try to do it (the little PHP I know is quite rusty but I am no stranger to programming…).
Thank you and have a nice day!
Nick
Forum: Plugins
In reply to: [Polylang] Language selectorYou are welcome / De rien Dan!
Nick
Forum: Plugins
In reply to: [Polylang] Language selectorHi Danny!
Now I understand the spelling of your nickname… (-;
Yes, I was referring to the widget…
I can see two possible solutions to your problem…
–
pll_the_languages(array('hide_current' => 1));
(I think that should work, never tried this…)
Please let me know how this turns out…
Have a nice day!
Nick
PS: The little PHP I know is quite rusty…
PPS: It’s most likely documented somewhere else top but I looked at the code in include/api.php for the parameters…
Forum: Plugins
In reply to: [Polylang] Language selectorHi fandan!
Click on the little arrow to see the options for the language switcher and click “Hides the current language” then save the menu.
Is this what you wanted?
Nick
PS: You misspelled fendant… (-;
Hi!
Out of curiosity, what is the common setup, a single blog in multiple languages?
So if I understood you right you would differentiate the two blogs by the theme they use?
Out of curiosity (but I am not sure I could do it, the little PHP I know is verrry rusty), would it be possible to add another field in the setup screen and it that field is filled in only show the blog with the same data in that field?
(ie a way to regroup those blogs using a common identifier… In its simplest expression it could be a text field)
Is that (easily, like I said the little PHP skills I have are verry rusty) doable?
Thank you and have a nice day!
Nick
Hi and thank you for your answer!
I have installed it… (and had installed it before my post)
What I saw is that As soon as I had more than two blogs configured they were all considered to be a translation of the same blog as it showed the status of the translation of totally unrelated blogs.
I had multiple times the same flags displayed for each posts and the possibility to link these posts to posts of totally unrelated blogs.
For example (and this is why I love how your plugin works, the two separate blog idea which permit different localized domain names):
let’s say I have
blog1.example.com (English)
blog1.exempel.com (German, I hope…)
blog1.esempio.com (Italian, I hope…)blog2.example.com (English)
blog2.exempel.com (German, I hope…)
blog2.esempio.com (Italian, I hope…)blog1 and blog2 are available in the same 3 languages but are otherwise unrelated, the content is quite different.
In the “Post” screen, they are all thought to be related and we are shown the status of completion twice for each language since they are all thought to be the same blog…
Is this due to a misconfiguration on my part or by design?
(From reading other posts I had the impression this might be by design…)
Thank you!
Nick
Hi Rolf!
Sorry, it’s apparently an issue with how that (Multisite Language Plugin) plugin works…
Unfortunately the problem only showed up after I had used your plugin but the problem was not caused by it…
Sorrrrrrrrrrry for the noise…
Nick
PS: Your plugin works beautifully, thank you!
Forum: Plugins
In reply to: [WpZon - Amazon Affiliate Plugin] Can't seem to get it working…Thank you!
This showed that there was a problem with my AWS key and it has been fixed!
Have a nice day!
Nick
Forum: Plugins
In reply to: [Post Types Order] eval(base64_decode(… in licence.phpHi,
The Base 64 encoding is used for many thing, the most notable of which being emails…
Any hacker who would rely on this to hack a server would be more in the script-kiddy category than a real hacker…
Essentially this converts binary data to non binary data for transmission using mediums which do not support binary data…
Have a nice day! / Bonne journée!
Nick
Forum: Plugins
In reply to: [WpZon - Amazon Affiliate Plugin] Can't seem to get it working…OK, I fixed a problem but it still isn’t working…
I had errors about a missing curl_init() in Apache’s error_log so I added the missing packages for that…
I no longer have the error but I still don’t have anything on the screen…
Any ideas?
Thank you!
Nick