Forums / Templates, Stylesheets, Page Layout / hide information_box when on an ezpage

hide information_box when on an ezpage

Locked

Views: 730

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Sep 2007, 11:50 AM
#1
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

hide information_box when on an ezpage

Hi!

i don't seem to get this right somehow.
In tpl_my_sidebox.php i want to do a check.

IF user is on any Ezpage
( ..mydomain.com/ndex.php?main_page=page&id=x&chapter=x )
i want to hide the information box, the box with the standard shop links: Shipping & Returns, Sitemap and so forth )

any thought? ideas?

6 Sep 2007, 12:13 PM
#3
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

Re: hide information_box when on an ezpage

thanks a lot.
i did it this way... quick&dirty but ok it works.

// check for homepage
// this is the tpl_information.php
if ($this_is_home_page) {
   echo '';
}
else {


  switch ($_GET['main_page']) {

    case 'page':
    if ((int)$_GET['id'] == 7)
  	echo '';

    break;
case 'login' || 'create_account':
  $content = '';  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
  $content .= "\n" . '<ul style="margin: 0; padding: 0;padding-left:10px; list-style-type: none;">' . "\n";
  for ($i=0; $i<sizeof($information); $i++) {
    $content .= '<li style="padding-top:5px;">' . $information[$i] . '</li>' . "\n";
  }
  $content .= '</ul>' .  "\n";
  $content .= '</div>';
}
}
?>