Quote:
Originally Posted by AURFSCAN
InsaneMan, ignore my last code as I didnt check with both page and popup, works with one not both.
this code works for both
Code:
if (document.cookie.indexOf("tor=") < 0)
document.write ('<div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div>')</vb:if>
|
Hmm actually upon further investigation into the issue </vb:if> was the issue the whole time haha. I included it in the alert message which closed out the conditional before </script> could be finished. Anyway will patch this with the new version. After updating to the new version you will need to revert your tor_alert template and if using vbOptimise you will need to flush cache.
Edit: 0.6.5 released to include the persistent option and some other minor fixes.