Peper Posted June 1, 2010 Posted June 1, 2010 Need some advice: Using Firefox my site is working fine but when using IE Explorer only the right column width size increases a lot There are no big images or so that loads in the right column to do this So when I cleared my browser cache and go to the front index.php page its shows normal - then when navigating to e.g. account.php it's big again - a refresh(ctl+shift+refresh) and its small Going back to the index page it's big again and so on Where to start from here finding fault? Getting the Phoenix off the ground
Peper Posted June 1, 2010 Author Posted June 1, 2010 Ok, found culprit - customer testimonials This is the wrong place actually to post but here it goes My customer testimonial code: <?php /* $Id: customer_testimonials.php 11/09/2009 Exp $ Released under the GNU General Public License */ /*** Scrolling Customer Testimonials v1.0 ***/ // Display the column infobox only if admin has turned on the mod // Also check to see if viewing is restricted to registered users only // or if admin settings indicate all users may view testimonials if ((TESTIMONIAL_ACTIVE == 'Yes') && ( ((TESTIMONIAL_REGISTERED_VIEW == "Registered Users Only") && (tep_session_is_registered('customer_id'))) || (TESTIMONIAL_REGISTERED_VIEW == "All Users") ) ) { ?> <!-- customer testimonials //--> <tr> <td> <?php // create Write Testimonial link, if applicable $testimonial_write_link = ''; if (((TESTIMONIAL_REGISTERED_WRITE == "Registered Users Only") && (tep_session_is_registered('customer_id'))) || (TESTIMONIAL_REGISTERED_WRITE == "All Users")) { $testimonial_write_link = tep_draw_separator('h_gray_middle.gif', '100%', '3') . '<center><a href="' . tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE, tep_get_all_get_params(array('language', 'currency'))) . '">' . IMAGE_BUTTON_WRITE . '</a></center>'; } // Count how many testimonials in database that match user's language // Also check for minimum number of records if Scrolling feature active if (TESTIMONIAL_SCROLL == "Scrolling") { $testimonials_limit = TESTIMONIALS_LIMIT; } else { $testimonials_limit = 1; } /*** Begin Scrolling Customer Testimonials v1.1 ***/ // check language display preference if (TESTIMONIAL_LANG_PREF == "User Language Only") { // display only localized testimonials? // Count how many testimonials in database that match user's language $testimonials_new_query = tep_db_query("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE status = 1 AND language_id = $languages_id ORDER BY rand() LIMIT " . $testimonials_limit); } else { // else count all testimonials for all languages $testimonials_new_query = tep_db_query("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE status = 1 ORDER BY rand() LIMIT " . $testimonials_limit); } /*** End Scrolling Customer Testimonials v1.1 ***/ $testimonial_count = tep_db_num_rows($testimonials_new_query); // Begin infobox heading $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CUSTOMER_TESTIMONIALS ); new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS, '', 'NONSSL')); // End infobox heading // Begin infobox content $info_box_contents = array(); // Check to see if any testimonials exist if ($testimonial_count == 0) { // if not then only display Write Testimonial link, if appliable /*** Begin Scrolling Customer Testimonials v1.11 ***/ // add message that no testimonials are available to view $testimonials_list = $testimonial_write_link . '<br><center>' . NO_TESTIMONIALS_TEXT . '</center><br>'; $info_box_contents[] = array('align' => 'left', 'text' => '<center>' . $testimonials_list . '</center><br>'); /*** End Scrolling Customer Testimonials v1.11 ***/ } else { // Now figure out how many Testimonials to get from the database // If Scrolling is turned on but we don't have enough testimonials to trigger scrolling, default to Static display // and just pull 1 random testimonial if (($testimonial_count < TESTIMONIALS_SCROLL_TRIGGER) || (TESTIMONIAL_SCROLL != "Scrolling")) { // *** // Start Static display // *** /*** Begin Scrolling Customer Testimonials v1.1 ***/ // check language display preference if (TESTIMONIAL_LANG_PREF == "User Language Only") { // pick only a localized testimonial? $random_testimonial = tep_random_select("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE status = 1 AND language_id = $languages_id ORDER BY rand() LIMIT 1"); } else { // else pick one out of all testimonials for all languages $random_testimonial = tep_random_select("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE status = 1 ORDER BY rand() LIMIT 1"); } /*** End Scrolling Customer Testimonials v1.1 ***/ $testimonial = strip_tags($random_testimonial['testimonials_html_text']); $testimonial_titulo = $random_testimonial['testimonials_title']; $info_box_contents[] = array('align' => 'left', 'text' => '<b><center>' . $testimonial_titulo . '</center></b><br>' . (strlen($testimonial) > 100 ? substr($testimonial,0,100) . ' ...': $testimonial) . '<br /><br /><a href="' . tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS, tep_get_all_get_params(array('language', 'currency')) .'testimonial_id=' . $random_testimonial['testimonials_id']) . '"><span><center>' . TEXT_READ_MORE . '</center></span></a><br><span><center><b> By '.$random_testimonial['testimonials_name'].'</b></center></span><br>' . $testimonial_write_link); // *** // End Static display // *** } else { // *** // *** Scrolling subroutine *** // *** $rows = 0; // limit number of testimonials we pull from database if ($testimonial_count > TESTIMONIALS_LIMIT) $testimonial_count = TESTIMONIALS_LIMIT; $testimonials_list = '<table border="0" width="100%" cellspacing="0" cellpadding="1">'; while ($rows != $testimonial_count) { $rows++; /*** Begin Scrolling Customer Testimonials v1.1 ***/ // check language display preference if (TESTIMONIAL_LANG_PREF == "User Language Only") { // pick only a localized testimonial? // pick one randomly $random_testimonial = tep_random_select("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE status = 1 AND language_id = $languages_id ORDER BY rand() LIMIT 1"); } else { // else pick one out of all testimonials for all languages $random_testimonial = tep_random_select("select * FROM " . TABLE_CUSTOMER_TESTIMONIALS . " WHERE status = 1 ORDER BY rand() LIMIT 1"); } /*** End Scrolling Customer Testimonials v1.1 ***/ // draw the text $testimonials_list .= '<tr><td class="infoBoxContents" valign="top" align="left">'; $testimonial = strip_tags($random_testimonial['testimonials_html_text']); $testimonial_titulo = $random_testimonial['testimonials_title']; $testimonials_list .= '<center><b>' . $testimonial_titulo . '</center></b><br>' . (strlen($testimonial) > 100 ? substr($testimonial,0,100) . ' ...': $testimonial) . '<br /><br /><a href="' . tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS, tep_get_all_get_params(array('language', 'currency')) .'testimonial_id=' . $random_testimonial['testimonials_id']) . '"><span><center>' . TEXT_READ_MORE . '</center></span></a><br><span><center><b> By '.$random_testimonial['testimonials_name'].'</b></center></span><br><br>'; $testimonials_list .= '</td></tr>'; } $testimonials_list .= '</table>'; $info_box_contents = array(); $info_box_contents[] = array('text' => '<div id="marquee" class="marquee_hide"><MARQUEE behavior= "scroll" align= "center" direction= "'.TESTIMONIAL_SCROLL_DIR.'" height="'.TESTIMONIAL_SCROLL_HEIGHT.'" scrollamount= "2" scrolldelay= "'.TESTIMONIAL_SCROLL_DELAY.'" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>'.$testimonials_list.'</MARQUEE></div>'.$testimonial_write_link); ?> <!-- Make sure we don't interrupt any other onLoad event --> <!-- Load event handler by Peter-Paul Koch --> <script type="text/javascript"> function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(function() { document.getElementById('marquee').className='marquee_show'; }); </script> <?php } // *** // *** End scrolling // *** } // jump here if there were no testimonials new infoBox($info_box_contents); ?> </td> </tr> <?php // if Customer Testimonials disabled, drop out here } ?> Not sure how to tell it not to get too big :huh: Getting the Phoenix off the ground
Recommended Posts
Archived
This topic is now archived and is closed to further replies.