Show in Time Range XH_Plugin

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

Moderator: Tata

Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Show in Time Range XH_Plugin

Post by Tata » Fri Feb 17, 2017 1:00 am

Have look at [url=http://sitr_plugin.cmsimple.sk]the DEMO page[/url] I have just finished thanks to cmb and hos invaluable and inexhaustible help.
The plugin facilitates showing repeating or frequently re-published information.
Everything started with a script mentioned here: https://cmsimpleforum.com/viewtopic.php?f=13&t=12351.
Full information is available on the [url=http://sitr_plugin.cmsimple.sk/?Help]page -> Help[/url].
Download is also avalable on the page [url=http://sitr_plugin.cmsimple.sk/?Download]page -> Download[/url].
Any comment and/or recommendation is highly appreciated.
ToDo:
- localisation
- whatever your comments will bring (as far as my knowledge will allow :oops: ).
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: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Show in Time Range XH_Plugin

Post by Tata » Fri Feb 17, 2017 10:36 am

Sitr_XH_v1.1b available on [url=http://sitr_plugin.cmsimple.sk/]the DEMO page[/url]
- SK localisation added incl. [url=http://sitr_plugin.cmsimple.sk/plugins/sitr/help/help_sk.htm]help_sk.htm[/url]
- minor bugs and typos corrected.
Download is also avalable on the page [url=http://sitr_plugin.cmsimple.sk/?Download]page -> Download[/url].

Note:
Would whoever make localisation, send me the link, so I can extend the package.
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: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Show in Time Range XH_Plugin

Post by lck » Mon Sep 25, 2017 12:01 pm

Leider nicht kompatibel mit CMSimple_XH 1.7.0 :?

Die Administration konnte ich durch diese Änderung in der admin.php aktivieren:

Code: Select all

// if ($sitr) {
if (XH_wantsPluginAdministration('sitr')) { 
Der Debug-Modus meldet auch noch:
XH-DEPRECATED: Function initvar() is deprecated
D:\xampp\htdocs\cmsimplexh170\plugins\sitr\admin.php:17
Diese Zeile in der admin.php kann wahrscheinlich gelöscht werden (?) (das Problem hatten wir auch schon bei anderen Plugins), zumindest verschwindet dann die Meldung :)
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

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

Re: Show in Time Range XH_Plugin

Post by cmb » Tue Sep 26, 2017 11:25 am

lck wrote:Der Debug-Modus meldet auch noch:
XH-DEPRECATED: Function initvar() is deprecated
D:\xampp\htdocs\cmsimplexh170\plugins\sitr\admin.php:17
Diese Zeile in der admin.php kann wahrscheinlich gelöscht werden (?) (das Problem hatten wir auch schon bei anderen Plugins), zumindest verschwindet dann die Meldung :)
Das `initvar('sitr')` sollte sogar gelöscht werden, da es sonst unter XH 1.7 eine globale Variable anlegt, die gar nicht benötigt wird, und unter XH 1.6 ist es überflüssig, weil $sitr hier bereits initialisiert wurde.

Auch die folgenden "global Deklarationen" können entfernt werden, da im besten Fall überflüssig, und weder `$admin` noch `$plugin` sollten manipuliert werden (die werden bereits vom Core bzw. Pluginloader richtig initialsiert).

Dieser Code wurde vermutlich von Djots Example plugin kopiert und angepasst. Dieses Plugin ist aber inzwischen mehr als 10 Jahre alt, und da hat sich einiges geändert (na ja, ich habe Zweifel, dass sich diesbezüglich wirklich viel geändert hat). Als Vorlage für Plugins würde ich eher das Plugin-Tutorial im XH-Wiki empfehlen.
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Show in Time Range XH_Plugin

Post by Tata » Sun Dec 03, 2017 11:21 am

Nach bisschen Reinigung, Modifikationen und Verbesserungen neue Version 1.4beta ist uploaded auf http://sitr_plugin.cmsimple.sk.
Alles wichtiges steht in der Hilfe Datei.
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: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Show in Time Range XH_Plugin

Post by Tata » Mon Dec 04, 2017 10:55 pm

Neue Version v1.5beta ist zum anschauen/herunterladen http://sitr_plugin.cmsimple.sk.
Erklärungen aud der Downloadseite.
Jede Vorschläge wilkommen.
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: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Show in Time Range XH_Plugin

Post by Tata » Tue Dec 05, 2017 11:05 am

Noch einige Kleinigkeiten korrigiert und sitr_XH_v1_6b.zip ist freigegeben.
Aus für mich unbekannten Gründen lief die Seite nicht mehr unter sitr_plugin.cmsimple.sk. Nache umbenennen zu sitr_xh.cmsimple.sk läuft alles wieder.
[url=http://sitr_xh.cmsimple.sk]DEMO[/url]
DOWNLOAD: [url=http://sitr_xh.cmsimple.sk/userfiles/downloads/sitr_XH_v1_6b.zip]auf der Seite[/url]
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