Forums / General Questions / I want reviews write box disappear on all pages

I want reviews write box disappear on all pages

Locked

Started by 100asa on 4 Jan 2010, 8:13 AM · Views: 1,017

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
4 Jan 2010, 8:13 AM
#1
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

I want reviews write box disappear on all pages

I want reviews write box disappear on all pages, I want only the box that show the product reviews. That because I've the products reviews write button on product info page. I hope I'm clear

4 Jan 2010, 1:53 PM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: I want reviews write box disappear on all pages

I think what you want is to remove the review box to the side of your site. Is that correct? If so, this is a SIDEBOX, and can be switched off within the admin under LAYOUT BOX CONTROLLER.

If this isn't what you were looking for, can you provide a link to the site, so that we can see which section you are trying to remove?

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

4 Jan 2010, 3:50 PM
#3
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: I want reviews write box disappear on all pages

I want only this box disappear when there is a request of write a reviews (I've setup the button of write a reviews). In all other case the box still visible.

9 Jan 2010, 6:25 AM
#4
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: I want reviews write box disappear on all pages

Is there no way?

9 Jan 2010, 9:31 AM
#5
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: I want reviews write box disappear on all pages

There is always a way!

You want to remove the sidebox on a specific page, so open up includes/modules/sideboxes/YOUR_TEMPLATE/[sidebox_file].php. Now you need to add a switch to decide when to show the sidebox. For this, I would add something like:

$display_reviews_sidebox = true;
switch(true) {
  case (strtolower($_GET['main_page']) == FILENAME_REVIEWS):
    $display_reviews_sidebox = false;
    break;
}

Then you need to place all the original code within this file within a simple IF statement:

  if ($display_reviews_sidebox == true ) {
    ORIGINAL CODE IN HERE
  }

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

9 Jan 2010, 10:08 AM
#6
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: I want reviews write box disappear on all pages

Thank you for your reply, but my request is show always the box with the reviews for products, and always hide box when there's no reviews and zencart ask to write reviews. I hope I'm clear.