Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#2305 2014-03-11 12:10:41

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: MLP - The Multi-Lingual Publishing Pack

<IfModule mod_rewrite.c>

	RewriteEngine On
	RewriteBase /

	RewriteCond %{http_host} !^www\.siteurl\.it$ [NC]
	RewriteRule ^(.*)$ http://www.siteurl.it/$1 [R=301,L]

	(…)

</IfModule>

Last edited by GugUser (2014-03-11 12:10:58)

Offline

#2306 2014-03-11 14:37:37

matteo
Member
Registered: 2013-12-19
Posts: 26

Re: MLP - The Multi-Lingual Publishing Pack

I have to completely replace my code with the one you wrote?
Thank’s,
Matteo

Offline

#2307 2014-03-11 15:24:29

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: MLP - The Multi-Lingual Publishing Pack

As I don’t know your complete .htaccess file, replace …

RewriteCond %{HTTP_HOST} ^siteurl\.it [NC,OR]
RewriteCond %{HTTP_HOST} ^000\.000\.000\.000
RewriteRule (.*) http://www.siteurl.it [R=301,L]

… with:

RewriteCond %{http_host} !^www\.siteurl\.it$ [NC]
RewriteRule ^(.*)$ http://www.siteurl.it/$1 [R=301,L]

Offline

#2308 2014-05-08 08:04:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,460
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

All

Just a note until I get round to packaging up the plugins properly. If you have upgraded/installed Txp 4.5.x or are upgrading the MLP plugins by copying and pasting the source code from Github over the top of your existing plugin code, please note that you will need to perform an additional step (just once). Failure to do this will result in article alterations not showing up on the site, even though the changes look as though they have been made in the admin side.

To fix this, the plugin type needs to be ‘5’ (not ‘1’ like it was originally). Assuming you have permitted PHP to run in Pages (check your Admin->Preferences), paste the following code at the top of any Page template and view a page on your site that uses that Page to have it change the plugin type for you:

<txp:php>
    safe_update('txp_plugin', 'type=5', "name='l10n'");
</txp:php>

Once you’ve viewed your site, check everything works by changing an article rendition and verifying that the changes are saved and show up on the website itself. Then you can delete the above code from your Page and you’re all set.

Sorry for the inconvenience. I’ll get everything set up properly one day.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#2309 2014-07-16 12:46:00

Bicss11
Member
Registered: 2014-04-03
Posts: 24

Re: MLP - The Multi-Lingual Publishing Pack

Im trying to install the mlp plugin for this and the code gives me error
Im pasting from Begin Plugin code to END plugi code

https://github.com/Bloke/MLP/blob/master/plugins/sources/gbp_admin_library.php

Last edited by Bicss11 (2014-07-16 12:46:38)

Offline

#2310 2014-07-16 12:56:11

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,460
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

Bicss11 wrote #282188:

Im trying to install the mlp plugin for this and the code gives me error

If you’re installing the latest GitHhub version, download the zip package from GitHub, overwrite all the files from there to your textpattern folder as usual, then you can just install the full plugins I’ve temporarily packaged up here:

That should save you some hassle.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#2311 2014-07-16 13:14:29

Bicss11
Member
Registered: 2014-04-03
Posts: 24

Re: MLP - The Multi-Lingual Publishing Pack

Thx Block!
I have update it
I put the <txp:php> safe_update(‘txp_plugin’, ‘type=5’, “name=‘l10n’”);
</txp:php> on all pages but my content is not updating.

Offline

#2312 2014-07-16 13:34:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,460
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

Bicss11 wrote #282190:

I put the safe_update(‘txp_plugin’, ‘type=5’, “name=‘l10n’”) on all pages but my content is not updating.

You shouldn’t need to do that if you installed the plugin from the link I posted: the plugin type will be set correctly upon install.

When you deleted whatever it was you deleted how did you restore it? If it was the database that got deleted, did you recover all tables including the l10n_* tables?

Are you seeing any errors if you put the site in Debugging mode?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#2313 2014-07-17 06:48:10

Bicss11
Member
Registered: 2014-04-03
Posts: 24

Re: MLP - The Multi-Lingual Publishing Pack

I had a database copy before fixing my textpattern
I have deleted the
<txp:php> safe_update(‘txp_plugin’, ‘type=5’, “name=‘l10n’”);
</txp:php>
lines of all my pages now

I no have errors:
If i make a search on my bbdd of a published test article i find it on l10n_txp_es_es table and textpattern table

This is my diagnostic:

Versión de Textpattern: 4.5.5 (r5575)
Última actualización: 2014-04-04 12:23:51/2013-10-04 09:55:16
Document root: /kunden/homepages/6/d521824039/htdocs (/homepages/6/d521824039/htdocs)
$path_to_site: /homepages/6/d521824039/htdocs
Ruta a Textpattern: /homepages/6/d521824039/htdocs/textpattern
Modo de enlace permanente: section_title
Ruta al directorio temporal: tmp
URL del sitio: www.hezkide.org
Versión de PHP: 5.4.30
GD Graphics Library: bundled (2.1.0 compatible); formatos soportados: GIF, JPG, PNG.
Servidor TZ: Europe/Berlin
Tiempo local del servidor: 2014-07-17 08:50:52
¿Activar horario de verano?: 0
¿Ajustar automáticamente la preferencia ‘Horario de verano’?: 0
Zona Horaria:  (+3600)
MySQL: 5.1.73-log
Local: es_ES.UTF-8
Servidor: Apache
PHP Server API: cgi-fcgi
Cabeceras RFC 2616: 0
Sistema operativo del servidor: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Plugins activos: zem_contact_lang-mlp-4.0.3.6-ML, zem_nth-0.3.0, gbp_admin_library-0.4.2, l10n-4.5.5-01
Tema de administración: classic 4.5.5

Comprobación previa:
————————————
Algunos archivos de Textpattern han sido modificados: /homepages/6/d521824039/htdocs/textpattern/lib/txplib_db.php
————————————

Contenidos del archivo .htaccess:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) /index.php
</IfModule>

#php_value register_globals 0

  1. SVG
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz

————————————

Last edited by Bicss11 (2014-07-17 07:03:33)

Offline

#2314 2014-10-10 13:54:07

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 234
Website GitHub Mastodon

Re: MLP - The Multi-Lingual Publishing Pack

Hello Stef,
I am trying to update a somewhat complex textpattern install with MLP.
I get this error message
Fatal error: Cannot redeclare get_prefs() (previously declared in F:\Aa-WebDev\Bacchanales\_txp\lesbacchanales\textpattern\lib\txplib_misc.php:4596) in F:\Aa-WebDev\Bacchanales\_txp\lesbacchanales\textpattern\lib\txplib_db.php on line 644

Which is the wrong function definition ? The one in txplib_misc.php or the one in txplib_db.php ?

Last edited by planeth (2014-10-10 13:54:25)

Offline

#2315 2014-10-10 14:15:58

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,460
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

planeth wrote #284698:

Cannot redeclare get_prefs()

MLP will not work under 4.6.x in its current form. In fact, it’s unlikely to ever work in its current form in future major Txp versions unless some hefty changes are made to the way it works under the hood. Although I could do it, I’m reticent to do so because of the work involved. Instead, I’m considering something better so we can move forward instead of constantly patching this pack.

It’s too early to say anything concrete yet, because it’s still just an idea in my head, but it sounds like it might be crazy enough to work. Once I get custom fields out of the way, I’ll turn my attention to this. In the meantime you’re stuck with 4.5.x and MLP as being the only compatible sisters.

EDIT: Having said that, if anyone’s interested in my vision for multi-lingual-ness, feel free to drop me a note and I’ll reveal all privately. Any developers are absolutely welcome to rip it to shreds, improve it, fork the Github code and issue a pull request. It’ll save me a load of work! The actual implementation is not that onerous, it’s the migration for existing MLP users that is the biggest challenge.

Last edited by Bloke (2014-10-10 14:19:00)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#2316 2014-10-10 14:32:05

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 234
Website GitHub Mastodon

Re: MLP - The Multi-Lingual Publishing Pack

Oh. Well. Didn’t check version requirement …
Sooo, which is the lastest version supported by MLP ? Is it findable in the github repository ?

Quite interested in your vision for the “multi-lingual-ness”. Willing to put some thought in it if I can handle it.

Offline

Board footer

Powered by FluxBB