Jump to content

dimitryous

Members
  • Content count

    22
  • Joined

  • Last visited

Everything posted by dimitryous

  1. has not set their status

  2. and in mobile/account.php comment this line : include(DIR_MOBILE_CLASSES . 'account_js.php'); in mobile/includes/header and in mobile/includes/iheader replace <title><?=TITLE?></title> by <title><?php echo TITLE; ?></title> Thanks for all bumba this is a great contribution ... I will try to include imageMagick into your code ...
  3. Hi Senore! The #root after whatever url around the web ( http://your_domain_dot_com/sub_domain/my_code.php#root )is just asking your browser to go to a reference called "root" in your web page. If this "anchor" (namely "root") exist, the browser load the entire page and step back to the point where the anchor is located. If the reference does not exist, just too bad, nothing happens!!! and you get your web page. Basic. It is not a question of provider, it is question of browser. What browser are u using by the way?
  4. Many thanks, but still a blank page. The application bump out just before opening the 4th line of "http://www.mysite.com/iphone_catalog/mobile/includes/application_top.php" i.e. require('../includes/application_top.php'); //@TODO need to findout why it's missing $SID for cURL ... Just before this 4th line I put echo 'DIR_MAIN_HTTP_CATALOG= ' . DIR_MAIN_HTTP_CATALOG; and I get the correct result : DIR_MAIN_HTTP_CATALOG= /iphone_catalog/ I just do'nt understand as this is a fresh 2.2rca2 install ... php 5.2.9 running on winXP with mySQL 5.0.27-community-nt and Apache/2.2.3 (Win32) PHP/5.2.9 Stange enough because http://www.mysite.com/iphone_catalog/index.php and related stuff is working perfectly ! Thanks for your advice on how to progress solving my setup ( the problem is that I ca'nt debug on this damn 4th line ...) p.s. same diag with login.php or mobile.php or products.php ... the app is blocked by "require('../includes/application_top.php');" as I get my echo correctly ... I know that I ca'nt bypass first level application_top.php ...
  5. ... define('DIR_MAIN_HTTP_CATALOG', '/iphone_catalog/'); define('DIR_WS_HTTP_CATALOG', 'iphone_catalog/mobile/'); define('DIR_WS_HTTPS_CATALOG', 'iphone_catalog/mobile/'); do'nt work either ...
  6. I'm a little bit late but I installed your contribution on a fresh install of osC v2.2rc2a : no additions. I get a 17" full screen size blank page ... After few hours looking at the code I need help !!! http://***_***/iphone_catalog/ works OK sub_directory of /iphone_catalog/ is /mobile/ (ftp'ed the whole stuff) after modification of the first line of /mobile/configure.php is : define('DIR_MAIN_HTTP_CATALOG', '/iphone_catalog/'); define('DIR_WS_HTTP_CATALOG', '/mobile/'); define('DIR_WS_HTTPS_CATALOG', '/mobile/'); define('DIR_WS_IMAGES', '../images/'); define('DIR_WS_INCLUDES', '../includes/'); define('DIR_MOBILE_IMAGES', 'images/'); define('DIR_MOBILE_INCLUDES', 'includes/'); define('DIR_MOBILE_MODULES', DIR_MOBILE_INCLUDES . 'modules/'); define('DIR_MOBILE_CLASSES', DIR_MOBILE_INCLUDES . 'classes/'); define('DIR_MOBILE_HEADERS', DIR_MOBILE_INCLUDES . 'headers/'); define('DIR_MOBILE_LANGUAGES', 'includes/languages/'); ... I just spotted that the application stopped just before loading the 4th line of /mobile/includes/application_top.php i.e. ... require('../includes/application_top.php'); ... Help would be much appreciated !
  7. dimitryous

    [Contribution] Auction Module

    @JangoF: I did printed the whole stuff in a .pdf file. My post was not a contribution to this topic, rather to relay my own experience trying to solve problems. I do'nt feel sorry. dimitryous.
  8. dimitryous

    [Contribution] Auction Module

    @Jango : Sorry, I will do it but sometimes I forget it. 1 - on my test site: amazing the engine is accepting lower bid than the one on the top of the bidding list. This is true for anybody logged-in and bidding. 2 - if I login and make a new bid (higher than my precedent bid) the bidding list always show a date/time "0000-00-00 00:00:00" 3 - the only case where the date/time is correct is for a brand new bidder (logged-in of course) 4 - in the admin part, if I change the end date with the calendar and click on "update" button, the date/time is reset to "0000-00-00 00:00:00". I have to phpMyAdmin the record to get it back to a correct value in the future. 5 - it does not seem the javascript engine is very synchronized with my computer clock: few minutes after the deadline (3-5) the counter is still running... 6 - the "Terms and conditions" link is not functionnal 7 - the overbid feature is not functionnal either 8 - I try to figure out why with my debugger... Strange enough... dimitryous
  9. dimitryous

    [Contribution] Auction Module

    Hello @csaba : if you want some help, give us always the complete path of the file generating the error: " catalog/someFolder/someSubFolderIfNeeded/someFile.php " and few lines before and after the said line. No chance otherwise. dimitryous
  10. dimitryous

    [Contribution] Auction Module

    Errors everywhere: 1146 - Table 'techinfoline_com_b2b.TABLE_AUCTIONS' doesn't exist SELECT auctions_id from TABLE_AUCTIONS WHERE products_id =28; [TEP STOP]
  11. dimitryous

    [Contribution] Auction Module

    Hi bbbig! I just tried to register but got the following at the bottom of the screen: 1146 - Table 'techinfoline_com_b2b.visual_verify_code' doesn't exist DELETE FROM visual_verify_code WHERE oscsid='b534d661e46e89dd65125b198aa55f51' [TEP STOP] Do I need an visual code to register? 040777 at edelphy dot com Keep on the good work. dimitryous
  12. Hi all, Did anybody succeed to incorporate a pure Java Applet in the " /includes/header.php and/or /includes/footer.php " of his catalog? I din't succeed due to a path problem... I have a pure java applet to output a small slideshow... TIA
  13. dimitryous

    [Contribution] Auction Module

    Hello, I got all the stuff working fine now. It was a little bit difficult because of the use of order editor contribution I finally conclude that ( at least in my case ) : 1- admin is requested to place a manual order for the winner of the auction: an e-mail is sent to the winner 2- the winner is invited to log-in and complete his order Is the above correct? Thank you.
  14. dimitryous

    [Contribution] Auction Module

    I printed this entire topic to get a .pdf file, performed a global search of " edit_orders ": no result.
  15. dimitryous

    [Contribution] Auction Module

    Hello, Thanks a lot but I still miss something: 404 File Not Found " The requested URL /catalog/admin/edit_orders.php was not found on this server. " I'm a little bit confused to disturb you but would like my stuff to work. TIA
  16. dimitryous

    [Contribution] Auction Module

    ( see page 7 of this topic ) Hello, I just installed the above contribution but I get the following error: 404 Not Found The requested URL /catalog/admin/FILENAME_ORDERS_EDIT was not found on this server. FILENAME_ORDERS_EDIT = " some_code.php " not being defined in " /catalog/admin/includes/filenames.php " file... This is due to line 154 tep_redirect(tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $insert_id, 'SSL')); in " /catalog/admin/create_order_process.php " near the end of the file... Did I miss to download/upload a file? Some help, please otherwise all collapse. TIA
  17. dimitryous

    [Contribution] Auction Module

    Thank you much for your code: ok. I tried an " advanced search " and believe that advanced_search.php file need some modifications: I will try to pin-point where more exactly because the results may lead to confuse users (products are either " auctions products " or " regular products "). The result - if orphan ( I mean only one product coming out of the search ) - should presents the relevant screen. Thanks and keep on the good work. _______________________________ L'esprit anime la main qui guide l'outil.
  18. dimitryous

    [Contribution] Auction Module

    Hello, I did'nt suceed to get latest_aution.php... Someone has the code somewhere? Thanks. dimitryous.
  19. dimitryous

    [Contribution] Auction Module

    Hello, May be this could help you to get the stuff working: I performed some cosmetic in " catalog/includes/modules/auction_bids.php " (in order to add/remove colums). <?php /* $Id: auctions_bids.php,v 1.4 2007/06/18 08:11:33 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- beg /includes/modules/auctions_bids.php --> <tr> <td> <!-- beg of table_1 --> <table width="686"> <tr> <td width="278"> <!-- bof added by jobonline2001@yahoo.com for auction product contribution --> <?php if ($auction_product) { $auction_query = tep_db_query("select auctions_starting_price, expires_date, overbid_amount from " . TABLE_AUCTIONS_PRODUCTS . " where products_id = '" . $product_info['products_id']. "' and status = '1' "); $auction_infor = tep_db_fetch_array($auction_query); //$datetime_count_down = strtotime($auction_infor['expires_date'])-time(); $datetime_count_down = tep_date_count_down($auction_infor['expires_date']); $thours = AUCTION_END_TIMEOFFSET; ?> <script language="Javascript"> function termWindow() { window.open ("auction_terms.php"); } </script> <!-- beg of table_2 --> <table class="infoBox"> <tr> <td width="239" class="infoBoxContents"><?php echo TEXT_AUCTION_PRICE . ' ' . $products_price; ?></td> </tr> <tr> <td class="infoBoxContents"><?php echo TEXT_EXPIRED_DATE . ' ' . $auction_infor['expires_date']; ?> <br /> (<b><span id="countdown_date" > </span></b> <?php echo TEXT_DATETIME_LEFT; ?>) </td> </tr> <tr> <td class="infoBoxContents"><?php echo TEXT_OVERBID_AMOUNT . ' ' . $currencies->display_price($auction_infor['overbid_amount'], tep_get_tax_rate($product_info['products_tax_class_id'])); ?></td> </tr> </table> <!-- end of table_2 --> <?php } // end if ($auction_product) else { echo $products_price; } // end else if ?> <!-- eof added by jobonline2001@yahoo.com for auction product contribution --> </td> <td width="396"> <!-- bof added by jobonline2001@yahoo.com for auction product contribution --> <?php // If auction has expired $mfo_auction_query = mysql_fetch_object(tep_db_query("select auctions_starting_price, expires_date, overbid_amount from " . TABLE_AUCTIONS_PRODUCTS . " where products_id = '" . $product_info['products_id']. "' and status = '1' ")); if (strtotime($mfo_auction_query->expires_date)<time()) { echo tep_end_auction_valid(); } elseif ( $auction_product ) { // Not sure, but probably similar to - If auction has not expired ?> <!-- beg of form --> <?php echo tep_draw_form('auction_bid',tep_href_link(FILENAME_PRODUCT_INFO),'post', 'onsubmit="return check_agree(this);"'); ?> <input type="hidden" name="placebid" value="true" id="placebid" /> <input type="hidden" name="auction_id" id="auction_id" value="<?php echo $auction_id; ?>" /> <input type="hidden" name="products_id" value="<?php echo (int)$HTTP_GET_VARS['products_id']; ?>" id="products_id" /> <!-- beg of table_3 --> <table> <tr> <td class="main" colspan="2"><?php echo TEXT_BID_PRICE . ' ' . tep_draw_input_field('bid_price', $bid_price);?></td> </tr> <tr> <td class="main"><a href="java script:void(0);" onclick="NewWindow('<?php echo tep_href_link(FILENAME_AUCTION_TERMS); ?>','auction_terms','400','300','yes');return false"><?php echo CONDITIONS; ?>:</a></td> <td onclick="window.document.auction_bid.agree.checked = !window.document.auction_bid.agree.checked;" align="right" width="20px"><?php echo tep_draw_checkbox_field('agree','true', false, 'onclick="window.document.auction_bid.agree.checked = !window.document.auction_bid.agree.checked;"'); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_image_submit('placebid.gif', IMAGE_BUTTON_PLACEBID); ?></td> </tr> </table> <!-- end of table_3 --> </form> <!-- end of form --> </td> <?php } // end elseif ( $auction_product ) ?> <!-- eof added by jobonline2001@yahoo.com for auction product contribution --> </td> </tr> </table> </td> </tr> <!-- beg auction_bid_list --> <tr> <td class="main"><b><?php echo TEXT_AUCTIONS_BID_LIST; ?></b></td> </tr> <tr> <td> <!-- beg of table_4 --> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2" > <tr class="productListing-heading" > <td class="productListing-heading"><?php echo TABLE_HEADING_NUMBER; ?></td> <td class="productListing-heading"><?php echo TABLE_HEADING_CUSTOMERS; ?></td> <td class="productListing-heading" align="center"><?php echo TABLE_HEADING_BID_PRICE; ?> </td> <td class="productListing-heading"><?php echo TABLE_HEADING_BID_DATE_ADDED; ?></td> <td class="productListing-heading" align="center"> </td> </tr> <?php if (isset($HTTP_GET_VARS['page']) && ($HTTP_GET_VARS['page'] > 1)) $rows = $HTTP_GET_VARS['page'] * MAX_DISPLAY_SEARCH_RESULTS - MAX_DISPLAY_SEARCH_RESULTS; $products_query_raw = "select concat(c.customers_firstname, c.customers_lastname) as customers_name, c.customers_id, ab.bid_price, ab.bid_status, ab.bid_date_added from ".TABLE_CUSTOMERS." c, ".TABLE_AUCTIONS_BIDS.' ab,'.TABLE_AUCTIONS_PRODUCTS.' ap where c.customers_id = ab.customers_id and ab.auctions_id=ap.auctions_id and ab.auctions_id='.$auction_id.' order by bid_price DESC '; $rows = 0; $products_query = tep_db_query($products_query_raw); while ($products = tep_db_fetch_array($products_query)) { $rows++; if (strlen($rows) < 2) { $rows = '0' . $rows; } ?> <tr class="productListing-data" > <td class="productListing-data"><?php echo $rows; ?>.</td> <td class="productListing-data"><?php echo $products['customers_id']; ?></td> <td class="productListing-data" align="center"><?php echo $currencies->display_price($products['bid_price'], tep_get_tax_rate($products['products_tax_class_id']) ); ?> </td> <td class="productListing-data"><?php echo $products['bid_date_added']; ?></td> <td> <?php if ($products['bid_status']=='won') { echo tep_image(DIR_WS_ICONS.'auctionwon.gif',IMAGE_BUTTON_AUCTION_WON); }?> </td> </tr> <?php } // end while ?> </table> <!-- end of table_4 --> </td> </tr> </table> <!-- end of table_1 --> </td> </tr> <!-- end auction_bid_list --> <script type="text/javascript"> // beg TZCountDown // // **** Time Zone Count Down Javascript **** // /* Visit http://rainbow.arch.scriptmania.com/scripts/ for this script and many more */ ////////// CONFIGURE THE COUNTDOWN SCRIPT HERE ////////////////// // $datetime_count_down calculated by /includes/functions/general.php tep_date_count_down var month = '<?php echo $datetime_count_down['1']; ?>' // '*' for next month, '0' for this month or 1 through 12 for the month var day = '<?php echo "+".$datetime_count_down['2']; ?>'; // Offset for day of month day or + day var hour = '<?php echo $datetime_count_down['3']; ?>'; // 0 through 23 for the hours of the day var tz = 0; // Offset for your timezone in hours from UTC var lab = 'countdown_date'; // The id of the page entry where the timezone countdown is to show function start() {displayTZCountDown(setTZCountDown(month,day,hour,tz),lab);} // ** The start function can be changed if required ** window.onload = start(); ////////// DO NOT EDIT PAST THIS LINE ////////////////// function setTZCountDown(month,day,hour,tz) { var toDate = new Date(); if (month == '*')toDate.setMonth(toDate.getMonth() + 1); else if (month > 0) { if (month <= toDate.getMonth())toDate.setYear(toDate.getYear() + 1); toDate.setMonth(month-1); } if (day.substr(0,1) == '+') { var day1 = parseInt(day.substr(1)); toDate.setDate(toDate.getDate()+day1-1); } else { toDate.setDate(day); } toDate.setHours(0); toDate.setMinutes(0-(tz*60)); toDate.setSeconds(0); var fromDate = new Date(); //fromDate.setMinutes(fromDate.getMinutes()); var diffDate = new Date(0); diffDate.setMilliseconds(toDate - fromDate); return Math.floor(diffDate.valueOf()/1000); } function displayTZCountDown(countdown,tzcd) { if (countdown < 0) document.getElementById(tzcd).innerHTML = "Sorry, you are too late."; else { var secs = countdown % 60; if (secs < 10) secs = '0'+secs; var countdown1 = (countdown - secs) / 60; var mins = countdown1 % 60; if (mins < 10) mins = '0'+mins; countdown1 = (countdown1 - mins) / 60; var hours = countdown1 % 24; var days = (countdown1 - hours) / 24; document.getElementById(tzcd).innerHTML = days + " <?php echo COUNTDOWN_DAYS; ?> " + (days == 1 ? '' : '<?php echo COUNTDOWN_SECS; ?>') + ' ' +hours+ '<?php echo COUNTDOWN_HOURS; ?>'+' : ' +mins+ '<?php echo COUNTDOWN_MINS; ?> : '+secs+'<?php echo COUNTDOWN_SECS;?>'; setTimeout('displayTZCountDown('+(countdown-1)+',\''+tzcd+'\');',999); } } // end TZCountDown // </script> <!-- eof added by jobonline2001@yahoo.com for auction product contribution --> <!-- end /includes/modules/auctions_bids.php --> You should also check the functions in general.php ($datetime_count_down calculated by /includes/functions/general.php tep_date_count_down above) Read your install.txt carefully. If the problem is still there, it may be located in product_info.php ( tricky stuff ). Visit My dummy development Website dimitryous
  20. dimitryous

    [Contribution] Auction Module

    Looking at your code I had the same approach. My question is now to make the " Terms & Conditions: " radio button working. I succeed the countdown to be functionnal! Wouf. Still looking to get the " You won " message. But I do not know the exact conditions to get it ... Keep on the good work.
  21. dimitryous

    [Contribution] Auction Module

    Hello all, I just finished implementation of auction v_1.4.3 on my local test machine. ( http://192.168.0.1:8180/maloum/ ) Admin part is OK Catalog side: - I'm able to place a bid - I see the bidding list but the countdown does not appear on the screen and the content of the table is: Auction price: 10.00EUR Expired Date: 2007-06-23 00:00:00 ( left) Overbid Amount: 1.00EUR I had a look to the contribution http://forums.oscommerce.com/index.php?sho...5920&st=140 but didn't succeed getting my stuff working properly. Looking at auction_bids.php the javascript engine located at the end of this file does not start. ? Is there a way to "debug" this part of the javascript code i.e. to echo variables values ? Frustrating because I have no error messages... Thank you much.
×