Skip to content

Commit

Permalink
4.0.1
Browse files Browse the repository at this point in the history
4.0.1
  • Loading branch information
PhocaCz committed Jun 7, 2022
1 parent 0f4e72b commit cb7b168
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Phoca Guestbook is Joomla! CMS component. It displays guestbook form with Captch

## Version (Joomla! 4.x)

4.0.0Beta4
4.0.1



Expand Down
6 changes: 3 additions & 3 deletions admin/install/sql/mysql/install.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ CREATE TABLE IF NOT EXISTS `#__phocaguestbook_items` (
`title` varchar(200) NOT NULL default '',
`alias` varchar(255) NOT NULL default '',
`content` text,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`date` datetime NOT NULL,
`published` tinyint(1) NOT NULL default '0',
`checked_out` int(11) NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`checked_out_time` datetime,
`params` text,
`language` char(7) NOT NULL default '',
PRIMARY KEY (`id`),
Expand Down Expand Up @@ -67,7 +67,7 @@ CREATE TABLE IF NOT EXISTS `#__phocaguestbook_logging` (
`content_akismet_txt` varchar(128) NOT NULL default '',
`content_mollom` tinyint(4) NOT NULL default '0',
`content_mollom_txt` varchar(128) NOT NULL default '',
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`date` datetime NOT NULL,
`state` tinyint(3) NOT NULL default '0',
`params` text,
PRIMARY KEY (`id`),
Expand Down
2 changes: 1 addition & 1 deletion admin/language/en-GB/en-GB.com_phocaguestbook.ini
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ COM_PHOCAGUESTBOOK_FIELD_DISPLAY_EMAIL_FORM_DESC="Display or hide field Email in
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_EMAIL_FORM_LABEL="Display Email In Form"
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_EMAIL_MESSAGE_DESC="Display or hide email in post box"
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_EMAIL_MESSAGE_LABEL="Display Email In Post"
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_FORM_DESC="Set if form should be displayed or not. If not then link to the form will be displayed (clicking on link will display the form)"
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_FORM_DESC="Set if form should be displayed or not."
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_FORM_LABEL="Display Form"
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_NAME_FORM_DESC="Display or hide field Name in form, set if field Name will be required"
COM_PHOCAGUESTBOOK_FIELD_DISPLAY_NAME_FORM_LABEL="Display Name In Form"
Expand Down
8 changes: 4 additions & 4 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
<description><![CDATA[ Phoca Guestbook is Joomla! CMS component. It displays guestbook form with Captcha (8 types of Captcha) and many other different internal or external spam protection methods. ]]></description>
<element>com_phocaguestbook</element>
<type>component</type>
<version>4.0.0Beta4</version>
<infourl title="Phoca Guestbook 4.0.0Beta4">http://www.phoca.cz/version/index.php?phocaguestbook=4.0.0Beta4</infourl>
<version>4.0.1</version>
<infourl title="Phoca Guestbook 4.0.1">http://www.phoca.cz/version/index.php?phocaguestbook=4.0.1</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/PhocaCz/PhocaGuestbook/releases/download/4.0.0Beta4/com_phocaguestbook_v4.0.0Beta4.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/PhocaCz/PhocaGuestbook/releases/download/4.0.1/com_phocaguestbook_v4.0.1.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer><![CDATA[ Phoca.cz ]]></maintainer>
<maintainerurl>https://www.phoca.cz/</maintainerurl>
<section>Updates</section>
<targetplatform name="joomla" version="4.[0]"/>
<targetplatform name="joomla" version="4.[012]"/>
<client>administrator</client>
</update>
</updates>
Binary file modified phocaguestbook-release.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions phocaguestbook.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension type="component" method="upgrade" version="4.0">
<name>com_phocaguestbook</name>
<author>Jan Pavelka (www.phoca.cz)</author>
<creationDate>13/01/2022</creationDate>
<creationDate>07/06/2022</creationDate>
<authorEmail></authorEmail>
<authorUrl>https://www.phoca.cz</authorUrl>
<copyright>Jan Pavelka</copyright>
<license>GNU/GPL</license>
<version>4.0.0Beta4</version>
<version>4.0.1</version>
<description>COM_PHOCAGUESTBOOK_XML_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>
<projectName>PhocaGuestbook</projectName>
Expand Down
3 changes: 2 additions & 1 deletion site/helpers/phocaguestbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ public static function getDateFormat($dateFormat)
public static function getInfo() {

PluginHelper::importPlugin('phocatools');
$results = Factory::getApplication()->triggerEvent('PhocatoolsOnDisplayInfo', array('NjI5NTYxNTY5NQ=='));
$results = Factory::getApplication()->triggerEvent('onPhocatoolsOnDisplayInfo', array('NjI5NTYxNTY5NQ=='));
if (isset($results[0]) && $results[0] === true) {
return '';
}



return '<div style="tex'.'t-alig'
.'n: right;">Po'.'were'.'d b'.'y'
.' <a hre'.'f="ht'.'t'.'p://ww'.'w.pho'
Expand Down
4 changes: 2 additions & 2 deletions site/models/guestbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function store(&$data) {

// HTML Purifier - - - - - - - - - -
if ($params->get('enable_html_purifier', 1) == 0) {
$filterTags = '';//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
$filterAttrs = '';//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
$filterTags = [];//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
$filterAttrs = [];//preg_split( '#[,\s]+#', trim( ) ); // black list method is used
$filter = new InputFilter( $filterTags, $filterAttrs, 1, 1, 1 );
$data['guestbook_content'] = $filter->clean( $data['content'] );
} else {
Expand Down
5 changes: 5 additions & 0 deletions site/views/guestbook/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/



defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
Expand Down Expand Up @@ -91,6 +93,9 @@
// If position = 0 --> Form is top, Messages bottom
// If position = 1 --> Form is bottom, Messages top,
// If position = 2 --> Use tabs for Message and Form



switch ($this->params->get('form_position', 0)) {
case 0:
//echo $this->loadTemplate('form');
Expand Down
2 changes: 1 addition & 1 deletion site/views/guestbook/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function display($tpl = null) {
$params->set('date_format', PhocaguestbookHelperFront::getDateFormat($params->get('date_format', 'DATE_FORMAT_LC')));
$params->set('captcha_id', PhocaguestbookHelperFront::getCaptchaId($params->get('enable_captcha', '')));
$params->set('pgbinfo', PhocaguestbookHelperFront::getInfo());
$params->set('show_form', $params->get('display_form',1));

$params->set('show_form', $params->get('display_form',1));

$params->set('show_posts', $params->get('display_posts',1));
// Captcha not for registered
Expand Down

0 comments on commit cb7b168

Please sign in to comment.