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

#   Insert third-party plugin

##

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

Less More

- Posts: 127
- Thank you received: 3
-
-

6 years 2 months ago [\#322503](#322503) by [zetap](/forum/user/44792-zetap "View zetap's Profile")  *[Insert third-party plugin](/forum/30-integrations/900498-insert-third-party-plugin#322503 "-- url of the page with the problem -- : abierto.uy -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  Hello  I installed on the site a plugin to open a site module in a popup (login for example) and I would need to insert it in the product page view, I did a test and it doesn't work as expected. If I insert the plugin call in a content article it works correctly, but if I insert it in the &quot;tabular&quot; product view it doesn't recognize it and displays the code instead of the button I need to be displayed. Could you help me, tell me if I can do something like this or if I am making a mistake?  The plugin is called qlmodal PRO and the code I am trying to insert into the view is as follows:   {qlmodal id = &quot;botonInicio&quot; type = &quot;button&quot; toggle = &quot;modal&quot; class = &quot;someCssClass anotherCssClass&quot;} Login {/ qlmodal}   {qlmodal id = &quot;botonInicio&quot; type = &quot;content&quot; title = &quot;Some headline&quot;} {loadmoduleid 486} {/ qlmodal}   Thanks greetings !")* was created by *[zetap](/forum/user/44792-zetap "View zetap's Profile")*

-- url of the page with the problem -- : abierto.uy
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3

Hello

I installed on the site a plugin to open a site module in a popup (login for example) and I would need to insert it in the product page view, I did a test and it doesn't work as expected.
If I insert the plugin call in a content article it works correctly, but if I insert it in the "tabular" product view it doesn't recognize it and displays the code instead of the button I need to be displayed.
Could you help me, tell me if I can do something like this or if I am making a mistake?

The plugin is called qlmodal PRO and the code I am trying to insert into the view is as follows:

&lt;p&gt; {qlmodal id = "botonInicio" type = "button" toggle = "modal" class = "someCssClass anotherCssClass"} Login {/ qlmodal} &lt;/p&gt;
&lt;p&gt; {qlmodal id = "botonInicio" type = "content" title = "Some headline"} {loadmoduleid 486} {/ qlmodal} &lt;/p&gt;

Thanks greetings !

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

6 years 2 months ago [\#322504](#322504) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Insert third-party plugin](/forum/30-integrations/900498-insert-third-party-plugin#322504 "-- url of the page with the problem -- : abierto.uy -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  Hello  I installed on the site a plugin to open a site module in a popup (login for example) and I would need to insert it in the product page view, I did a test and it doesn't work as expected. If I insert the plugin call in a content article it works correctly, but if I insert it in the &quot;tabular&quot; product view it doesn't recognize it and displays the code instead of the button I need to be displayed. Could you help me, tell me if I can do something like this or if I am making a mistake?  The plugin is called qlmodal PRO and the code I am trying to insert into the view is as follows:   {qlmodal id = &quot;botonInicio&quot; type = &quot;button&quot; toggle = &quot;modal&quot; class = &quot;someCssClass anotherCssClass&quot;} Login {/ qlmodal}   {qlmodal id = &quot;botonInicio&quot; type = &quot;content&quot; title = &quot;Some headline&quot;} {loadmoduleid 486} {/ qlmodal}   Thanks greetings !")*

Hi,

That's because the way the plugin works. It's a content plugin and thus it can only replace its tags in a content (joomla article, HikaShop product description, etc). Not in the middle of the code.
It's the same with the loadmodule content plugin of Joomla which allows you to load modules inside a content.
And if you want to load a module anywhere else, you need a plugin like "modules anywhere" ( [ www.regularlabs.com/extensions/modulesanywhere](https://www.regularlabs.com/extensions/modulesanywhere) ) which is developed to do the same but anywhere in the code. It's more complex to develop, but more versatile.

So instead of using qlModal, you could use popup anywhere: [ extensions.joomla.org/extension/popup-anywhere/](https://extensions.joomla.org/extension/popup-anywhere/)
That plugin, like modules anywhere, it made to work anywhere on your Joomla website.

One alternative can also be to tell joomla that these tags are content:
[ docs.joomla.org/Triggering\_content\_plugins\_in\_your\_extension](https://docs.joomla.org/Triggering_content_plugins_in_your_extension)

The following user(s) said Thank You: [zetap](/forum/user/44792-zetap "View zetap's Profile")

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

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

Less More

- Posts: 127
- Thank you received: 3
-
-

6 years 2 months ago [\#322518](#322518) by [zetap](/forum/user/44792-zetap "View zetap's Profile")  Replied by *[zetap](/forum/user/44792-zetap "View zetap's Profile")* on topic *[Insert third-party plugin](/forum/30-integrations/900498-insert-third-party-plugin#322518 "-- url of the page with the problem -- : abierto.uy -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  Hello  I installed on the site a plugin to open a site module in a popup (login for example) and I would need to insert it in the product page view, I did a test and it doesn't work as expected. If I insert the plugin call in a content article it works correctly, but if I insert it in the &quot;tabular&quot; product view it doesn't recognize it and displays the code instead of the button I need to be displayed. Could you help me, tell me if I can do something like this or if I am making a mistake?  The plugin is called qlmodal PRO and the code I am trying to insert into the view is as follows:   {qlmodal id = &quot;botonInicio&quot; type = &quot;button&quot; toggle = &quot;modal&quot; class = &quot;someCssClass anotherCssClass&quot;} Login {/ qlmodal}   {qlmodal id = &quot;botonInicio&quot; type = &quot;content&quot; title = &quot;Some headline&quot;} {loadmoduleid 486} {/ qlmodal}   Thanks greetings !")*

Hi, thanks for your response

Unfortunately the popup-anywhere plugin is no longer available, maybe you know another one with the same functionality.

With the other option, I couldn't get it to work either. I have little experience, but I understand that the code of the link you sent me, I must add it in the view where I need to use qlModal (product / show_tabular.php).
Adapt the code but it didn't work, it shows error message:

"500 JHtml qlmodal not found."

I leave it copied here in case you understand it and can give me some help

$text = JHtml::_('qlmodal.prepare', $text);
$article = new stdClass;
$article-&gt;text = $text;
$params = new JObject;
JPluginHelper::importPlugin('qlmodal');
$dispatcher = JEventDispatcher::getInstance();
$dispatcher-&gt;trigger('onContentPrepare', array('some.context', &amp;$article, &amp;$params, 0));

Thanks greetings !

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

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

Less More

- Posts: 127
- Thank you received: 3
-
-

6 years 2 months ago [\#322523](#322523) by [zetap](/forum/user/44792-zetap "View zetap's Profile")  Replied by *[zetap](/forum/user/44792-zetap "View zetap's Profile")* on topic *[Insert third-party plugin](/forum/30-integrations/900498-insert-third-party-plugin#322523 "-- url of the page with the problem -- : abierto.uy -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  Hello  I installed on the site a plugin to open a site module in a popup (login for example) and I would need to insert it in the product page view, I did a test and it doesn't work as expected. If I insert the plugin call in a content article it works correctly, but if I insert it in the &quot;tabular&quot; product view it doesn't recognize it and displays the code instead of the button I need to be displayed. Could you help me, tell me if I can do something like this or if I am making a mistake?  The plugin is called qlmodal PRO and the code I am trying to insert into the view is as follows:   {qlmodal id = &quot;botonInicio&quot; type = &quot;button&quot; toggle = &quot;modal&quot; class = &quot;someCssClass anotherCssClass&quot;} Login {/ qlmodal}   {qlmodal id = &quot;botonInicio&quot; type = &quot;content&quot; title = &quot;Some headline&quot;} {loadmoduleid 486} {/ qlmodal}   Thanks greetings !")*

Hello,

I continued researching and found the plugin [ www.regularlabs.com/extensions/modals](https://www.regularlabs.com/extensions/modals) that also works on any component. I loaded the login module into a content article and show it in the popup correctly.
The only problem I have is that after logging in, the article containing the module loads, instead of staying on the page from which the popup opens, the product page.

The code I use to load the popup is:

{modal url="/login" width="500" height="430"}Login{/modal}

If you have any suggestion, it will be very useful to me.

Thanks greetings !

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

6 years 2 months ago [\#322537](#322537) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Insert third-party plugin](/forum/30-integrations/900498-insert-third-party-plugin#322537 "-- url of the page with the problem -- : abierto.uy -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  Hello  I installed on the site a plugin to open a site module in a popup (login for example) and I would need to insert it in the product page view, I did a test and it doesn't work as expected. If I insert the plugin call in a content article it works correctly, but if I insert it in the &quot;tabular&quot; product view it doesn't recognize it and displays the code instead of the button I need to be displayed. Could you help me, tell me if I can do something like this or if I am making a mistake?  The plugin is called qlmodal PRO and the code I am trying to insert into the view is as follows:   {qlmodal id = &quot;botonInicio&quot; type = &quot;button&quot; toggle = &quot;modal&quot; class = &quot;someCssClass anotherCssClass&quot;} Login {/ qlmodal}   {qlmodal id = &quot;botonInicio&quot; type = &quot;content&quot; title = &quot;Some headline&quot;} {loadmoduleid 486} {/ qlmodal}   Thanks greetings !")*

Hi,

No, you just need the line: Code:

echo JHtml::_('content.prepare', $text);

Regarding the behavior of the popup / module plugins with the login system of Joomla I can't help.
I don't know how they are coded under the hood.
Maybe you want to contact the developer of that plugin instead ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDA0OTgtaW5zZXJ0LXRoaXJkLXBhcnR5LXBsdWdpbj90bXBsPW1hcmtkb3du) 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?

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

Time to create page: 0.100 seconds

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

[](#top)
