Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2016-06-05 02:32:18

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

Re: Plugins broken in 4.6

uli wrote #299491:

That’s an easy “fix” (if it’s not that way by design)

With your easy fix it works on my 4.6 beta installation.

Where could be published the new version?

Here the code:

# Name: rah_knots v0.2.1 
# Type: Admin plugin
# Command+Save editors
# Author: Jukka Svahn
# URL: http://rahforum.biz
# Recommended load order: 5

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

YToxMTp7czo0OiJuYW1lIjtzOjk6InJhaF9rbm90cyI7czo2OiJhdXRob3IiO3M6MTE6Ikp1
a2thIFN2YWhuIjtzOjEwOiJhdXRob3JfdXJpIjtzOjE5OiJodHRwOi8vcmFoZm9ydW0uYml6
IjtzOjc6InZlcnNpb24iO3M6NToiMC4yLjEiO3M6MTE6ImRlc2NyaXB0aW9uIjtzOjIwOiJD
b21tYW5kK1NhdmUgZWRpdG9ycyI7czo0OiJjb2RlIjtzOjIyNzQ6Ii8qKg0KICogcmFoX2tu
b3RzIHBsdWdpbiBmb3IgVGV4dHBhdHRlcm4gQ01TLg0KICoNCiAqIEBhdXRob3IgIEp1a2th
IFN2YWhuDQogKiBAY2hhbmdlZCBUZXh0cGF0dGVybiA0LjYgY29tcGF0aWJpbGl0eSBieSB1
bGkNCiAqIEBkYXRlICAgIDIwMTYtMDYtMDQNCiAqIEBsaWNlbnNlIEdOVSBHUEx2Mg0KICog
QGxpbmsgICAgaHR0cHM6Ly9naXRodWIuY29tL2dvY29tL3JhaF9rbm90cw0KICoNCiAqIENv
cHlyaWdodCAoQykgMjAxMiBKdWtrYSBTdmFobiBodHRwOi8vcmFoZm9ydW0uYml6DQogKiBM
aWNlbnNlZCB1bmRlciBHTlUgR2VucmFsIFB1YmxpYyBMaWNlbnNlIHZlcnNpb24gMg0KICog
aHR0cDovL3d3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hNzgwZDMwZTJmNzU2NmEw
Zjk2OCI7fQ==

Last edited by GugUser (2016-06-19 19:01:34)

Offline

#12 2016-06-05 02:35:50

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

Re: Plugins broken in 4.6

uli wrote #299034:

Ah, Stef, thanks! That brought it back to life. During the weekend I’ve tried to follow some blog tips but only tore my hair, so I ended up dropping in the migrate plugin, for the cost of yet another 10kb. Much better now!

Need to align some changes with the stm_ao-migrate version now and see what happened with the GIF/PNG part that got lost somewhere (not contained in v0.3). And throw in again Claire/cbe’s change, and then it’s ready for some nice folks that want try the mangy beast, esp. on Opera.

Do you work on this?

Offline

#13 2016-06-05 03:07:25

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

Re: Plugins broken in 4.6

jpdupont wrote #299508:

I don’t know if it’s really correct but this modification seems to work:

Yes, it works for changes in pages, forms etc. It works also for published articles, but it doesn’t work for article changes.

Offline

#14 2016-06-05 03:57:09

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

Re: Plugins broken in 4.6

smd_browse_by 0.11 doesn’t work.

Offline

#15 2016-06-05 08:55:10

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,566
Website

Re: Plugins broken in 4.6

GugUser wrote #299532:

smd_browse_by 0.11 doesn’t work.

In what way? If it just doesn’t appear in the UI, the chances are it’s because of the changes to the DOM markup and you can apply a similar fix for the time being as the one to rah_knots. If it’s worse than that and doesn’t filter the results properly or something, then I’ll need to look at further. I’ll see what I can do to fix it this week, either way. Thanks for the report.


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

#16 2016-06-05 12:48:57

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

Re: Plugins broken in 4.6

Bloke wrote #299538:

If it just doesn’t appear in the UI, the chances are it’s because of the changes to the DOM markup (…).

Yes, .search-form changed to .txp-search. So I added .txp-search to the script line:

jQuery(".search-form, .txp-search").before('<div class="smd_browse_by">{$out}</div>');

Now, the smd_browse_by search fields are shown and work. But they need some styling.

Last edited by GugUser (2016-06-05 12:52:28)

Offline

#17 2016-06-05 13:37:55

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

Re: Plugins broken in 4.6

I think the smd_search_by should be included in the core with the same functionality and appearance as the new standard search field, with “Browse by section” etc. as placeholder and the section list inside.

Also I think that the functionality of rah_knots should be part of te core, just as it was done with rah_expanding rah_section-titles and rah_status_dropdown.

Offline

#18 2016-06-05 21:59:23

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,290
Website

Re: Plugins broken in 4.6

jpdupont wrote #299508:

uli I don’t know if it’s really correct but this modification seems to work [snip] ... and comment the $setid = mysql_insert_id();@

jdupont / uli: Have you tried Jukka’s most recent version of rah_post_versions on github? I can’t see any of the lines you mention in Jukka’s code there. A tell-tale sign was your mention of mysql_insert_id, which is deprecated in newer PHPs and it looks like Jukka already corrected that. In fact, it looks like he reworked it quite a bit since version 0.9.

If you want to compile his source code into a regular plugin, download / clone Jukka’s mass_plugin_compiler (and of course the github folder of rah_post_versions), start up the Terminal and then type:

cd /path/to/massplugincompiler
compile /path/to/rah_post_versions /path/to/rah_post_versions

or if compile returns an error, then:

php compile /path/to/rah_post_versions /path/to/rah_post_versions

and it will compile the plugin into a typical installer txt in the /packages directory of rah_post_versions. On the mac (maybe elsewhere too), you can type cd{space} and drag the folder from the finder onto the terminal window and it will insert the proper path for you. Same with compile{space}

If you’re on a mac/linux, you can also double-click the “compile” in the massplugincompiler file and a terminal window opens. Drag and drop the rah_post_versions folder on to the terminal window and then press return. The terminal window will show the installer txt.


TXP Builders – finely-crafted code, design and txp

Offline

#19 2016-06-05 22:59:45

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

Re: Plugins broken in 4.6

jakob wrote #299549:

Have you tried Jukka’s most recent version of rah_post_versions on github?

This version is very different. It works fine with changes in articles, but it has problems to find the preferences (in Textpattern preferences, “Versions”). It seems it’s not finished.

Offline

#20 2016-06-06 07:35:18

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,290
Website

Re: Plugins broken in 4.6

An untried suggestion, but try changing this line to use PREF_PLUGIN instead of PREF_ADVANCED. That has changed in txp 4.6 since Jukka last made changes and governs how prefs are shown in the Admin › Preferences pane – see Stef’s note in this thread.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB