[Skip to main content](#vessel-content)

#   \[SOLVED\] - Iframe in vendor description

##

- **[srajca](/forum/user/31306-srajca "View srajca's Profile")**
- [![srajca's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31306-srajca "View srajca's Profile") Topic Author
- [ Offline](/forum/user/31306-srajca)

Less More

- Posts: 8
- Thank you received: 0
-
- [](http://www.numen.si/en)
-

12 years 7 months ago -  12 years 7 months ago [\#147349](#147349) by [srajca](/forum/user/31306-srajca "View srajca's Profile")  *[\[SOLVED\] - Iframe in vendor description](/forum/23-market-how-to/866459-solved-iframe-in-vendor-description#147349 "Hello I am trying to edit the vendor description for display on front-end. The problem is that everytime I try to add an iframe code it removes it after saving. It did that with both JCE Editor and...")* was created by *[srajca](/forum/user/31306-srajca "View srajca's Profile")*

Hello I am trying to edit the vendor description for display on front-end. The problem is that everytime I try to add an iframe code it removes it after saving. It did that with both JCE Editor and TinyMCE. If I add it to the joomla articel it works without problems.
Any suggestions?
Thanks,

-- Joomla version -- : 3.2.3

Last edit: 12 years 7 months ago by [srajca](/forum/user/31306-srajca "View srajca's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODY2NDU5LXNvbHZlZC1pZnJhbWUtaW4tdmVuZG9yLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#147355](#147355) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Iframe in vendor description](/forum/23-market-how-to/866459-solved-iframe-in-vendor-description#147355 "Hello I am trying to edit the vendor description for display on front-end. The problem is that everytime I try to add an iframe code it removes it after saving. It did that with both JCE Editor and...")*

Hi,

The vendor description data is cleaned by HikaShop using the Joomla Filtering Input system.
I guess that the iframe data is removed by the JFilterInput::clean function.

Can you please edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace Code:

$safeHtmlFilter = JFilterInput::getInstance(null, null, 1, 1); $vendor-&gt;vendor_description = $safeHtmlFilter-&gt;clean($vendor-&gt;vendor_description, 'string'); $vendor-&gt;vendor_terms = $safeHtmlFilter-&gt;clean($vendor-&gt;vendor_terms, 'string');

By: Code:

$app = JFactory::getApplication(); if(!$app-&gt;isAdmin()) { $safeHtmlFilter = JFilterInput::getInstance(null, null, 1, 1); $vendor-&gt;vendor_description = $safeHtmlFilter-&gt;clean($vendor-&gt;vendor_description, 'string'); $vendor-&gt;vendor_terms = $safeHtmlFilter-&gt;clean($vendor-&gt;vendor_terms, 'string'); }

So it will activate the filtering only in the front-end.
If it is right for you, I will see to put an option in HikaMarket to let you allow special HTML content in vendor description and terms.
But for security reasons, it is better to not let your vendor put some special HTML content which can create some security issues (like inserting some javascript).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODY2NDU5LXNvbHZlZC1pZnJhbWUtaW4tdmVuZG9yLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[srajca](/forum/user/31306-srajca "View srajca's Profile")**
- [![srajca's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31306-srajca "View srajca's Profile") Topic Author
- [ Offline](/forum/user/31306-srajca)

Less More

- Posts: 8
- Thank you received: 0
-
- [](http://www.numen.si/en)
-

12 years 7 months ago [\#147409](#147409) by [srajca](/forum/user/31306-srajca "View srajca's Profile")  Replied by *[srajca](/forum/user/31306-srajca "View srajca's Profile")* on topic *[Iframe in vendor description](/forum/23-market-how-to/866459-solved-iframe-in-vendor-description#147409 "Hello I am trying to edit the vendor description for display on front-end. The problem is that everytime I try to add an iframe code it removes it after saving. It did that with both JCE Editor and...")*

Perfect this solved it. How would you add the second option that you mentioned? Can there be a simple allow/disallow button somewhere in the backend configuration. But even if it is allowed I think that the JCE editor supports multiple profiles and one can just make a profile that doesn't allow implementing of code in front-end.
Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODY2NDU5LXNvbHZlZC1pZnJhbWUtaW4tdmVuZG9yLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#147410](#147410) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Iframe in vendor description](/forum/23-market-how-to/866459-solved-iframe-in-vendor-description#147410 "Hello I am trying to edit the vendor description for display on front-end. The problem is that everytime I try to add an iframe code it removes it after saving. It did that with both JCE Editor and...")*

Hi,

The option is currently not there but I will see to add it for the next release.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODY2NDU5LXNvbHZlZC1pZnJhbWUtaW4tdmVuZG9yLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[srajca](/forum/user/31306-srajca "View srajca's Profile")**
- [![srajca's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31306-srajca "View srajca's Profile") Topic Author
- [ Offline](/forum/user/31306-srajca)

Less More

- Posts: 8
- Thank you received: 0
-
- [](http://www.numen.si/en)
-

12 years 7 months ago [\#147706](#147706) by [srajca](/forum/user/31306-srajca "View srajca's Profile")  Replied by *[srajca](/forum/user/31306-srajca "View srajca's Profile")* on topic *[Iframe in vendor description](/forum/23-market-how-to/866459-solved-iframe-in-vendor-description#147706 "Hello I am trying to edit the vendor description for display on front-end. The problem is that everytime I try to add an iframe code it removes it after saving. It did that with both JCE Editor and...")*

Fantastic,
thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODY2NDU5LXNvbHZlZC1pZnJhbWUtaW4tdmVuZG9yLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.171 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
