Last changes

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Last changes

Post by roze » Mon Feb 08, 2021 6:39 pm

Is there a way to make a visible list, e.g. in a newsbox, of the page’s who are new added ore changed?
Rob Zeijen,

Valkenswaard (NL)

lck
Posts: 3211
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Last changes

Post by lck » Mon Feb 08, 2021 8:20 pm

„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Tata
Posts: 3601
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Last changes

Post by Tata » Mon Feb 08, 2021 8:31 pm

Have you tested utaka's Simpleplugins_XH -> recently_changed? I am not sure if it is still available somewhere. His page doesn't exist anymore.
It would maybe require only extending the "date of change" parameter.
Have a look here.
You do not have the required permissions to view the files attached to this post.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

lck
Posts: 3211
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Last changes

Post by lck » Mon Feb 08, 2021 9:04 pm

See also recently_changed Addon from cmb and olape: viewtopic.php?f=12&t=10543
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

cmb
Posts: 14227
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Last changes

Post by cmb » Mon Feb 08, 2021 9:49 pm

Tata wrote:
Mon Feb 08, 2021 8:31 pm
Recently_changed is contained in simpleplugins_xh.
Actually, the code is almost the same.
@EDIT
I remember now a plugin Latest News from Jens (in late CMSimple times). It has shown short teasers of recently changed pages with the date of last change. But I can't find it anymore. I am looking after it. But it is years away...
Ich habe Jens Bröcher contacted (sofar no answer). I was wrong about the plugin name. It was Preview Navigator, though. And I tested it with one of earlier versions of CMSimple_XH. But canät find it anymore. Does somebody have it?
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Last changes

Post by roze » Wed Feb 10, 2021 7:29 pm

lck wrote:
Mon Feb 08, 2021 8:20 pm
Yanp_XH.
This works fine for me.

thx

www.beremooiehymers.nl
Rob Zeijen,

Valkenswaard (NL)

Tata
Posts: 3601
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Last changes

Post by Tata » Fri Feb 12, 2021 8:53 am

Well, the function recently_changed both as unserfunncs and simpleplugins_xh does the same reliably. However, a stylesheet would be nice and a more complex format would be good as well. E.g. something like:

Recently Changed
Page 1 - dd.mm.yyyy hh:mm:ss
Page 2 - dd.mm.yyyy hh:mm:ss
Page 3 - dd.mm.yyyy hh:mm:ss

There is the info in page_data()=array(...last_edit...) which can be easily used in

Code: Select all

$html .= '<li>
<a href="' . "$sn?$u[$page]" . '">' . $h[$page] . '</a> ('.date("Y-m-d H:i:s", $last_update).')
</li>';
I just can't find how to set the exact page related value of the $last_update. The code above returns the same date (1970-01-01 01:00:00) for each changed page.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Tata
Posts: 3601
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Last changes

Post by Tata » Sat Feb 13, 2021 7:53 pm

Ich habe versucht die Funktion zum Plugin übertragen und es scheint zu funktionieren soweit.
Es ist ermöglicht bißchen stylen und die Liste entw. als ungeordnette oder geordnette Liste ausgeben.
Noch habe ich nocht geschafft das jeweilige Datum hinter dem Seitentitle zu geben.
Der Plugin wurde nur aus de Funktion (cmb) übertragen und sehr wenig und primitiv erweitert.
Es könnte wohl jemand meine Idee zum Effekt bringen (?).
You do not have the required permissions to view the files attached to this post.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Last changes

Post by roze » Mon Feb 15, 2021 6:24 pm

Tata,

I like the idea of the ordered list.

That's how it looks like. I've put the 2 versions in the right column.

https://www.beremooiehymers.nl
Rob Zeijen,

Valkenswaard (NL)

Tata
Posts: 3601
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Last changes

Post by Tata » Mon Feb 15, 2021 7:48 pm

There's not too much I've done. I have only created the backend and added some styling. The date of the recent change is still missing and I don't know, how to include it.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply