Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mwstinson

Archived
  • Posts

    113
  • Joined

  • Last visited

About mwstinson

  • Birthday 05/14/1980

Profile Information

mwstinson's Achievements

  1. It can be made to work but there will be alot of modifications that arent documented anywhere. If you are good it can be done.
  2. OK, OK - I think that the problem is with the model #. I noticed that on my site I do not use model #s. I changed the code a small bit. It seems to work better. Maybe someone else can make more progress with it. <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox[pro]" title="'. $products_name. '"><br>'. tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
  3. Really dont know what to say. It works on my site. no doubt about it. But it seems that you have the exact same code as I do. Hmmmmm. At a loss. Sorry. just wondering if you have all of the files where they are supposed to be. But it would seem that you do if the main part of the script works. I really dont know. Sorry. <_<
  4. Here is what i have on my pages. lines 27-35 <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> <script type="text/javascript" src="lb2/js/prototype.js"></script> <script type="text/javascript" src="lb2/js/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="lb2/js/lightbox.js"></script> </head> lines 111-114 <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox" title="'?><?php echo $products_name; ?><?php '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> I hope that this helps. You can see the results of this code at: http://www.mwswebmaster.com/test/product_i...;products_id=32
  5. Added lightbox 2.0 contrib then I fugured something else out.... to put item description into the caption use the following on product_info.php change: <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> to: <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox" title="'?><?php echo $products_name; ?><?php '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript>
  6. site url is not www.rcprivatelael.com it is www.rcprivatelabel.com
  7. http://www.oscommerce.com/community/contributions,4383 Lightbox v1.0 Written 7-10-06 by Matthew Stinson www.rcprivatelabel.com ############################################################ This contribution outlines implementation of Lightbox JS # by Lokesh Dhakar. I take no credit for reating this cool # tool. And only offer support on how to implement it with # osCommerce. This is currently working on osc 2.2. you can # see it in action at www.rcprivatelael.com # # ############################################################ First upload the files that are included with this contrib to the root directory of your catalog. Typically the catalog directory. ############################################################ Secondly you will at the following code between the <head> and </head> to any page that you want to use the script on. Typically on catalog/product_info.php <script type="text/javascript" src="lightbox.js"></script> ############################################################ thirdly if you want to use this contrib on the catalog/product_info.php page you will change <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> with <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> ############################################################ to use this function on any other images you will Add rel="lightbox" attribute to any link tag to activate the lightbox. For example: <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a> Optional: Use the title attribute if you want to show a caption.
  8. remove the admin/atributeManager/.htaccess that will get you going!
  9. size=6]Member approval 1.5[/size] I was dissapointed with some of the functionality of this contrib. It does its job but I found it hard to use. I wanted to be able to view the customer details easier so I made a few changes. what this will allow you to do is view the account details from the member approval page Then approve the account from the customerr details page. Then confirm from the member approval page. -------------------------------------------------------------------------------------------------------------- admin/customers.php around line 698 change <td align="right" class="main"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('action'))) .'">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> to <td align="right" class="main"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <br> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=accept') . '">' . tep_image_button('button_activate.gif', IMAGE_ACTIVATE) . '</a><a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('action'))) .'">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> ------------------------------------------------------------------------------------------------------------------------ admin/members.php around line 169 change $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '" target="_blank" >' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br><a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a>'); to $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '" >' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=accept') . '">' . tep_image_button('button_activate.gif', IMAGE_ACTIVATE) . '</a> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br><a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a>'); thats it!!
  10. Member approval 1.5 I was dissapointed with some of the functionality of this contrib. It does its job but I found it hard to use. I wanted to be able to view the customer details easier so I made a few changes. what this will allow you to do is view the account details from the member approval page and then approve the account from the customerr details page. then confirm from the member approval page. -------------------------------------------------------------------------------------------------------------- admin/customers.php around line 698 change <td align="right" class="main"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('action'))) .'">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> to <td align="right" class="main"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <br> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=accept') . '">' . tep_image_button('button_activate.gif', IMAGE_ACTIVATE) . '</a><a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('action'))) .'">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> ------------------------------------------------------------------------------------------------------------------------ admin/members.php around line 169 change $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '" target="_blank" >' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br><a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a>'); to $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '" >' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=accept') . '">' . tep_image_button('button_activate.gif', IMAGE_ACTIVATE) . '</a> <a href="' . tep_href_link(FILENAME_MEMBERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br><a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a>'); thats it!!
  11. try opening catalog/includes/modules/print_catalog.php find echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $print_catalog_array[$i]['id'], 'NONSSL') . '"><img border="0" height="80" width="100" src="http://mwswebmaster.com/rcprivatelabels/catalog/images/' . $print_catalog_array[$i]['image'] . '"></a>'; and remove either the height="80" or the width="100" if you leave width="100" all images will be 100 pixels wide, or leave height="80" and all images will be 80 pixels tall. Or change the value to whatever dimension you want!! hope that this helps someone. also sorry if this was already answered.
  12. I am sorry. I might be retarded but I cannot find these variables. you can see what I have so far at http://www.kspersyn.com I am sure that the problem I am having is the same as what is being discussed here. I just cant see how. The site is not live so feel free to test it out. the only page I have contrib installed on is the index of catalog. Thank you very much for this contrib. It is really nice. Also thanks in advance to any help you can offer. Thanks, Matthew Stinson
  13. Warning: Cannot modify header information - headers already sent by (output started at {abs path edited} /www/store/catalog/includes/classes/snoopy1.class.php:2104) in {abs path edited}/www/store/catalog/newsletters_subscribe.php on line 73 anyone know what this means and have an idea about what to do about it? Any help would be apreciated
  14. when I try to retrieve a file from ep to see how to build a file to upload I gat an error. to clarify I am loged into the admin section and click catalog, then easy populate. I then click "Download complete tab-delimited .txt file to edit". I then recieve the following message: Warning: fopen(/mnt/web_l/d14/s17/a000f2md/www/albros/nfoscomm/catalog//catalog/temp/EP2005Jan04-0505.txt): failed to open stream: No such file or directory in /mnt/web_l/d14/s17/a000f2md/www/albros/nfoscomm/catalog/admin/easypopulate.php on line 590 Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/web_l/d14/s17/a000f2md/www/albros/nfoscomm/catalog/admin/easypopulate.php on line 591 Warning: fclose(): supplied argument is not a valid stream resource in /mnt/web_l/d14/s17/a000f2md/www/albros/nfoscomm/catalog/admin/easypopulate.php on line 592 You can get your file in the Tools/Files under /catalog/temp/EPEP2005Jan04-0505.txt I can see "an error" ...../nfoscomm/catalog//catalog/temp/........ The extra /catalog doesnt exist but I do not know how to fix this. any help would be greatly appreciated. Thank You
×
×
  • Create New...