Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#821 2020-06-25 12:08:13

etc
Developer
Registered: 2010-11-11
Posts: 3,752
Website

Re: tru_tags: A tagging plugin for textpattern

Up, please test (4.8.1+ only).

# Name: tru_tags v3.9.2 
# Type: Admin/Public/AJAX plugin
# Article tagging
# Author: Nathan Arthur
# URL: http://www.rainskit.com/
# 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:
# .....................................................................

YToxMTp7czo0OiJuYW1lIjtzOjg6InRydV90YWdzIjtzOjY6ImF1dGhvciI7czoxMzoiTmF0
aGFuIEFydGh1ciI7czoxMDoiYXV0aG9yX3VyaSI7czoyNDoiaHR0cDovL3d3dy5yYWluc2tp
dC5jb20vIjtzOjc6InZlcnNpb24iO3M6NToiMy45LjIiO3M6MTE6ImRlc2NyaXB0aW9uIjtz
OjE1OiJBcnRpY2xlIHRhZ2dpbmciO3M6NDoiY29kZSI7czo0NTkyNToiIyBDb3B5cmlnaHQg
MjAxNyBOYXRoYW4gQXJ0aHVyDQojIFJlbGVhc2VkIHVuZGVyIHRoZSBHTlUgUHVibGljIExp
Y2Vuc2UsIHNlZSBodHRwOi8vd3d3Lm9wZW5zb3VyY2Uub3JnL2xpY2Vuc2VzL2dwbC1saWNl
bnNlLnBocCBmb3IgZGV0YWlscw0KIw0KIyBUaGlzIHdvcmsgd2FzIG9yaWdpbmFsbHkgaW5z
cGlyZWQgYnkgcmFuX3RhZ3MgYnkgUmFuIEFyb3Vzc2ksIG9yaWdpbmFsbHkgZm91bmQgYXQg
aHR0cDovL2Fyb3Vzc2kuY29tL2FydGljbGUvNDUvdGFnZ2luZy10ZXh0cGF0dGVybg0KIyBK
YXZhc2NyaXB0IGJ1ZyBmaXhlcyB3ZXJlIHByb3ZpZGVkIGJ5IHRoZV9naG9zdCAtIGh0dHA6
Ly92aWN0b3J1cy5uZXQNCiMgSmF2YXNjcml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lci90cnVfdGFncy1kb2NzLmh0bWwiIHJlbD0ibm9mb2xs
b3ciPmdpdGh1YiByZXBvPC9hPjwvcD4iO3M6MzoibWQ1IjtzOjMyOiIwYTVkZTRkMmY5NzM5
NzcxYTY1ZWQyYmUyMGZlZjY2MyI7fQ==

Last edited by etc (2020-06-25 20:54:57)

Offline

#822 2020-06-25 12:33:41

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 270
Website

Re: tru_tags: A tagging plugin for textpattern

Do I understand it right, that you only changed the load order to 3, means lower than 5 and these lines?

if (tru_tags_clean_urls()) {
	register_callback('tru_tags_clean_url_handler', 'pretext', '', 1);
}

Than it doesn’t solve the problem.

Offline

#823 2020-06-25 12:42:51

etc
Developer
Registered: 2010-11-11
Posts: 3,752
Website

Re: tru_tags: A tagging plugin for textpattern

whocarez wrote #324008:

Than it doesn’t solve the problem.

It’s a 4.8.2+ only version, sorry.

Offline

#824 2020-06-25 12:43:40

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 270
Website

Re: tru_tags: A tagging plugin for textpattern

Ok, than we have to wait :-).

Offline

#825 2020-06-25 21:03:20

etc
Developer
Registered: 2010-11-11
Posts: 3,752
Website

Re: tru_tags: A tagging plugin for textpattern

Okay, this version should work in both 4.8.1 et 4.8.2.

Basic facts:

  • if you need to rewrite request_uri, set load order to something < 5 and register_callback('my_url_handler', 'pretext', '', 0); in 4.8.2 or call my_url_handler() directly in 4.8.1.
  • but actually it suffices to register_callback('my_url_handler', 'pretext'); and set global $pretext['s'] = 'my_section' in my_url_handler(), no need to rewrite URI. At this point URI chunks are stored in $pretext[1|2|...] so you can easily analyse them.

Offline

#826 2020-06-25 22:16:35

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 270
Website

Re: tru_tags: A tagging plugin for textpattern

Thanks, it works. I really appreciate your help!

With working jquery-ui autocomplete function, it looks like that:

# Name: tru_tags v3.9.2 
# Type: Admin/Public/AJAX plugin
# Article tagging
# Author: Nathan Arthur
# URL: http://www.rainskit.com/
# Recommended load order: 1

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

YToxMTp7czo0OiJuYW1lIjtzOjg6InRydV90YWdzIjtzOjY6ImF1dGhvciI7czoxMzoiTmF0
aGFuIEFydGh1ciI7czoxMDoiYXV0aG9yX3VyaSI7czoyNDoiaHR0cDovL3d3dy5yYWluc2tp
dC5jb20vIjtzOjc6InZlcnNpb24iO3M6NToiMy45LjIiO3M6MTE6ImRlc2NyaXB0aW9uIjtz
OjE1OiJBcnRpY2xlIHRhZ2dpbmciO3M6NDoiY29kZSI7czo0Nzg3MzoiIyBDb3B5cmlnaHQg
MjAxNyBOYXRoYW4gQXJ0aHVyDQojIFJlbGVhc2VkIHVuZGVyIHRoZSBHTlUgUHVibGljIExp
Y2Vuc2UsIHNlZSBodHRwOi8vd3d3Lm9wZW5zb3VyY2Uub3JnL2xpY2Vuc2VzL2dwbC1saWNl
bnNlLnBocCBmb3IgZGV0YWlscw0KIw0KIyBUaGlzIHdvcmsgd2FzIG9yaWdpbmFsbHkgaW5z
cGlyZWQgYnkgcmFuX3RhZ3MgYnkgUmFuIEFyb3Vzc2ksIG9yaWdpbmFsbHkgZm91bmQgYXQg
aHR0cDovL2Fyb3Vzc2kuY29tL2FydGljbGUvNDUvdGFnZ2luZy10ZXh0cGF0dGVybg0KIyBK
YXZhc2NyaXB0IGJ1ZyBmaXhlcyB3ZXJlIHByb3ZpZGVkIGJ5IHRoZV9naG9zdCAtIGh0dHA6
Ly92aWN0b3J1cy5uZXQNCiMgSmF2YXNjcmlwdCBjb2RlIGZvciB0aGUgdGFnIGF1dG8tY29t
cGxldGUgZmVhdHVyZSB3YXMgcHJvdmlkZWQgYnkgSmltIEJpYW5jb2xvIC0gaHR0cDovL3d3
dy5iaWFuY29sby5jb20vDQojIEZpeGVzIGZvciBUZXh0cGF0dG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XF1ZXN0LCByZXNwb25z
ZSApIHsNCiAgICAgICAgICAJCQkJICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAvLyBkZWxlZ2F0ZSBiYWNrIHRvIGF1dG9jb21wbGV0ZSwgYnV0IGV4dHJh
Y3QgdGhlIGxhc3QgdGVybQ0KICAgICAgICAgIAkJCQkgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIHJlc3BvbnNlKCAkLnVpLmF1dG9jb21wbGV0ZS5maWx0
ZXIoDQogICAgICAgICAgCQkJCSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICBhdmFpbGFibGVUYWdzLCBleHRyYWN0TGFzdCggcmVxdWVzdC50ZXJtICkg
KSApOw0KICAgICAgICAgIAkJCQkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICB9LA0KICAgICAgICAgIAkJCQkgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBmb2N1czogZnVuY3Rpb24oKSB7DQogICAgICAgICAgCQkJCSAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gcHJldmVudCB2YWx1
ZSBpbnNlcnRlZCBvbiBmb2N1cw0KICAgICAgICAgIAkJCQkgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsNCiAgICAgICAgICAJCQkJ
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwNCiAgICAgICAg
ICAJCQkJICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0
OiBmdW5jdGlvbiggZXZlbnQsIHVpICkgew0KICAgICAgICAgIAkJCQkgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB0ZXJtcyA9IHNwbGl0KCB0aGlz
LnZhbHVlICk7DQogICAgICAgICAgCQkJCSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgLy8gcmVtb3ZlIHRoZSBjdXJyZW50IGlucHV0DQogICAgICAgICAg
CQkJCSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVybXMu
cG9wKCk7DQogICAgICAgICAgCQkJCSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgLy8gYWRkIHRoZSBzZWxlY3RlZCBpdGVtDQogICAgICAgICAgCQkJCSAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVybXMucHVzaCgg
dWkuaXRlbS52YWx1ZSApOw0KICAgICAgICAgIAkJCQkgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIC8vIGFkZCBwbGFjZWhvbGRlciB0byBnZXQgdGhlIGNv
bW1hLWFuZC1zcGFjZSBhdCB0aGUgZW5kDQogICAgICAgICAgCQkJCSAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVybXMucHVzaCggIiIgKTsNCiAgICAg
ICAgICAJCQkJICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0
aGlzLnZhbHVlID0gdGVybXMuam9pbiggIiwgIiApOw0KICAgICAgICAgIAkJCQkgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsNCiAg
ICAgICAgICAJCQkJICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH19KTsNCiAg
ICAgICAgIAkJCQl9KTsNCiAgICAgICAgICAgIAkJCS8vLS0+PC9zY3JpcHQ+JzsNCiAgICAg
ICAgICAgICAgICAgICAgICAgICAgIGVjaG8gbi4kb3V0cHV0Lm47DQogICAgICAgICAgICAg
ICAgCX0NCg0KICAgICAgICB9DQoNCn0NCg0KDQojIyMgQVRPTS9S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i9tYXN0ZXIvdHJ1X3RhZ3MtZG9jcy5odG1sIiByZWw9Im5v
Zm9sbG93Ij5naXRodWIgcmVwbzwvYT48L3A+IjtzOjM6Im1kNSI7czozMjoiNmQwOWEzYTY1
MzFkZGQyYjczZGZiM2Y3MjM3YzY4MGEiO30=

Last edited by whocarez (2020-06-25 22:25:12)

Offline

#827 2020-07-28 18:25:01

frickinmuck
Member
Registered: 2008-05-01
Posts: 110

Re: tru_tags: A tagging plugin for textpattern

An error has killed one of my sites and I’m just wondering if anyone is able to help me figure out how to get this fixed. Not sure what could have changed because it was working yesterday and I’ve done nothing to the code or db.

Fatal error: Uncaught Error: Call to undefined function mysql_query() in /html/textpattern/plugins/tru_tags/tru_tags.php:948 Stack trace: #0 /html/textpattern/plugins/tru_tags/tru_tags.php(30): tru_tags_load_prefs() #1 /html/textpattern/lib/txplib_misc.php(1413): include(‘/nfs/c01/h07/mn…’) #2 /html/textpattern/publish.php(234): load_plugins() #3 /html/index.php(69): include(‘/nfs/c01/h07/mn…’) #4 {main} thrown in /html/textpattern/plugins/tru_tags/tru_tags.php on line 948


The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.

Offline

#828 2020-07-28 19:26:46

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,885
Website

Re: tru_tags: A tagging plugin for textpattern

The error mentions mysql_query and as php.net says:

This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0.

My guess – when nothing else has changed – is that your host has upgraded your server to php 7 and this error has appeared as a result. It will likely affect Textpattern too if you haven’t updated in a while. tru_tags was patched to resolve that in October 2016 time ago (here) and there are more recent updates a couple of posts above your post that repair its functionality in the most recent version of Textpattern.

Long story short: try updating tru_tags, and if you haven’t updated Textpattern in a while, take a backup of your site and database first, and then update to a recent version. Textpattern 4.8.1 is current and 4.8.2 is imminent.


TXP Builders – finely-crafted code, design and txp

Offline

#829 2020-07-28 19:57:10

frickinmuck
Member
Registered: 2008-05-01
Posts: 110

Re: tru_tags: A tagging plugin for textpattern

Thanks so much for your help. I’ve managed to fix it.

I’ve actually been procrastinating on rebuilding this site. I guess I’d better get to it! :)


The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.

Offline

Board footer

Powered by FluxBB