PDA

View Full Version : how do i make an infobox hidden on some pages but not all?



technoboy
12-14-2005, 02:17 PM
how do i make one or two infobox only active in somepages
for example i want the affiliate box to show only in main page and not in products info page?

:?: :?: :?:

technoboy
03-01-2006, 08:28 AM
hmm i still dont know how to do this.

someone could pls tell me.

i want to hide affiliate infobox in 1st page just like review infobox, where is it being called.

Thanks in advance

Eric

met00
03-02-2006, 12:43 AM
I haven't done this, but go into includes/boxes/ and edit affiliate.php
locate this line

include (bts_select('boxes', $box_base_name)); // BTS 1.5
That's what displays the box. If I were trying to NOT display this box on the index.php page I would just put an if-then statement around it that looked to see what page I was on and then only display if the page wasn't index.php )or whatever your default homepage may be).