News:

Looking for documentation? Take a look on our wiki

Main Menu

Text filter not working. Tags stripped out on save.

Started by Sydiom, July 05, 2012, 18:27:57 PM

Previous topic - Next topic

Sydiom

Hello

I am using joomla 2.5.1 and Virtuemart 2.

In Joomla Global Configuration I have Editor set to No Editor and Text Filtering for Super user (Me) set to no filtering.

In Virtuemart, on Category Description, I want to add a YouTube movie, but the code strips out on save.

Any idea what i am doing wrong?

Thank you.

m.maier

I have the same problem here.
Disabled filtering and also removed iframe from list under Extensions/TinyMCE.
In the article manager it works, but not in Virtuemart product descriptions...

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

gain

I have the same problem, but can't solve.

I'm in Adminitrators and Super Users Joomla groups.
I'm in admin group in Virtuemart.
Tried to logout and login after edit permissions.
Tried to select no editor in Joomla configuration.

But the iframe I try to insert in manufacturer description disappear again.

Any suggestion would be appreciated... :(

EDIT: tried to put the iframe in a category description and not works too...

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gain

Quote from: jenkinhill on September 12, 2013, 17:31:59 PM
http://forum.virtuemart.net/index.php?topic=79799.0

Joomla 2.5.14
VirtueMart 2.0.22a
PHP 5.3.10
No live url, I'm working in localhost, sry... and I use custom overrides but no Joomla template with VirtueMart styling...

Sry for the inaccuracy...

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

gain

Seems that JRequest::get('post') cuts off my iframe...

Anyway here is my dirty patch for now:
diff --git a/administrator/components/com_virtuemart/controllers/manufacturer.php b/administrator/components/c
index 45da586..2ad9b8a 100644                                                                                 
--- a/administrator/components/com_virtuemart/controllers/manufacturer.php                                   
+++ b/administrator/components/com_virtuemart/controllers/manufacturer.php                                   
@@ -57,7 +57,9 @@ class VirtuemartControllerManufacturer extends VmController {                               
                /* Load the data */                                                                           
                $data = JRequest::get('post');                                                               
                /* add the mf desc as html code */                                                           
-               $data['mf_desc'] = JRequest::getVar('mf_desc', '', 'post', 'string', JREQUEST_ALLOWHTML );   
+               // my dirty workaround - allow any type of HTML, cause I need to put a YouTube video here (DON'T TRY THIS AT HOME)
+               //$data['mf_desc'] = JRequest::getVar('mf_desc', '', 'post', 'string', JREQUEST_ALLOWHTML ); 
+               $data['mf_desc'] = $_POST['mf_desc'];                                                         
                                                                                                             
                parent::save($data);
        }