Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2011-10-21 12:55:46

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: [plugin] [ORPHAN] cnk_versioning

Any kind soul could publish a latest version with the fix included?… Thanks

Offline

#134 2011-10-21 14:17:51

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] cnk_versioning

Hi Manaus.

This one includes the fix and two mods:

  • a way to ignore certain forms from the exporting/importing process. Useful to ignore forms that only live in the database and that are maintained/modified from within the TXP admin: main example (and the one that motivated this mod) is to ignore ‘adi_variables’ form. The mod is already configured to ignore ‘adi_variables’ ($CNK_VER_IGNORED_NAMES = array('adi_variables');).
  • a way to manually trigger the forms, pages & css update, without needing to set the website to “testing” (or “debug”) nor visiting a page in the front end. This is just a link at “Presentation -> Versioning”. You click it, it should “suck” forms, pages & css from the files on your filesystem and dump it in your database. __Minor warning_: sometimes it doesn’t work properly, I still haven’t figured out why.

I hope a real coder could adopt this orphan plugin and bring it to the next level. :)

# Name: cnk_versioning v0.1.7 (mod) (compressed)
# Type: Admin/Public side plugin
# Autoload Templates
# Author: Christian Nowak (mod by Maniqui)
# URL: http://www.cnowak.de
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

H4sIAAAAAAAAA+1bWXPbRhJ+Jn/FCMUyyIQBxawlJ6REW7HkjWotySXRSbZcKgQEhiLKIADj
0FGJ/vt29wxOgjeVp1WVJGKOnj6+6e6ZBo1e93Xvr7D3uqe4xpQr/RAbFNP9qt/zILQ913bv
sPVNT5ENNKbbU/a1rvaGNaee1cKmn3pKwO/tZMR+T8F/hz3FiKOJF+DDv37sKe8ngR1GtuGy
S+/B+Erz2eiJXRiu/S22iVR3P5mlx4GNLT9CyySK/F6n8/DwoJkuztUsnvBi8dAMbD9K2ANm
TuLIczzD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aYO5P7ZGP/90aI1/PjAP
eVfpP/8PQWWyiPI8AAA=

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#135 2011-10-21 14:33:46

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 553

Re: [plugin] [ORPHAN] cnk_versioning

Wow. Thank’s for doing this maniqui.

maniqui wrote:

I hope a real coder could adopt this orphan plugin and bring it to the next level. :)

I hope so too (that’s not to say you aren’t a real coder ;-) ). This is now one of my essential plugins for Textpattern, without it I would find the whole development process very painful.

Offline

#136 2011-10-21 16:56:28

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: [plugin] [ORPHAN] cnk_versioning

maniqui wrote:

Main example (and the one that motivated this mod) is to ignore ‘adi_variables’ form. The mod is already configured to ignore ‘adi_variables’ ($CNK_VER_IGNORED_NAMES = array('adi_variables');).

+1! Cool, I can’t wait to check this out.

Offline

#137 2011-10-21 20:52:08

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: [plugin] [ORPHAN] cnk_versioning

Minor warning_: sometimes it doesn’t work properly, I still haven’t figured out why.

Hi Julián. Glad you posted that. I’ve had problems with the ‘manual trigger’ once before when the site was set to live rather than debug. You get an alarming “no such section” error or something. Switching to debug and retrying resolved it. Could that perhaps be the reason?


TXP Builders – finely-crafted code, design and txp

Offline

#138 2011-10-21 21:29:22

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] cnk_versioning

Hi Julian (without tilde!)

You get an alarming “no such section” error or something.

You mean, in the front end, right? Probably!
I recall this: when you hit the “manual trigger”, for some unknown reason that I couldn’t yet figure out (on my own hackish code), it may happen that all the forms and pages and css entries are deleted. Scary, right?
“Thankfully”, this only happens on the database. Files on filesystem are always kept intact by cnk_versioning, pheeeeew.
I recall this workaround: hit the “manual trigger” again, and all the forms, pages and css files are “sucked” again.

That’s why I’m asking for a real coder to pick up this one :)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#139 2011-10-25 15:06:00

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: [plugin] [ORPHAN] cnk_versioning

Thanks!
sorry to say, I spotted still the base_64 encode and decode problem I was referring to… great mods anyway!

Offline

#140 2011-10-25 15:17:25

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] cnk_versioning

New version here

Last edited by maniqui (2013-08-24 13:44:23)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#141 2011-10-27 14:31:31

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: [plugin] [ORPHAN] cnk_versioning

Can’t say why, with the latest mod version here above I’m getting this error (4.4.1)

Notice: Undefined variable: CNK_VER_EXT in C:\wamp\www\Txp441\textpattern\lib\txplib_misc.php(653) : eval()’d code on line 257

Thanks!

Offline

#142 2011-10-27 16:33:30

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] cnk_versioning

I never tried this on Windows, so I wonder if it works on that OS.
Could you confirm that the non-modded version worked for you?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#143 2011-10-27 16:58:09

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: [plugin] [ORPHAN] cnk_versioning

Yes it did, 1.7 with the base64 fix (done by me), php 5.3.0 (wamp)

Offline

#144 2011-10-27 17:38:51

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] cnk_versioning

Weird, because I didn’t touch any line related to that.
But then…
The modded version has this

$CNK_VER_OUTPUT_PATH = 'admin/'; //e.g. 'textpattern/_templates/versioning/'
$CNK_VER_EXT = 'txp';
$CNK_VER_EXT_CSS = 'css';

I’ve configured this: $CNK_VER_OUTPUT_PATH = 'admin/' because I use the multisite install. I wonder if this line may be affecting the next one on a Windows environment.

See if changing that to this, makes any difference:

$CNK_VER_OUTPUT_PATH = '';
$CNK_VER_EXT = 'txp';
$CNK_VER_EXT_CSS = 'css';

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB