Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

aHfUi

Archived
  • Posts

    44
  • Joined

  • Last visited

Profile Information

  • Real Name
    aHfUi

aHfUi's Achievements

  1. Hi there. Any patch to upgrade to latest version of this contribution ? Thanks you.
  2. 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.
  3. 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>
  4. 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 ....
  5. 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:
  6. Get it =.=" i miss to read the text file ...
  7. My image magic cannot function ... i already uninstall it :blush: sorry, i cannot give the help to u ..
  8. 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 ?
  9. Lathyrus, You set the folder "IMAGES" to capital letter or just "images" ?
  10. Anybody can get the SQL file in Family Products 3.4 ? i fail to find the SQL file ... Who can give it to me .... :'(
  11. Really thanks to pixclinic to spend the time for me Thanks you very much !!!! If i disable the imagemagic .. the images will show out ...
  12. 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
  13. 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 ..
  14. 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
  15. Hi there. After install the contribution, all the products images won't display .. Anybody meet the problem before ?
×
×
  • Create New...