SnoSheriff
Active member
Is anyone running this with XF1.5? Are there any other Viglink options right in XF core without addons?
<!-- viglink -->
<xen:if is="!{xen:helper ismemberof, $visitor, 2, 3, 4, 12, 25, 27, 29, 30, 31, 34}">
<script type="text/javascript">
var vglnk = { key: 'YOUR VIGLINK KEY' };
(function(d, t) {
var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
s.src = '//cdn.viglink.com/api/vglnk.js';
var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
}(document, 'script'));
</script>
</xen:if>
<!-- End viglink Code -->
s.src = '//cdn.viglink.com/api/vglnk.js';
s.src = 'https://cdn.viglink.com/api/vglnk.js';
<xen:if is="{xen:helper ismemberof, $visitor, $xenOptions.vigLinkGroupSelector} && {$xenOptions.vigLinkID}">
<script type="text/javascript">
var vglnk = { api_url: '//api.viglink.com/api',
key: '{xen:jsescape $xenOptions.vigLinkID}' };
(function(d, t) {
var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
s.src = ('https:' == document.location.protocol ? vglnk.api_url :
'//cdn.viglink.com/api') + '/vglnk.js';
var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
}(document, 'script'));
</script>
</xen:if>
Ok so this is the default VigLinkCode template:
...
It looks like this should load the secure version of the script, however it doesn't.
<script type="text/javascript">
var vglnk = { key: 'xxxxxxxxxxxxxxxxx' };
(function(d, t) {
var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
s.src = '//cdn.viglink.com/api/vglnk.js';
var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
}(document, 'script'));
</script>
I would have thought they would be better placed to answer that question.
Yep me too! I'm digoing for options at this point, they gave examples from threads that were working... Is there any kind of tweaking with links that I need to do?
I honestly have no idea. The add on just adds their code to pages. I don't actually use it myself. I would actually argue the add on isn't really necessary anymore; it used to be more useful years ago when modifying templates wasn't ideal.
We use essential cookies to make this site work, and optional cookies to enhance your experience.