clearasmud Posted March 19, 2006 Posted March 19, 2006 I want to remove the tell a friend box from the right column. To do so, I commented the following line in column_right.php: if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) //include(DIR_WS_BOXES . 'tell_a_friend.php'); Doing this caused some strange results. I have all products and copyright information in application_bottom and footer, but when I comment out include in column_right.php, both all products and copyright information no longer appear on the screen. I don't understand how this would happen, but when I remove the comment before include, they reappear. How does the line in column_right.php affect the code I have in footer.php and application_bottom.php? Can anyone help me with this? Thanks.
rabbitseffort Posted March 19, 2006 Posted March 19, 2006 do it like this: change if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); to this: //if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); this will work--at least it did on mine when I tested it "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
clearasmud Posted March 19, 2006 Author Posted March 19, 2006 do it like this:change if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); to this: //if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); this will work--at least it did on mine when I tested it Hello, That worked. Thanks so much. Actually, I don't know why I couldn't accomplish the same thing by putting comments before include. In fact, I think I've done this before. In any event. thanks again for respondingl
Recommended Posts
Archived
This topic is now archived and is closed to further replies.