A PCRE internal error occured. This might be caused by a faulty plugin

====== Joomla Tips and Tricks ====== ===== Enable 'Creation Date' on front end edit ===== Go to your active template: templates\'your_template'\html\com_content\article\form.php and add this code where you want it to appear: <tr> <td class="key"> <label for="publish_up"> <?php echo JText::_( 'Created' ); ?>: </label> </td> <td> <?php echo JHTML::_('calendar', $this->article->created, 'created', 'created', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?> </td> </tr> Then go to the components folder and edit the following file: /components/com_content/models/article.php and replace the following code (around line ~280) if ($isNew) { $article->created = gmdate('Y-m-d H:i:s'); $article->created_by = $user->get('id'); } else { $article->modified = gmdate('Y-m-d H:i:s'); $article->modified_by = $user->get('id'); } by this code: if ($isNew) { if (!($article->created)) { $article->created = gmdate('Y-m-d H:i:s'); } $article->created_by = $user->get('id'); } else { $article->modified = gmdate('Y-m-d H:i:s'); $article->modified_by = $user->get('id'); } Now when you log on on the site's front end and edit an article, the field creation date will be available.

wiki/joomla/tips_and_tricks.txt ยท Last modified: 2016/09/29 16:11 (external edit)