Hi!
First of all congratulations for bring to the comunity this amazing component.
I have a question about the user control panel in the front end.
When I try to add a description from the frontend to any category or subcategory, there is no text editor such as TyniMCE or any other set. How could appear a text editor? I need to format the text as I can from the backend.
Thanks from Spain!! I love this component!
TyniMCE editor in User control panel (frontend)?
-
7170
- Phoca Newbie

- Posts: 4
- Joined: 19 Jan 2011, 18:16
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: TyniMCE editor in User control panel (frontend)?
Hi, for now there is no such feature
Allowing full html in frontend needs some specific library to protect the input (like it is in Phoca Guestbook), so this was not implemented yet 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
7170
- Phoca Newbie

- Posts: 4
- Joined: 19 Jan 2011, 18:16
Re: TyniMCE editor in User control panel (frontend)?
Jan, thank you for answering so quickly!
My client would like to edit the texts from the frontend, is there any hack to get it?. In any case, I hope it will be one of the features in future versions.
Thanks Jan
My client would like to edit the texts from the frontend, is there any hack to get it?. In any case, I hope it will be one of the features in future versions.
Thanks Jan
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: TyniMCE editor in User control panel (frontend)?
Hi, you can try to look at the phoca guestbook code, in fact you only need to load external editor instead of pure text area (this should be not such a problem, the raeally problem is to protect the input while saving it into database and displaying in frontend)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
7170
- Phoca Newbie

- Posts: 4
- Joined: 19 Jan 2011, 18:16
Re: TyniMCE editor in User control panel (frontend)?
Hi again, Jan!
I´m trying to implement the HTML editor in the category and subcategory front end editor. My client is the unique administrator of the front end and she needs to edit the format of the introtext of the categories.
I add a script in com_phocagallery/views/user/tmpl/default_subcategories.php, the HTML editor appears in the text area but when I save the changes, nothing happends.

I read that the function maybe that:
the function of the button in com_phocagallery/views/user/tmpl/default_subcategories.php is:
but i need the first function; submitForm().
I change the function of the button:
Original:
Changed:
add the function as a script (in the same file, is that correct?), but the button don´t work properly.
Then I change the function with the name, and the id of the text area and the id and name of the form:
But is the same, the changes don´t save. What I doing wrong?
I need to resolve this, please help!
Thanks for the support Jan
I´m trying to implement the HTML editor in the category and subcategory front end editor. My client is the unique administrator of the front end and she needs to edit the format of the introtext of the categories.
I add a script in com_phocagallery/views/user/tmpl/default_subcategories.php, the HTML editor appears in the text area but when I save the changes, nothing happends.

I read that the function maybe that:
Code: Select all
function submitForm ()
{
nicEditors.findEditor('descr').saveContent();
document.formpje.submit();
}Code: Select all
onclick="return(checkCreateSubCatForm());"I change the function of the button:
Original:
Code: Select all
<input type="submit" onclick="return(checkCreateSubCatForm());" id="phocagallerycreatesubcatsubmit" value="<?php echo JText::_('PHOCAGALLERY_EDIT'); ?>"/>Code: Select all
<input type="submit" onclick="submitForm()" id="phocagallerycreatesubcatsubmit" value="<?php echo JText::_('PHOCAGALLERY_EDIT'); ?>"/>Then I change the function with the name, and the id of the text area and the id and name of the form:
Code: Select all
function submitForm ()
{
nicEditors.findEditor('phocagallerycreatesubcatdescription').saveContent();
document.phocagallerycreatesubcatform.submit();
}I need to resolve this, please help!
Thanks for the support Jan
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: TyniMCE editor in User control panel (frontend)?
Hi, not sure now, but maybe you need to check if Phoca Gallery does not remove the unnecessary html code (as it is not used - because of security) while saving the content to database.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
7170
- Phoca Newbie

- Posts: 4
- Joined: 19 Jan 2011, 18:16
Re: TyniMCE editor in User control panel (frontend)?
Thanks for the reply Jan
Please, where i can look for?? Assests? Controllers? Get it would be fascinating...(I´ve spent much time to fix it and my client can´t give me more time...)
Thanx again,
7170
Please, where i can look for?? Assests? Controllers? Get it would be fascinating...(I´ve spent much time to fix it and my client can´t give me more time...)
Thanx again,
7170
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: TyniMCE editor in User control panel (frontend)?
Hi, not on my PC now, try to check controller or model of ucp in frontend.
Jan
Jan
If you find Phoca extensions useful, please support the project