Gaps in the title and in the text of the blog

Dolphin 7.3.0 Create a new blog in the blog description put spaces in the text of the blog also gaps. Gaps are as create one check for gaps and so they do not pass? Which file juzat and how to cut the gaps

 

 

 

Also in the comments spaces instead of characters are

Quote · 19 Apr 2016

Space is usual symbol which is counted as well as another symbol. You could try to apply trim() function to the blog post subject to cut spaces from the beginning and end of the text so spaces will be allowed. But you need custom modification for this.

Rules → http://www.boonex.com/terms
Quote · 25 Apr 2016

This should be in the file juzat

 

\modules\boonex\blogs\classes\BxBlogsModule.php ??

Quote · 25 Apr 2016

Yes, AddNewPostForm function. 

This should be in the file juzat 

\modules\boonex\blogs\classes\BxBlogsModule.php ??

 

Rules → http://www.boonex.com/terms
Quote · 1 May 2016

 

Да, AddNewPostForm функции.

Это должно быть в юзать файл

\modules\boonex\blogs\classes\BxBlogsModule.php ??

 I got you, thanks AlexLaughing

 

Quote · 1 May 2016

I found but did not understand how to implement it's original code

 

 

 

 

function AddNewPostForm($iPostID=0, $bBox = true)

    {

        $this->CheckLogged();

 

        if ($iPostID==0) {

            if (!$this->isAllowedPostAdd()) {

                return $this->_oTemplate->displayAccessDenied();

            }

        } else {

            $iOwnerID = (int)$this->_oDb->getPostOwnerByID($iPostID);

            if (!$this->isAllowedPostEdit($iOwnerID)) {

                return $this->_oTemplate->displayAccessDenied();

            }

        }

 

 

where to enter int??

Quote · 1 May 2016

Try to add it in the beginning of the function:

function AddNewPostForm($iPostID=0, $bBox = true)
{
    $_POST['PostCaption'] = trim($_POST['PostCaption']);
    ...
Rules → http://www.boonex.com/terms
Quote · 2 May 2016

Спасибо большое, все работало нормально ))


And for the comment which function is responsible? for there, too, can put spaces and they will take into account

Quote · 2 May 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.