Jump to content

aHfUi

Members
  • Content count

    44
  • Joined

  • Last visited

Everything posted by aHfUi

  1. Hi all, I meet the problem to edit includes/functions/html_output.php This is because i install the Page Cache before And i dun know how to combine this 2 contibution. Anyone minds to should the includes/functions/html_output.php if you are install this 2 contribution ? Or how should i edit it ? Thanks you.
  2. Hi there. Any patch to upgrade to latest version of this contribution ? Thanks you.
  3. aHfUi

    movie details warnings

    Thanks ledave, i will try it :P DeadDingo, i thinks it is normal. Because i meet the problem too. what i do is update the products detail, look like select the language for it. Then the error msg won't come out again.
  4. aHfUi

    movie details warnings

    Ledave, thanks again !! html tage cannot function between <?php and ?>, right ? And this is my movie_detail.php <script> <!-- wmtt = null; document.onmousemove = updateWMTT; function updateWMTT(e) { x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX; y = (document.all) ? window.event.y + document.body.scrollTop : e.pageY; if (wmtt != null) { wmtt.style.left = (x + 20) + "px"; wmtt.style.top = (y + 20) + "px"; } } function showWMTT(id) { wmtt = document.getElementById(id); wmtt.style.display = "block" } function hideWMTT() { wmtt.style.display = "none"; } //--> </script> <style> .tooltip { position: absolute; display: none; background-color: #E4E4E4; } </style> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" colspan="2"><?php echo (isset($movie_details['movie_disc_num']) && $movie_details['movie_disc_num'] != 0) ?TEXT_MOVIE_DETAILS; ?></td> </tr> <tr> <td class="main" colspan="2"> <?php $director_query = tep_db_query("select mp.people_id, mp.director, mp.picture from " . TABLE_MOVIES_PEOPLE . " mp natural join " . TABLE_MOVIES_INFO . " mi where mi.people_id = mp.people_id and mi.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and mp.director != ''"); $director = tep_db_fetch_array($director_query); $id = $director['people_id']; echo (isset($director['director']) ? TEXT_DIRECTOR . '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'people=' . $director['people_id']) . '" onMouseOver="showWMTT('. $id .')" onMouseOut="hideWMTT()" alt="' . TEXT_SEE_ALL_MOVIES . $director['director'] . '" title="' . TEXT_SEE_ALL_MOVIES . $director['director'] . '">' . $director['director'] . '</a><br>' : ''); echo '<div class="tooltip" id="'.$id.'"><img src="' . DIR_WS_IMAGES . $director['picture'] . '" /></div>'; $actor_query = tep_db_query("select mp.people_id, mp.actor, mp.picture from " . TABLE_MOVIES_PEOPLE . " mp natural join " . TABLE_MOVIES_INFO . " mi where mi.people_id = mp.people_id and mi.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and mp.actor != '' order by mi.movies_info_id"); if (tep_db_num_rows($actor_query) > 0){ echo TEXT_ACTOR; $coma = 1; while ($actor = tep_db_fetch_array($actor_query)){ echo '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'people=' . $actor['people_id']) . '" onMouseOver="showWMTT('. $actor['people_id'] .')" onMouseOut="hideWMTT()" alt="' . TEXT_SEE_ALL_MOVIES . $actor['actor'] . '" title="' . TEXT_SEE_ALL_MOVIES . $actor['actor'] . '">' . $actor['actor'] . '</a>' . (($coma < tep_db_num_rows($actor_query)) ? ', ' : ''); echo '<div class="tooltip" id="'.$actor['people_id'].'"><img src="' . DIR_WS_IMAGES . $actor['picture'] . '" /></div>'; $coma++; } echo '<br>'; } $movie_parent_query = tep_db_query("select distinct miv.movies_info_parent_id from " . TABLE_MOVIES_INFO_VALUE . " miv, " . TABLE_MOVIES_INFO . " mi where miv.movies_info_value_id = mi.movies_info_value_id and mi.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and miv.language_id = '" . (int)$languages_id . "' order by miv.movies_info_parent_id"); while ($movie_parent = tep_db_fetch_array($movie_parent_query)){ $coma = 1; $movies_info_parent_query = tep_db_query("select movies_info_value from " . TABLE_MOVIES_INFO_VALUE . " where movies_info_value_id = '" .$movie_parent['movies_info_parent_id'] . "' and language_id = '" . (int)$languages_id . "'"); $movies_info_parent = tep_db_fetch_array($movies_info_parent_query); echo ucfirst($movies_info_parent['movies_info_value']) . ': '; $movie_info_values_query = tep_db_query("select miv.movies_info_value from " . TABLE_MOVIES_INFO_VALUE . " miv, " . TABLE_MOVIES_INFO . " mi where miv.movies_info_parent_id = '" . $movie_parent['movies_info_parent_id'] . "' and mi.movies_info_value_id = miv.movies_info_value_id and mi.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and miv.language_id = '" . (int)$languages_id . "' order by mi.movies_info_value_id"); while ($movie_info_value = tep_db_fetch_array($movie_info_values_query)){ echo ucfirst($movie_info_value['movies_info_value']) . (($coma < tep_db_num_rows($movie_info_values_query)) ? ', ' : ''); $coma++; } echo '<br>'; } $movie_details_query = tep_db_query("select movie_reg_cod, movie_length from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $movie_details = tep_db_fetch_array($movie_details_query); $region_codes[] = array('id' => '1', 'text' => '1'); $region_codes[] = array('id' => '2', 'text' => '2'); $region_codes[] = array('id' => '3', 'text' => '3'); $region_codes[] = array('id' => '4', 'text' => '4'); $region_codes[] = array('id' => '5', 'text' => '5'); $region_codes[] = array('id' => '6', 'text' => '6'); $region_codes[] = array('id' => '7', 'text' => 'All'); echo (($movie_details['movie_reg_cod']) != '0') ? TEXT_REG_COD . $region_codes[$movie_details['movie_reg_cod']-1]['text'] . '<br>' : ''; echo (isset($movie_details['movie_length']) && $movie_details['movie_length'] != 0) ? TEXT_MOVIE_LENGTH . $movie_details['movie_length'] . ' min'. '<br>': ''; echo (isset($movie_details['movie_disc_num']) && $movie_details['movie_disc_num'] != 0) ? TEXT_MOVIE_DISC_NUM . $movie_details['movie_disc_num'] : ''; ?> </td> </tr> </table>
  5. aHfUi

    movie details warnings

    Thanks you, ledave !!! Now database can store value for disc number :P But it not display at the product pages =.=" Like this :- http://shopping.forum-talk.com/diehardwith...eance-p-12.html And how can i change the location as the picture below ? http://img222.imageshack.us/img222/341/1sv0.jpg I try to move the code below:- <p><?php echo stripslashes($product_info['products_description']); ?></p> after <?php //begin of movie details $movie_details_query = tep_db_query("select count(*) as movie_details from " . TABLE_MOVIES_INFO . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($movie_details_query) > 0){ include(DIR_WS_MODULES . FILENAME_MOVIE_DETAILS); } //end of movie details $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> But the description part will missing ....
  6. aHfUi

    movie details warnings

    Thanks you. I understand and i already do it for myself This is the zip file from what i edit before : http://shopping.forum-talk.com/movie_detail.rar And i found the database filed do not record any value after update the products. Can you help me check what mistake i made ? catalog/includes/modules/movies_info.php This should be catalog/includes/modules/movies_detail.php =.=" Thanks you :thumbsup:
  7. aHfUi

    family 3.0 problems

    Get it =.=" i miss to read the text file ...
  8. My image magic cannot function ... i already uninstall it :blush: sorry, i cannot give the help to u ..
  9. aHfUi

    movie details warnings

    Hahahahha I get it now, thanks you very much :P Ledave, if i need to add the extra field for "disc number" which look like the "movie lenght" Can you show me step by step @@? this is because i no expert for php and what i do before is copy and paste only .. I already edit it, but fail .... or i show to you related edited file ?
  10. Lathyrus, You set the folder "IMAGES" to capital letter or just "images" ?
  11. aHfUi

    family 3.0 problems

    Anybody can get the SQL file in Family Products 3.4 ? i fail to find the SQL file ... Who can give it to me .... :'(
  12. Really thanks to pixclinic to spend the time for me Thanks you very much !!!! If i disable the imagemagic .. the images will show out ...
  13. I enable it before, now already set to "no" I never edit the file before. I just copy and upload it to server. This is the file :- http://shopping.forum-talk.com/imagemagic.zip Btw, thanks you very much to pixclinic. Thanks for the fast response. thanks you very much :P
  14. Pixclinic, thanks for the information :P if likes that, i won't take the risk to do it ... because i dun know php language .. what i do is follow the insuction to edit ..
  15. Pixclinic, thanks for your reply :P and this is the url:- http://shopping.forum-talk.com/imagemagic....&page=popup but this is what i get :- Warning: mkdir(home) [function.mkdir]: Permission denied in /home/tn728202/public_html/shopping/imagemagic.php on line 379 Warning: Cannot modify header information - headers already sent by (output started at /home/tn728202/public_html/shopping/imagemagic.php:379) in /home/tn728202/public_html/shopping/imagemagic.php on line 492 Warning: Cannot modify header information - headers already sent by (output started at /home/tn728202/public_html/shopping/imagemagic.php:379) in /home/tn728202/public_html/shopping/imagemagic.php on line 493 Warning: Cannot modify header information - headers already sent by (output started at /home/tn728202/public_html/shopping/imagemagic.php:379) in /home/tn728202/public_html/shopping/imagemagic.php on line 494 Warning: Cannot modify header information - headers already sent by (output started at /home/tn728202/public_html/shopping/imagemagic.php:379) in /home/tn728202/public_html/shopping/imagemagic.php on line 495 Warning: Cannot modify header information - headers already sent by (output started at /home/tn728202/public_html/shopping/imagemagic.php:379) in /home/tn728202/public_html/shopping/imagemagic.php on line 496 Warning: Cannot modify header information - headers already sent by (output started at /home/tn728202/public_html/shopping/imagemagic.php:379) in /home/tn728202/public_html/shopping/imagemagic.php on line 497
  16. Hi there. After install the contribution, all the products images won't display .. Anybody meet the problem before ?
  17. Hello, Can i use this contribution with movie detail ? Thanks you.
  18. aHfUi

    movie details warnings

    ledave, thanks for the contribution I really need it. But i dun know how to edit catalog/advance_search.php And this is my advance_search.php <?php /* $Id: advanced_search.php,v 1.50 2003/06/05 23:25:46 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH); $breadcrumb->add(NAvb script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a>'; ?></td> <td class="smallText" align="right"><?php echo tep_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="fieldKey"><?php echo ENTRY_CATEGORIES; ?></td> <td class="fieldValue"><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?></td> </tr> <tr> <td class="fieldKey"> </td> <td class="smallText"><?php echo tep_draw_checkbox_field('inc_subcat', '1', true) . ' ' . ENTRY_INCLUDE_SUBCATEGORIES; ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_MANUFACTURERS; ?></td> <td class="fieldValue"><?php echo tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_PRICE_FROM; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('pfrom'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_PRICE_TO; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('pto'); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_DATE_FROM; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_DATE_TO; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> I cannot get the if ( (isset($HTTP_GET_VARS['keywords']) && empty($HTTP_GET_VARS['keywords'])) && (isset($HTTP_GET_VARS['dfrom']) && (empty($HTTP_GET_VARS['dfrom']) || ($HTTP_GET_VARS['dfrom'] == DOB_FORMAT_STRING))) && (isset($HTTP_GET_VARS['dto']) && (empty($HTTP_GET_VARS['dto']) || ($HTTP_GET_VARS['dto'] == DOB_FORMAT_STRING))) && (isset($HTTP_GET_VARS['pfrom']) && !is_numeric($HTTP_GET_VARS['pfrom'])) && (isset($HTTP_GET_VARS['pto']) && !is_numeric($HTTP_GET_VARS['pto'])) ) {
  19. Finally, i get the solution ... This is from what chemo posted before Special to who install page cache and Optimization of tep_get_tax_rate // tax class require('includes/classes/tax.php'); $osC_Tax = new osC_Tax; /*--------------------------------------------------------*\ # Page cache contribution - by Chemo # Define the pages to be cached in the $cache_pages array \*--------------------------------------------------------*/ $cache_pages = array('index.php', 'product_info.php', 'conditions.php', 'contact_us.php', 'privacy.php'); #$cache_pages = array('index.php'); if (!tep_session_is_registered('customer_id') && ENABLE_PAGE_CACHE == 'true') { # Start the output buffer for the shopping cart ob_start(); require(DIR_WS_BOXES . 'shopping_cart.php'); $cart_cache = ob_get_clean(); # End the output buffer for cart and save as $cart_cache string # Loop through the $cache_pages array and start caching if found foreach ($cache_pages as $index => $page){ if ( strpos($_SERVER['PHP_SELF'], $page) ){ include_once(DIR_WS_CLASSES . 'page_cache.php'); $page_cache = new page_cache($cart_cache); # The cache timelife can be set globally in the settings # Example below sets it for 60 minutes # $page_cache->cache_this_page(60); $page_cache->cache_this_page(); } # End if } # End foreach } # End if *Information is come from: http://forums.oscommerce.com/lofiversion/i...hp/t119114.html
  20. Shopping Cart more Fatal error: Call to a member function on a non-object in /home/XXXX/public_html/shopping/includes/functions/general.php on line 310 Hi all, I found this error msg when i click " add to cart" button ... And this is insuction for line 310 of general.php (red color part) //// // Returns the tax rate for a zone / class // TABLES: tax_rates, zones_to_geo_zones function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) { global $customer_zone_id, $customer_country_id, $osC_Tax; [color=#FF0000]return $osC_Tax->getTaxRate($class_id, $country_id, $zone_id);[/color] } //// // Return the tax description for a zone / class // TABLES: tax_rates; function tep_get_tax_description($class_id, $country_id, $zone_id) { global $osC_Tax; return $osC_Tax->getTaxRateDescription($class_id, $country_id, $zone_id); } Anybody can help me check what wrong i doing @@?
  21. aHfUi

    OSC-Affiliate

    then mean i should change all the 900 to another value of the SQL file?
  22. aHfUi

    OSC-Affiliate

    when i upload the SQL file through phpadmin This error msg pop out .. SQL query: INSERT INTO configuration_group VALUES ( 900, 'Affiliate Program', 'Options for the Affiliate Program', 50, 1 ); MySQL said: Documentation #1062 - Duplicate entry '900' for key 1 Then ignores it, and found 1 more error when i click the insert banner 1054 - Unknown column 'affiliate_category_id' in 'field list' insert into affiliate_banners (affiliate_banners_title, affiliate_products_id, affiliate_category_id, affiliate_banners_image, affiliate_banners_group, affiliate_date_added, affiliate_status) values ('dddd', '0', '0', '', '', now(), '1') [TEP STOP] Please help me ... :'(
  23. aHfUi

    Who's Online Enhancement 1.4

    Hi coopco, hi there. I thinks i know what happend already. This is because i not add the related to to the general.php .... btw, thanks you very much @@~ And how u know i install more than 1 contribution :P
  24. aHfUi

    Who's Online Enhancement 1.4

    Thank ed, the problem had been slove but when i click the who's online, i found this :- Fatal error: Call to undefined function: tep_get_ip_address() in /home/tn728202/public_html/shopping/admin/whos_online.php on line 377 i never change the code before. i follow the step in READ ME, copy and paste all the file into correct path .....
  25. aHfUi

    Who's Online Enhancement 1.4

    1054 - Unknown column 'http_referer' in 'field list' insert into whos_online (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, http_referer, user_agent) values ('0', 'Guest', '58c4b5c23b13ebc56922334c1ee2c95e', '60.49.79.124', '1148661310', '1148661310', '/', '', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3') [TEP STOP] After install, i get this error message ... i just copy the file and paste to related path .... ANyone meet the problem before? :(
×