FAQ

Category: Phoca Guestbook Component

 FAQ questions:

1._How_to_display_emty_name_field_instead_of_filled_string_"Guest"
2._How to remove the PATH from TinyMCE editor
3._How_to_enable_supporting_of_BR_tag
4. How to make that other users than administrator and super administrator can delete and unpublish posts in frontend

This guide is obsolete as since 1.4.0 this can be set in parameters

Open the file

components/com_phocaguestbook/views/phocaguestbook/view.html.php

and change the following code on line 106 + - and 117 + -

FROM:

$form_username = JText::_('Guest');

TO:

$form_username = '';

 Top


 
This guide is obsolete as since 1.4.0 this can be set in parameters

Open the file

components/com_phocaguestbook/helpers/phocaguestbook.php

and change the following code on line 52 + - (comment the whole line)

FROM:

.'theme_advanced_path_location : "bottom",'. "\n"

TO:

// .'theme_advanced_path_location : "bottom",'. "\n"

 Top


Open the file

components/com_phocaguestbook/views/phocaguestbook/view.html.php

and add the following code (line cca. 91)

FROM:

$configP->set('HTML', 'Allowed', 'strong,em,p[style],span[style], img[src|width|height|alt|title], li,ul,ol,a[href],u,strike');

TO:

$configP->set('HTML', 'Allowed', 'strong,em,p[style],span[style], img[src|width|height|alt|title], li,ul,ol,a[href],u,strike,br');
 
 
Open the files:
components/com_phocaguestbook/controllers/phocaguestbook.php
components/com_phocaguestbook/views/phocaguestbook/view.html.php

 

find the following code:

 

if (strtolower($user->usertype) == strtolower('super administrator') || strtolower($user->usertype) == strtolower('administrator')) {

 

and add your selected group to this if clause. E.g.:

 

if (strtolower($user->usertype) == strtolower('super administrator')  || strtolower($user->usertype) == strtolower('administrator') || strtolower($user->usertype) == strtolower('your-selected-group')) {

 

 Top