Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1891 2011-12-03 18:08:57

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

If it doesn’t already exist you need to use it somewhere to create it. So if you use ##readmore## as the value for linktext, you will find the snippet in MLP > snippets and can then add the translations.

Offline

#1892 2011-12-03 18:21:52

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: MLP - The Multi-Lingual Publishing Pack

Thanks Els, but it is not working. I added ##readmore## to an unused form and then translated the snippet but when I check the page, it just shows the snippet name and not the translation. Here are the definitions withon the Plug in:

function rss_auto_excerpt($atts) { global $thisarticle;

extract(lAtts(array( ‘linkwraptag’ => ‘p’, ‘linkclass’ => ‘’, ‘linklabel’ => ‘’, ‘linktext’ => ‘##readmore##’, ‘excerptwraptag’ => ‘’, ‘length’ => 0, ‘words’ => 0, ‘sentences’ => 0, ‘paragraphs’ => 0, ‘skiplength’ => 0, ‘skipwords’ => 0, ‘skipsentences’ => 0, ‘skipparagraphs’ => 0, ‘ending’ => ‘…’, ‘showlinkwithbody’ => 0, ‘showlinkwithexcerpt’ => 1, ‘overrideexcerpt’ => 0, ‘striptags’ => 0, ‘stripbreakstabs’ => 0, ‘wrapreadmore’ => 0, ‘excerpt’ => ‘excerpt’, ‘body’ => ‘body’, ),$atts));

Could the ‘ marks be the issue as it encases the text or does the plugion simply not work with MLP?

Offline

#1893 2011-12-03 18:47:28

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

Strange, I just tested it, and it started working for me when I added override_excerpt="1".
This is the tag that is working:

<txp:rss_auto_excerpt words="3" override_excerpt="1" linktext="##readmore##" />

Last edited by els (2011-12-03 18:49:01)

Offline

#1894 2011-12-03 18:55:18

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: MLP - The Multi-Lingual Publishing Pack

<txp:rss_auto_excerpt words=“40” override_excerpt=“1” />

still no working

I get ##readmore##

Confused, l10n version 4.3.0.12

All other MLP functionality works perfectly ….

Offline

#1895 2011-12-03 19:07:27

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

Oh, sorry, that was really dumb… it’s not override_excerpt, but overrideexcerpt. But, surprise, I removed the attribute, so that I now just have

<txp:rss_auto_excerpt words="3" linktext="##readmore##" />

…and it still works! Did you try to clear the browser cache?

Offline

#1896 2011-12-03 23:26:06

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: MLP - The Multi-Lingual Publishing Pack

Els,

I did clear Cache and checked using different browsers BUT that last fix worked, now it works a treat, THANKS

Offline

#1897 2012-01-25 20:19:27

claus
Member
From: Remseck / Neckar
Registered: 2007-05-23
Posts: 21
Website Twitter

Re: MLP - The Multi-Lingual Publishing Pack

Downloading MLP 4.3.0.12 is tricky, when txpforge.org is down.
Thanks to Els here is another Download-Link for the recent package.
Get it under http://skippyworks.net/file_download/9/mlp-4.3.0.12.zip

Offline

#1898 2012-01-27 16:57:53

divan
New Member
From: Ukraine
Registered: 2009-04-30
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

Hi all. I have fresh install of TXP 4.4.1 + MLP 4.3.0.12. No other plugins installed, and even no articles were created. Added 3 languages.
After MLP installation, I get ’404 Not found’ when trying to view the site – it redirects to ‘mysite.com/en’.
I’ve double checked versions and install instructions, searched over support threads – no luck.

Can someone point me at the possible reasons, what can cause this error on a fresh default installation?
Thanks in advance!

Offline

#1899 2012-01-27 17:01:01

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: MLP - The Multi-Lingual Publishing Pack

did the site work, before you installed mlp?
ist the htaccess file in place?

Offline

#1900 2012-01-27 17:08:28

divan
New Member
From: Ukraine
Registered: 2009-04-30
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

jens31, yes, the site work without MLP. If I disable l10n plugin, it start working find.
The .htaccess is in the place, I didn’t change anything.

Offline

#1901 2012-01-27 17:11:03

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: MLP - The Multi-Lingual Publishing Pack

& did you follow the install instructions? there are some more files to copy & manipulte than with a “normal” plugin..?

Offline

#1902 2012-01-27 17:17:11

divan
New Member
From: Ukraine
Registered: 2009-04-30
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

jens31 wrote:

& did you follow the install instructions? there are some more files to copy & manipulte than with a “normal” plugin..?

Yes, I was following README.txt strictly. Installed langages, then did copy all the files from textpattern/, replaced txplib_db.php, installed all three plugins, ran setup wizard for MLP… Admin side seems to work perfectly, but redirects to /en (and other languages) return me 404.

Also, I noticed that I can access without redirect pages like index.php?s=about and index.php?s=archive (the only two sections added in default txp installation).

Offline

#1903 2012-01-27 17:34:23

divan
New Member
From: Ukraine
Registered: 2009-04-30
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

Oh, I’ve found the problem – mod_rewrite was completely disabled. Sorry for disturbance.

Offline

#1904 2012-01-31 20:07:09

slabanosa
Member
From: Silva Carbonaria
Registered: 2004-06-01
Posts: 57

Re: MLP - The Multi-Lingual Publishing Pack

hello

Just noticed my txp search engine stopped working. I rememeber it did but don’t know when it stopped …
I am running 4.4.1 with the latest MLP .

here’s my search form
<form method="get" action="<txp:site_url />search/" id="cherche" name="cherche"> <input name="q" type="text" id="q" value="##search##" onfocus="this.value='';" /> </form>

Since I have wet haystack installed and problems were reported a while back with these 2 not playing nice, I suspect something with MLP, but I could be wrong. I have tried to reset wet_haystack to the default title & body search then uninstalled it but no go: search results is always empty and I don’t know where to look next.

thanks for any hint

Offline

#1905 2012-01-31 20:54:58

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

slabanosa wrote:

action="<txp:site_url />search/"

You won’t have the language marker in the URL this way. Does it work if you change it to action="<txp:site_url /><txp:l10n_get_lang />/search/"?

Offline

Board footer

Powered by FluxBB