Jump to content

MYC267

♥Ambassador
  • Content count

    475
  • Joined

  • Last visited

1 Follower

About MYC267

  • Birthday 09/21/1978

Profile Information

  1. MYC267

    Advertisement-Box on "External Site"

    I actually built this exact thing for our business and we display ads on other sites using this technology. The ads can have products in them or whatever we want. We call them "Shoplets".
  2. has made many chanes to ModYourCar.com - check it out!

  3. Your osCommerce work with Mod Your Car is very impressive. Keep up the good work. I would love to see some of your work become contributions because I work part time at a shop and am building a site for them.

  4. MYC267

    Express Checkout

    I am revamping our web site and am looking at streamlining the checkout process to take out an extra step. Basically what I am doing is combining the SHIPPING and PAYMENT screen into one which I call 'Delivery and Payment Information'. It's a little tricky and to save me some time I was wondering if anyone has done this and if so could I get some help. I looked in the contribs but didn't find anything. Any help appreciated!
  5. MYC267

    Who's Online Enhancement 1.4

    Let me know how you go.... I Know its long winded but it was the easiest say to do it really.
  6. MYC267

    Who's Online Enhancement 1.4

    So have you made any progress on this?
  7. MYC267

    Who's Online Enhancement 1.4

    I am not reluctant to share info on the whos online... not at all. I just figured once you had that "skeleton" you could figure the rest out, its not that hard. The only issue is I have modded my site so hard that most of it wont apply to you guys so if I pass it on it wont work anyway. Try some of these: TELL A FRIEND: }elseif (strpos($temp_url_link,'tell_a_friend.php')) { $temp=str_replace('tell_a_friend.php','',$temp_url_link); $temp=str_replace('/?','',$temp); $temp=str_replace('?','',$temp); $parameters=split("&",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]="products_id") { $products_id=$a[1]; } $i++; } $product_query=tep_db_query("select products_name from products_description where products_id='" . $products_id . "' and language_id=1"); $product = tep_db_fetch_array($product_query); $display_link = 'Tell a Friend about '.$product['products_name'].' <I>(Product)</I>'; POPUP IMAGE }elseif (strpos($temp_url_link,'popup_image.php')) { $temp=str_replace('popup_image.php','',$temp_url_link); $temp=str_replace('/?','',$temp); $temp=str_replace('?','',$temp); $parameters=split("&",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]="pID") { $products_id=$a[1]; } $i++; } $product_query=tep_db_query("select products_name from products_description where products_id='" . $products_id . "' and language_id=1"); $product = tep_db_fetch_array($product_query); $display_link = $product['products_name'].' <I>(Popup Img)</I>'; SHOPPING CART }elseif (strpos($temp_url_link,'shopping_cart.php')) { $display_link = '<B>Shopping Cart</B> <I>(Customer Service)</I>'; CATEGORY }elseif (strpos($temp_url_link,'?cPath=')) { $temp=str_replace('index.php?','',$temp_url_link); $temp=str_replace('?','',$temp); $temp=str_replace('/','',$temp); $parameters=split("&",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]=="cPath") { $cat=$a[1]; } $i++; } $parameters=split("_",$cat); //$cat_list=''; $i=0; while($i < count($parameters)) { $category_query=tep_db_query("select categories_name from categories_description where categories_id='" . $parameters[$i] . "' and language_id=1"); $category = tep_db_fetch_array($category_query); if ($i>0) { $cat_list.=' / '.$category['categories_name']; } else { $cat_list=$category['categories_name']; } $i++; } $display_link = $cat_list.' <I>(Category)</I>'; OTHER STUFF }elseif (strpos($temp_url_link,'login.php')) { $display_link = 'Customer Log In <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'create_profile.php')) { $display_link = '<B>Customer Create Profile</B> <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'checkout_shipping.php')) { $display_link = '<B>Checkout Shipping</B> <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'checkout_payment.php')) { $display_link = '<B>Checkout Payment</B> <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'checkout_confirmation.php')) { $display_link = '<B>Checkout Confirmation</B> <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'checkout_success.php')) { $display_link = '<B><U>Checkout Success</U></B> <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'myc_profile.php')) { $display_link = 'MYC Profile <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'contact_us.php')) { $display_link = 'Contact Us <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'price_match.php')) { $display_link = 'Price Match <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'faq.php')) { $display_link = 'FAQ <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'hot_to_shop.php')) { $display_link = 'How To Shop <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'payments.php')) { $display_link = 'Payments <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'shipping.php')) { $display_link = 'Shipping <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'guarantee.php')) { $display_link = 'Guarantee <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'gv_faq.php')) { $display_link = 'Gift Voucher FAQ <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'pricing.php')) { $display_link = 'Pricing <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'fraud_protection.php')) { $display_link = 'Fraud Protection <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'warranty.php')) { $display_link = 'Warranty/Returns <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'privacy.php')) { $display_link = 'Privacy Agreement <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'customer_testimonials.php')) { $display_link = 'Customer Testimonials <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'reviews.php')) { $display_link = 'Product Reviews <I>(Products)</I>'; }elseif (strpos($temp_url_link,'specials.php')) { $display_link = 'Specials <I>(Products)</I>'; }elseif (strpos($temp_url_link,'advanced_search.php')) { $display_link = 'Advanced Search <I>(Search)</I>'; }elseif (strpos($temp_url_link,'advanced_search_result.php')) { $display_link = 'Advanced Search Results <I>(Search)</I>'; }elseif (strpos($temp_url_link,'profile.php')) { $display_link = 'Customer Profile Overview <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'profile_history_info.php')) { $display_link = 'Customer Order Invoice <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'profile_history.php')) { $display_link = 'Customer Order History <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'profile_edit.php')) { $display_link = 'Customer Profile Edit <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'address_book.php')) { $display_link = 'Customer Address Book <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'address_book_process.php')) { $display_link = 'Customer Address Book Modify <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'profile_newsletters.php')) { $display_link = 'Customer Newsletter Subscriptions <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'profile_password.php')) { $display_link = 'Change Password <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'logoff.php')) { $display_link = 'Customer Log Off <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'login.php')) { $display_link = 'Customer Log In <I>(Customer Service)</I>'; }elseif (strpos($temp_url_link,'staff_garage.php')) { $display_link = 'Staff Garage <I>(Staff Garage)</I>'; }elseif ((strpos($temp_url_link,'rollasx.php'))||(strpos($temp_url_link,'rollasx_'))) { $display_link = 'ROLLA SX <I>(Staff Garage)</I>'; }elseif ((strpos($temp_url_link,'le_rx7.php'))||(strpos($temp_url_link,'le_rx7_'))) { $display_link = 'LE RX7 <I>(Staff Garage)</I>'; }elseif ((strpos($temp_url_link,'loco_dc5.php'))||(strpos($temp_url_link,'loco_dc5_'))) { $display_link = 'MARZZ <I>(Staff Garage)</I>'; }elseif (strpos($temp_url_link,'cookie_usage.php')) { $display_link = 'Cookie Usage (Error)</I>'; }elseif (strpos($temp_url_link,'new_products.php')) { $display_link = 'New Products (Products)</I>'; As you will see even from some of that.... some of it is specific to my site. Rip out what you need though. Its quite long winded but theres no other way of really doing it. You have to determine what page there on by stripping the URL. You could make the whole thing smarter but theres really no point as this does the job.
  8. MYC267

    Who's Online Enhancement 1.4

    Well the main thing you might be interested in is the LAST URL column. Try something like this... After the lines: // WOL 1.6 - Removes osCid from the Last Click URL and the link if ( $osCsid_position = strpos($temp_url_display, "osCsid") ) $temp_url_display = substr_replace($temp_url_display, "", $osCsid_position - 1 ); if ( $osCsid_position = strpos($temp_url_link, "osCsid") ) $temp_url_link = substr_replace($temp_url_link, "", $osCsid_position - 1 ); Add: // Display meaningful link name - Dan - MYC267 if (strpos($temp_url_link,'product_info.php')) { $temp=str_replace('product_info.php','',$temp_url_link); $temp=str_replace('/?','',$temp); $temp=str_replace('?','',$temp); $parameters=split("&",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]="products_id") { $products_id=$a[1]; } $i++; } $product_query=tep_db_query("select products_name from products_description where products_id='" . $products_id . "' and language_id=1"); $product = tep_db_fetch_array($product_query); $display_link = $product['products_name'].' <I>(Product)</I>'; } else { $display_link = $temp_url_display; } then after these lines: <a HREF="<?php echo HTTP_CATALOG_SERVER . $temp_url_link; ?>" target=\"_blank\"> <font color="<?php echo $fg_color; ?>"> <?php Add: echo $display_link; Bascially that will show the product the user is on if they are on the product_info.php page. You should be able to work out how to do the others from there. Let me know!
  9. MYC267

    Who's Online Enhancement 1.4

    Not sure where you guys are at with this but I have done my own tweaking and it looks like this. If you need anything let me know!
  10. MYC267

    Who's Online Enhancement 1.4

    John (Gob), what does your WHOS ONLINE look like? Can you post your code here I'll have a look.
  11. MYC267

    Who's Online Enhancement 1.4

    Also I just noticed your shop is within the /shop/ directory whereas mine sits in the root dir. You might need to strip that out using lines like: $temp=str_replace('shop/','',$temp); Get me?
  12. MYC267

    Who's Online Enhancement 1.4

    That code I gave you is also only for showing PRODUCT_INFO page views and when a customer is browsing a category. My version has a whole lote more that a lot is specific to my site.
  13. MYC267

    Who's Online Enhancement 1.4

    Sorry... try this code: if (strpos($temp_url_link,'product_info.php')) { $temp=str_replace('product_info.php','',$temp_url_link); $temp=str_replace('/?','',$temp); $temp=str_replace('?','',$temp); $parameters=split("&",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]="products_id") { $products_id=$a[1]; } $i++; } $product_query=tep_db_query("select products_name from products_description where products_id='" . $products_id . "' and language_id=1"); $product = tep_db_fetch_array($product_query); $display_link = $product['products_name'].' <I>(Product)</I>'; }elseif (strpos($temp_url_link,'?cPath=')) { $temp=str_replace('index.php?','',$temp_url_link); $temp=str_replace('?','',$temp); $temp=str_replace('/','',$temp); $parameters=split("&",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]=="cPath") { $cat=$a[1]; } $i++; } $parameters=split("_",$cat); //$cat_list=''; $i=0; while($i < count($parameters)) { $category_query=tep_db_query("select categories_name from categories_description where categories_id='" . $parameters[$i] . "' and language_id=1"); $category = tep_db_fetch_array($category_query); if ($i>0) { $cat_list.=' / '.$category['categories_name']; } else { $cat_list=$category['categories_name']; } $i++; } $display_link = $cat_list.' <I>(Category)</I>'; } else { $display_link = $temp_url_display; }
  14. MYC267

    Who's Online Enhancement 1.4

    So mine looks something like this:
  15. MYC267

    Who's Online Enhancement 1.4

    OK I have been working on this contribution and you are more than welcome to include my contribution. Basically I have changed the LAST URL column so that it displays useful information about there on the site the user is. Now I can see what category or product they are looking at etc... quite useful. OK here is the code to show the product they are looking at. STEP ONE REPLACE: ? ? ? ? ? ? ? ? ? ?<font color="<?php echo $fg_color; ?>"> ? ? ? ? ? ? ? ? ? ? ?<?php ? ? ? ? ? ? ? ? ? ? ? ?echo $temp_url_link; ? ? ? ? ? ? ? ? ? ? ??> ? ? ? ? ? ? ? ? ? ?</font> WITH: ? ? ? ? ? ? ? ? ? ?<font color="<?php echo $fg_color; ?>"> ? ? ? ? ? ? ? ? ? ? ?<?php ? ? ? ? ? ? ? ? ? ? ? ?echo $display_link; ? ? ? ? ? ? ? ? ? ? ??> ? ? ? ? ? ? ? ? ? ?</font> STEP TWO: After this block of code: // WOL 1.6 - Removes osCid from the Last Click URL and the link ? ? ? ? ? ? ? ?if ( $osCsid_position = strpos($temp_url_display, "osCsid") ) ? ? ? ? ? ? ? ? ?$temp_url_display = substr_replace($temp_url_display, "", $osCsid_position - 1 ); ? ? ? ? ? ? ? ?if ( $osCsid_position = strpos($temp_url_link, "osCsid") ) ? ? ? ? ? ? ? ? ?$temp_url_link = substr_replace($temp_url_link, "", $osCsid_position - 1 ); INSERT: if (strpos($temp_url_link,'product_info.php')) { $temp=str_replace('product_info.php','',$temp_url_link); $temp=str_replace('/?','',$temp); $temp=str_replace('?','',$temp); $parameters=split("&",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]="products_id") { $products_id=$a[1]; } $i++; } $product_query=tep_db_query("select products_name from products_description where products_id='" . $products_id . "' and language_id=1"); $product = tep_db_fetch_array($product_query); $display_link = $product['products_name'].' <I>(Product)</I>'; }elseif (strpos($temp_url_link,'?cPath=')) { $temp=str_replace('index.php?','',$temp_url_link); $temp=str_replace('?','',$temp); $parameters=split("&",$temp); $parameters=split("/",$temp); $i=0; while($i < count($parameters)) { $a=split("=",$parameters[$i]); if ($a[0]="cPath") { $cat=$a[1]; } $i++; } $parameters=split("_",$cat); //$cat_list=''; $i=0; while($i < count($parameters)) { $category_query=tep_db_query("select categories_name from categories_description where categories_id='" . $parameters[$i] . "' and language_id=1"); $category = tep_db_fetch_array($category_query); if ($i>0) { $cat_list.=' / '.$category['categories_name']; } else { $cat_list=$category['categories_name']; } $i++; } $display_link = $cat_list.' <I>(Category)</I>'; } else { $display_link = $temp_url_display; } OK look this can probably coded in a MUCH better way so if anyone can fine tune that then let me know so I can update my code. I have also added other sections but with that block you should be able to work out how to do other pages etc...
×