Guest Posted September 28, 2005 Posted September 28, 2005 My main sts_template.html works great but when I add another template such as pop_up_image.php.html in the same folder it doesnt work. In fact, none of the STS sub templates I create are working. All my pages are still generating through sts_template.html Anyone know why? The site im working on is http://www.sparklingcards.com You'll notice the popup image javascript works but its loading the standard template, plus the image wont load either.
Guest Posted September 29, 2005 Posted September 29, 2005 My main sts_template.html works great but when I add another template such as pop_up_image.php.html in the same folder it doesnt work. In fact, none of the STS sub templates I create are working. All my pages are still generating through sts_template.html Anyone know why? The site im working on is http://www.sparklingcards.com You'll notice the popup image javascript works but its loading the standard template, plus the image wont load either. Ok i realized i dont need to use an additional template for sts to get popups working, dont know why i was thinking that. The popup code below wasnt working so sent a call for pop_up = 1 and turned sts off. works like a charm. // If script name contains "popup" then turn off templates and display the normal output // This is required to prevent display of standard page elements (header, footer, etc) from the template and allow javascript code to run properly //if (strpos($scriptname, "popup") !== false || strpos($scriptname, "info_shopping_cart") !== false) { if ($HTTP_GET_VARS['popup'] == 1) { $display_normal_output = 1; $display_template_output = 0;
Recommended Posts
Archived
This topic is now archived and is closed to further replies.