The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
creDateShow - Show/Edit Page Dates
#1
creDateShow support thread

http://get-simple.info/extend/plugin/edi...show/1045/

GetSimple pages have a publish date (pubDate) that is updated every time the page is saved. If you use the i18n_specialpages plugin you also have a creation date (creDate) for every page. I wanted to be able to easily view and manage these two dates on my pages so I wrote this small plugin. Actually, it is a fork of the GetSimple PubDateFix plugin written by Carlos which did not quite do what I wanted.

The plugin gives you two extra fields on the edit page options:
  • Creation Date
  • Publish Date
You can edit/enter new dates in either or both fields. If you do not enter a publish date then it will default to now, as per the usual behaviour.

Publish date is the standard GetSimple date and can be accessed by the usual functions:
Code:
get_page_date($format, $echo);
getPageField($page, 'pubDate');
returnPageField($page, 'pubDate');

The Creation date can be accessed by the functions:
Code:
get_page_create_date($format, $echo);
return_page_create_date($format);
Also the usual GetSimple access functions can also be used:
Code:
getPageField($page, 'creDate');
returnPageField($page, 'creDate');

The date format defaults to `'Y-m-d H:i'` but this can be changed by adding a CREDATEFORMAT
entry to gsconfig.php, for example:
Code:
define('CREDATEFORMAT','Y-m-d H:i'); // ==> 2015-12-31 23:59
Reply




Users browsing this thread: 1 Guest(s)