Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#109 2020-04-22 10:31:01

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

Re: smd_lately: recently viewed site articles

I’ve fixed this bug on the github version. Can’t remember if I bundled up a release or not. But if not, I’ll do so later.


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

#110 2020-04-22 10:41:40

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

Re: smd_lately: recently viewed site articles

Bloke wrote #322669:

I’ve fixed this bug on the github version. Can’t remember if I bundled up a release or not. But if not, I’ll do so later.

sorry, bloke, but… how to install it?

Offline

#111 2020-04-22 12:32:38

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

Re: smd_lately: recently viewed site articles

That version on github isn’t installable as a .txt plugin yet. But you can copy the code (just the code, not the docs and header info) from the .php file and paste it over the one you have already. I’ll try and make a proper plugin out of it for you later.


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

#112 2020-04-22 13:00:41

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

Re: smd_lately: recently viewed site articles

Bloke wrote #322672:

That version on github isn’t installable as a .txt plugin yet. But you can copy the code (just the code, not the docs and header info) from the .php file and paste it over the one you have already.

from:

if (class_exists('\Textpattern\Tag\Registry')) {
    Txp::get('\Textpattern\Tag\Registry')
        ->register('smd_lately');
}

to:

   return ($out) ? doLabel($label, $labeltag).doWrap($out, $wraptag, $break, $class) : '';
}

correct?

code works now, but in debug mode i still get error:

...
</txp:smd_lately> ->  Textpattern Notice: Unknown tag attribute: by while parsing form Ükski on page est_default
textpattern/lib/txplib_misc.php:1693 trigger_error()
textpattern/plugins/smd_lately/smd_lately.php:52 lAtts()
smd_lately()
textpattern/vendors/Textpattern/Tag/Registry.php:141 call_user_func()
textpattern/lib/txplib_publish.php:541 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:447 processTags()
textpattern/publish/taghandlers.php:4258 parse()
if_section()
textpattern/vendors/Textpattern/Tag/Registry.php:141 call_user_func()
textpattern/lib/txplib_publish.php:541 Textpattern\Tag\Registry->process()

Offline

#113 2020-04-22 13:12:30

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

Re: smd_lately: recently viewed site articles

Yes, that’s perfect. However, you will find that the by attribute has been removed. The reason is that Txp no longer tracks IP addresses in the txp_log table, so that feature had to be axed from the plugin too. Sorry.


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

#114 2020-04-22 13:19:58

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

Re: smd_lately: recently viewed site articles

And there you go, smd_lately v0.4.0 released.


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

#115 2020-04-24 11:28:24

Gallex
Member
Registered: 2006-10-08
Posts: 1,304

Re: smd_lately: recently viewed site articles

Bloke wrote #322674:

Yes, that’s perfect. However, you will find that the by attribute has been removed. The reason is that Txp no longer tracks IP addresses in the txp_log table, so that feature had to be axed from the plugin too. Sorry.

thank’s bloke!

but it still shows the most viewed articles (sort by popularity within certain time), correct?

Last edited by Gallex (2020-04-24 11:33:00)

Offline

#116 2020-04-24 11:36:14

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

Re: smd_lately: recently viewed site articles

Gallex wrote #322688:

it still shows the most viewed articles (sort by popularity within certain time), correct?

Yes, just aggregated for all visitors, not by an individual person any more.


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

Board footer

Powered by FluxBB