Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#2056 2012-10-20 20:07:30
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Hi again,
I’ve installed MLP and i’ve got a problem with the true_tags plugin:
in the “default” page i have
<txp:tru_tags_cloud />
witch should show the cloud in my right bar.. problem is that i can see the cloud just for the Italian section of the site, not in the English one and i can’t understand why.
Any help would be appreciated. Thanks
Offline
#2057 2012-10-20 21:31:22
Re: MLP - The Multi-Lingual Publishing Pack
roughnecks
I would expect tru_tags to use core DB calls to get the keywords which should be intercepted by MLP to fetch the keywords from the currently visible front-side language in the URL. Do you mean you see absolutely no tru_tags output in the /en URLs, or do you see output, but it shows the Italian cloud?
I assume your default language / site is Italian, yes? That might have something to do with it, but at the moment I don’t know what, as I’ve never used tru_tags. Does the tru_tags plugin thread give any indication of whether it works with MLP?
Last edited by Bloke (2012-10-20 21:38:22)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#2058 2012-10-20 21:37:55
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Bloke wrote:
Do you mean you see absolutely no tru_tags output in the
/enURLs, or do you see output, but it lists the Italian cloud?
I see no output at all.
I assume your default language / site is Italian, yes? That might have something to do with it, but at the moment I don’t know what, as I’ve never used tru_tags. Does the tru_tags plugin thread give any indication of whether it works with MLP?
Yes, default is set to Italian; i tried searching for some possible related problems but found nothing interesting in regard.
Offline
#2059 2012-10-20 21:46:07
Re: MLP - The Multi-Lingual Publishing Pack
roughnecks wrote:
I see no output at all.
OK, as a test then, go to the tru_tags code, find the function called tru_tags_cloud_query (it’s about 1/5 of the way thru the code in the version I have). About 15 lines of code inside that function is this line:
$rs = safe_rows("$tags_field", "textpattern", "$tags_field <> ''" . $section_clause . $filter . " and Status >= '4' and Posted < now()");
Change it to this by adding ,1 to the end:
$rs = safe_rows("$tags_field", "textpattern", "$tags_field <> ''" . $section_clause . $filter . " and Status >= '4' and Posted < now()", 1);
When you refresh you’ll see a splurge of debug output, which should include the query used to get the tags. My guess is that it’ll be targeting the wrong language or the section will be incorrectly set as ‘en’ or something like that. In which case, the tru_tags URL handler needs to be fixed to understand MLP format. Might be wrong, just a hunch based on 20 seconds inside the code.
Last edited by Bloke (2012-10-20 21:46:32)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#2060 2012-10-20 22:09:40
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Bloke
lol, sorry for the mess: i had translated just a few pages, so the tags weren’t showing up :-)
As soon as i started updating the site i saw the tags_cloud being populated.
Thanks and good job with MLP, i’m actually enjoing it.
Cheers
Offline
#2061 2012-10-21 11:47:03
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Good morning,
i have a little issue now with links in sidebar: from my site you can reach some other locations which are part of the same domain, i.e. i am using the “userdir Apache module” and have resources like http://my.site.tld/~users ..
What is happening now is that all the links are rewrited as http://my.site.tld/it/~users and http://my.site.tld/en/~users: is there a way to fix this?
Thank You
Offline
#2062 2012-10-21 12:41:08
Re: MLP - The Multi-Lingual Publishing Pack
roughnecks wrote:
http://my.site.tld/~users ..
Home dir syntax is kind of like a subdir. From memory, MLP doesn’t officially support subdirectories. This may be incorrect now (I haven’t checked) but the fact your URLs are being rewritten in that way suggests this is the case.
I don’t know of a workaround at present (anyone else?). The URL handling of MLP — perhaps in conjunction with some core assistance — needs a bit of a rethink.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#2063 2012-10-21 12:47:19
Re: MLP - The Multi-Lingual Publishing Pack
all
I’ve put my current branch of MLP under git so if anyone wants the lastest bleeding edge code for a 4.5.x site, that’s where to find it. Only a couple of commits so far to fix minor visual things; nothing too drastic to worry about yet.
Feel free to hash stuff out here in the forum as usual, or raise issues on the issue tracker. I guess some of the outstanding problems from Steve’s repo would be prime candidates, but then again perhaps it’s best to start afresh here? Apologies if you’ve raised a long-standing issue and it needs raising again. When I get a moment, I may go through all the open issues on Steve’s master branch and see if any need copying across.
P.S. if anybody wants to be added as a collaborator to the project, get in touch. Could always do with the extra hands.
Last edited by Bloke (2012-10-21 13:06:00)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#2064 2012-10-21 13:15:39
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Bloke
I solved with some Redirect permanent rules in my .htaccess, at least for now.
I’ll keep following this thread.
See You.
Offline
#2065 2012-10-21 14:54:26
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
roughnecks, you can exclude directories from URL rewriting in the MLP preferences tab.
Bloke wrote:
From memory, MLP doesn’t officially support subdirectories.
MLP does indeed not work when Txp is installed in a subdirectory, but it works perfectly well for installations in subdomains.
Last edited by els (2012-10-21 14:59:26)
Offline
#2066 2012-10-21 15:01:09
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Els wrote:
roughnecks, you can exclude directories from URL rewriting in the MLP preferences tab.
Hi Els, i tried adding a directory to the “path list” in the preferences tab but it seems not to be working, i still get a 404 and the link still contains the /en/ /it/ part in it.
css,js,mouffette < that’s how i did it, and mouffette should be at [site]/mouffette
Offline
#2067 2012-10-21 15:02:48
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Is moufette a directory or a section? I’m not sure, but it’s possible that it only works for real directories.
Offline
#2068 2012-10-21 15:03:57
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Els wrote:
Is moufette a directory or a section? I’m not sure, but it’s possible that it only works for real directories.
It’s a real directory under /var/www/mouffette
Edit
Actually, it is working! Maybe some caching problem with my browser prevented me to see correctly
Thanks again to You, Bloke and Textpattern :D
Last edited by roughnecks (2012-10-21 15:11:06)
Offline
#2069 2012-10-22 06:03:25
- roughnecks
- Member
- Registered: 2012-01-26
- Posts: 41
Re: MLP - The Multi-Lingual Publishing Pack
Hi, it’s me again :)
I finished publishing all the articles and now i see that some of them (in the MLP tab) are still showing the clone icon: here is a screenshot

Do you know what is happening?
Thanks
(edited to show the image. -Els)
Last edited by els (2012-10-22 07:29:24)
Offline
#2070 2012-10-22 09:47:17
Re: MLP - The Multi-Lingual Publishing Pack
roughnecks wrote:
Do you know what is happening?
Umm, nope. Probably a bug, although it removes the clone icons on my test installation. Anything special about those articles you can think of? Anything out of the ordinary that might explain why MLP thinks they’re still untranslated?
I tried altering the url-only-title and regular titles before and after the event of cloning some/all the articles — even as far as cloning a clone — and couldn’t get it to misbehave on my setup. I wasn’t meticulously thorough, so may have missed some obvious permutation.
All I can suggest at this point is you keep an eye out for if it happens again and see if you can figure out what’s different about those articles, or if the process you went through to clone them differed in some way. That might give us something to go on so I can track down where the problem is. Sorry I can’t help right now.
Last edited by Bloke (2012-10-22 09:48:17)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline