
Currenlty if I set the Active to False, it still shows the popup window with a message that says "The requested content cannot be loaded. Please try again later."
Here is the code that calls this popup window on my home template:
Code: Select all
{php}
if($_COOKIE['school']!='test')
{
setcookie("school", "test");
{/php}
<div id="inline1" href="{cms_selflink href='popup-window'}"></div>
{php} }
{/php}
Code: Select all
{literal}
<__script__ type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></__script>
<__script__ type="text/javascript">
$(document).ready(function() {
$("#inline1").fancybox({'height':400}).trigger('click');
$("#inline1").fancybox({'width':500}).trigger('click');
});
</__script>
{/literal}