New Zenner
- Join Date:
- Jan 2008
- Posts:
- 89
- Plugin Contributions:
- 0
remove search sidebox from SSL pages
is there a way to remove the search sidebox from SSL pages only?
Views: 1,222
New Zenner
is there a way to remove the search sidebox from SSL pages only?
Deceased
gorie:
is there a way to remove the search sidebox from SSL pages only?
This post may help (it is for the manufacturers sidebox though):
http://www.zen-cart.com/forum/showpost.php?p=868355&postcount=12
You will need to make your changes accordingly to match the name of the sidebox you want to disable on your SSL pages
New Zenner
thanks,
i tried adding this to
/includes/modules/sideboxes/MY_TEMPLATE/search.php
// show only on non-secure pages
switch ($request_type) {
case ('SSL'):
$show_search = false;
break;
case ('NONSSL'):
$show_search = true;
break;
}
but it doesn't work. not sure what i'm doing wrong.
Deceased
Try this version
(.... header....)
// show only on non-secure pages
if ($request_type=='SSL') {
$show_search = false;
}
(.... rest of the file ....)
Totally Zenned
I am trying to implement this for the facebook_box mod. However I am unsure of what the name for $show_xxxx should be?
Tell staff why this post should be reviewed.