Technoberg Development
Forum Replies Created
-
Forum: Plugins
In reply to: [3CX Live Chat and Talk] Fragment caching using 3CX Live Chat and Talk pluginWe did some further testings.
When using the following code in the template it works:
<?php echo do_shortcode('[3cx-clicktotalk id="8309" title="Chat of Bel met Support"]'); ?>
After I test a form using the mfunc function, this works:
<!-- mfunc tbdynamicfragment --> echo do_shortcode('[contact-form-7 id="12" title="Contact formulier"]'); <!-- /mfunc tbdynamicfragment -->
But the following doesn’t work:
<!-- mfunc tbdynamicfragment --> echo do_shortcode('[3cx-clicktotalk id="8106" title="Chat of Bel met Support"]'); <!-- /mfunc tbdynamicfragment -->
This covered a couple of things:
– mfunc does work, also with shortcodes.
– 3cx is working outside the mfunc functionWhen using the mfunc function it does something I can see it when I check the sourcecode of the page. In the following div:
<div class="entry-content">
It loads:
<style>#callus-8106{--call-us-form-header-background:#de3c29; --call-us-header-text-color:#ffffff; --call-us-form-width:250px; ; --call-us-form-height:470px; }</style> <call-us id="callus-8106" style="position: fixed; bottom:8px; z-index:9999;right:8px;" phonesystem-url="https://sub.domain.nl:0000" party="support" invite-message="Hallo, waar kan ik je mee helpen?" allow-call="true" operator-name="Support" popout="true" animation-style="slideup" enable-poweredby="false" facebook-integration-url="https://www.facebook.com/technoberg" twitter-integration-url="" email-integration-url="[email protected]" allow-soundnotifications="true" ignore-queueownership="true" enable-onmobile="true" show-operator-actual-name="false" show-typing-indicator="true" auto-focus="true" minimized-style="bubble" allow-video="false" minimized="false" window-title="Chat of bel met Technoberg support" authentication-message="" unavailable-message="" window-icon="https://www.technoberg.nl/wp-content/uploads/2019/11/TB_round_Logo.png" operator-icon="https://www.technoberg.nl/wp-content/uploads/2019/11/TB_round_Logo-50x50.png" authentication="name"></call-us></div>
But the part #shadow-root (open) isn’t loaded. It seems that the Shadow DOM cannot be loaded. This shows the webcomponent isn’t working.
Could this be fixed?
- This reply was modified 4 years, 6 months ago by Technoberg Development.
- This reply was modified 4 years, 6 months ago by Technoberg Development.
- This reply was modified 4 years, 6 months ago by Technoberg Development.
Forum: Plugins
In reply to: [W3 Total Cache] Fragment caching using 3CX Live Chat and Talk pluginDear Marko,
The schortcode does work when adding the following code to the template:
<?php echo do_shortcode(‘[3cx-clicktotalk id=”0000″ title=”Chat of Bel met Support”]’); ?>We would like to use the it on all pages but only at set times. Therefore we need to have the shortcode working dynamically, without caching.
Thank you in advance for any further ideas to resolve this issue.
- This reply was modified 4 years, 7 months ago by Technoberg Development.