Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

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

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,473

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: 11,446
Website GitHub

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,473

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,473

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
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
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,473

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
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
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

#21 2016-06-06 07:41:31

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Plugins broken in 4.6

@uli, could you post the compiled .txt last release ? Thanks !

Offline

#22 2016-06-06 08:33:07

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Plugins broken in 4.6

smd_thumbnails

  • On images list : display must be improved
  • On individual image : bug, thumbnails not displayed. Impossible to build smd_thumbnails from there.

Offline

#23 2016-06-06 08:38:17

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: Plugins broken in 4.6

tom_image_grid

  • Ok on images list
  • Display of the images list/grid à the top of individual image

**

jbx_multiple_image_upload

  • Display must be improved on images list/individual image screens.

Offline

#24 2016-06-06 10:48:04

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

Re: Plugins broken in 4.6

@jpdupont.

Try these compiled txt installers:

  • smd_thumbnail – compiled version of Stef’s current github version which is working for me on 4.6
  • rah_post_versions – compiled version of Jukka’s current github version of rah_post_versions with the PREF item above changed and the number bumped to 1.0beta to avoid confusion. I’ve not tried this yet so more modifications may be necessary…

(Reminder: Backup before trying…)


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB