Version: CMS Textpattern 4.0.4
Current version of this plugin: 0.65
Changes from version 0.6 to 0.65 - possition of the object files was moved from root to textpattern/plugins directory.
You have to update:
- 1. create new directory "plugins" in the textpattern dir
- 2. update the plugins code
- 3. update the md_vesions objects
Tento plugin umožňuje přidání expirace článků. Přidává do "write tabu" filedset, ve kterém je možné zadat datum a čas expirace daného článku.
Pokud vyprší platnost tohoto článku, tak je daný článek přepnut do Statusu "Skrytý".
1. stáhněte si instalační soubory a v prohlížeči otevřete soubor md_expirations_install.php - vytvoří tabulky v DB
2. otevřete v prohlížeči soubor md_expirations_ins_lan_cz.php - instalace češtiny
3. stáhněte si objekty vložte je do rootu webu
4. vložte tento kód pluginu v administraci Textpatternu
Celý plugin se skládá ze: 2 souborů pro vytvoření pluginu, 2 instalačních souborů (vytvoření tabulek + instalace jazyka) a ze 2 "objektových" souborů:
vytvoření pluginu (zobrazit kód) - tento kód vložte do administrace textpatternu
- md_expirations_create_plugin.php (zobrazit kód) - tento skript vytvoří kód pro vložení do administračního rozhranní textpatternu
- zem_tpl.php - soubor create_plugin používá tento skript k vygenerování kódu pro vložení do administrace, tento skript byl stažen z internetu
instalační soubory(stáhnout instalační balíček - all in one) - vložte je vedle souboru config.php:
- md_expirations_install.php - tento skript vytvoří tabulku potřebnou pro běh skriptu
- md_expirations_ins_lan_cz.php - instalace češtiny
- md_expirations_ins_lan_en.php - instalace angličtiny
object files(stáhnout objekty) - vložte to do rootu webu, hlavní funkcionalita pluginu:
- md_expirations.class.php - tento objekt načítá data z databáze a připravuje je pro "zobrazovací" objekt
- md_expirations_view.class.php - tento objekt zajišťuje pouze zobrazení dat
This plugin add the expiration for the articles. It will add the "Expiration fieldset" to the write tab. When the expiration of the article is in the past, the article's Status is changed to Hidden.
1. download install files and open the file md_expirations_install.php in your browser - it will create the tables in your DB
2. open file md_expirations_ins_lan_en.php in your browser - it will add the English language for this plugin (insert data to the txp lang table)
3. download the object files and put them into root of your web site
4. insert this code of plugin in your admin of CMS Textpattern
There are 2 installation files and 2 object files (install - create table + language file):
install files(installation packet - all in one) - put it next to the config.php file:
- md_expirations_install.php - this script will create the table for this plugin
- md_expirations_ins_lan_en.php - this script will install the english language for this plugin (add the data to the language table)
- md_expirations_ins_lan_cz.php - this script will install the czech language for this plugin (add the data to the language table)
object files(download objects) - put it to the root (one folder up from config.php file):
- md_expirations.class.php - this object will load the data from database and prepare it for view object
- md_expirations_view.class.php - this object will show the data from md_expiratons.class.php