Jump to content

PupStar

Members
  • Content count

    896
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by PupStar

  1. @@burt I am playing with designing a template in bootstrap and I am trying to reduce the size of the body container to lets say 960px wide but when I do this it also breaks the responsive layout. I have googled and its a bit baffling with various different answers, as you are an expert of/in BS I thought you would be the very man to speak to for guidance Thanks Mark
  2. PupStar

    gzip

    @@dinopacha unfortunately I have no idea
  3. PupStar

    gzip

    @@dinopacha unfortunately I have no idea
  4. PupStar

    gzip

    @@dinopacha if you go to admin>tools>server info and search for gzip compression it will tell you if it is enabled or disabled Mark
  5. @dinopacho a quick google found this example, not sure if it works RewriteCond %{HTTP_HOST} ^12\.34\.56\.789$ RewriteRule ^(.*)$ http://www.domainname.com/$1 [L,R=301]
  6. PupStar

    Missing Payment Methods in admin

    @@LittleBigPet Mark, have you actually gone to admin>modules>payment and installed them?
  7. Hi Guys, I am not sure if I am going about this the correct way or the easiest way possible. I have added a left border to the body content but can not get the padding and or margin to work with out the entire content (inc border) moving together Also the border only is as tall as the content page and I want it to fill the entire page length. This is what I have done so far template_top <div id="bodyContent" class="col-md-<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'col-md-push-' . $oscTemplate->getGridColumnWidth() : ''); ?>"> <div class="left-border"> template_bottom </div> <!-- bodyContent //--> </div> user.css .left-border { border-left: 1px solid #dedede; } Mark
  8. @@John W Thanks John, I have managed to sort this now by fiddling lol
  9. thanks to Malcolm @Artcolnc for this @[member=media] (min-width: 992px) { #bodyWrapper { overflow-y: hidden; } } #columnLeft {border: 1px solid #dedede; padding-bottom: 9999px; margin-bottom: -9999px;}
  10. can anyone shed any light on how to always make the left column fill the entire length of the page dynamically depending on the body content??? I have found partial solution #columnLeft {border: 1px solid #dedede; margin-bottom: -9999px; padding-bottom: 9999px;} but its not ideal as then the page just scrolls forever Thanks Mark
  11. @@14steve14 I tried that steve but could not get it to work, maybe I was doing something wrong ok forget that, tried it again and it worked lol so how would I get it to overflow to the full length of the page
  12. this might be a really obvious question but why can I not get the credit card logos in bm_card_acceptance.php box to not overflow onto more than 1 line foreach ( explode(';', MODULE_BOXES_CARD_ACCEPTANCE_LOGOS) as $logo ) { $output .= '<div class="float-cc-logo">' . tep_image(DIR_WS_IMAGES . 'card_acceptance/' . basename($logo)) . '</div>'; } .float-cc-logo { float: left; padding: 0px; }
  13. add this to your user.css and it should sort your problem out .page-header { margin: 0px 0 0px; }
  14. PupStar

    [Contribution] Documents Manager

    @@kymation Hi Jim, I have been working on expanding the code to associate a document with a category. So far the admin side works great. I have created a new table called documents_to_categories and duplicated the case code etc so now the document gets associated with a category. The problem I have now is getting the download link to show on the category page because at the moment it shows nothing. I have expanded the module code below but not sure if I need to either a) do more to show the link or B) modify the code in index.php to get it to work Any thoughts would be appreciated. <?php /* $Id: documents.php, v1.0.1 200909014 kymation Exp $ $Loc: catalog/includes/modules/ $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2009 osCommerce Released under the GNU General Public License */ // Generate a set of links to documents linked to this product $products_documents_query_raw = " select count(*) as total from " . TABLE_PRODUCTS_TO_DOCUMENTS . " where products_id = '" . (int) $_GET['products_id'] . "' "; $products_documents_query = tep_db_query ($products_documents_query_raw); $products_documents = tep_db_fetch_array ($products_documents_query); if ($products_documents['total'] > 0) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td> <?php $buttons_array = array(); $products_documents_query_raw = " select d.documents_id, d.documents_name, d.documents_size, d.documents_title, dt.type_name, dt.type_description, d2c.documents_to_categories_id, d2c.categories_id, d2c.documents_id from " . TABLE_DOCUMENTS . " d, " . TABLE_DOCUMENT_TYPES . " dt, " . TABLE_PRODUCTS_TO_DOCUMENTS . " p2d, " . TABLE_DOCUMENTS_TO_CATEGORIES . " d2c, where p2d.products_id = '" . (int) $_GET['products_id'] . "' and d.documents_id = p2d.documents_id and dt.document_types_id = d.document_types_id and d2c.documents_id = d.documents_id and d.documents_visible = 'True' and dt.type_visible = 'True' order by dt.sort_order, d.sort_order "; $products_documents_query = tep_db_query ($products_documents_query_raw); while ($products_documents = tep_db_fetch_array ($products_documents_query) ) { // Separate the document name and the extension from the filename $documents_name = $products_documents['documents_name']; $filename_parts = pathinfo ($documents_name); $documents_name = $filename_parts['filename']; $documents_extension = $filename_parts['extension']; // Get the document information from the extension $document_type_array = tep_get_document_type ($documents_extension); echo '<span class="document_type">' . $products_documents['type_description'] . ':</span> '; echo '<span class="document"><a href="' . tep_href_link (DIR_WS_DOCUMENTS . $products_documents['type_name'] . '/' . $products_documents['documents_name']) . '" target="_new">'; echo $products_documents['documents_title']; echo ' [' . number_format ($products_documents['documents_size']) . ' k]'; echo ' ' . $document_type_array['icon']; echo '</a></span><br>'; } // while ($products_documents } // if ($products_documents ?> </td> </tr>
  15. PupStar

    [Contribution] Documents Manager

    @@kymation Hi Jim, I am trying to use your updated version on 2.3.4BS and so far the only bug I have found is that the documents will not upload to the respective folder. Also I need to add an option for category association if thats at all possible with the way the code stands. Mark
  16. PupStar

    Printer Ink & Toner Filter

    @@Tsimi ok I sorted it out, I had missed a couple of things out
  17. PupStar

    Printer Ink & Toner Filter

    @@Tsimi, ok I am now tryng to insert/edit a category image into the database just like on categories.php does. I have the image uploading to the correct folder but can not get the image name to save in the database. I have added this to the case 'insert_category': case 'update_category': // PARTS IMAGE START $categories_image = new upload('categories_image'); $categories_image->set_destination(DIR_FS_CATALOG_IMAGES_PARTS); if ($categories_image->parse() && $categories_image->save()) { tep_db_query("update " . TABLE_PRINTER_CATEGORY . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where printer_category_id = '" . (int)$categories_id . "'"); } // PARTS IMAGE END and then further down I have added this to the case 'edit_category': // PARTS IMAGE START '<br />' . tep_image(DIR_FS_CATALOG_IMAGES_PARTS . $getcurrentcatROW->categories_image, $getcurrentcatROW->categories_name) . '<br />' . DIR_FS_CATALOG_IMAGES_PARTS . '<strong>' . $getcurrentcatROW->categories_image . '</strong>' . '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image') . // PARTS IMAGE END I presume it has something to do with the update query but not sure exactly what Mark
  18. PupStar

    Printer Ink & Toner Filter

    I will compare later when I get a minutes peace Thanks for doing this for me :thumbsup: Mark
  19. PupStar

    Printer Ink & Toner Filter

    @@Tsimi yes the admin is but not boostrapped filter_printer_category.php yet
  20. PupStar

    Printer Ink & Toner Filter

    @@Tsimi me neither lol
  21. PupStar

    Printer Ink & Toner Filter

    @@Tsimi sorry yes in admin, filter_printer_products.php
  22. PupStar

    Printer Ink & Toner Filter

    @@Tsimi yes of course no problem. One more thing you could maybe help with is that I would like to add a category dropdown to the top of the page so that I can show products only from the selected category and not all products which currently show. a similar type dropdown as to what is used in admin categories would do. Mark
  23. PupStar

    Printer Ink & Toner Filter

    @@Tsimi I have reverted back to the original addon queries and added the extra fields back in and its now working and sorting correctly. (w00t) I will now finish Bootstrapping the table and hopefully not break it again lol
  24. PupStar

    Printer Ink & Toner Filter

    @@Tsimi ok I have narrowed this right down. This query works fine $products_query_raw = 'select p.products_id, p.products_model, pd.products_name, p.products_price, p.products_tax_class_id, p.products_id, p.products_mediacat_ref_no, p.products_mediacat_quantity from '.TABLE_PRODUCTS.' p, '.TABLE_PRODUCTS_DESCRIPTION.' pd where p.products_id = pd.products_id order by pd.products_name asc'; until I change this order by pd.products_name to this order by pd.products_id then the untick does not save the changed the database. I have no idea why ordering by products_id is causing the break. Mark
×