Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

  • Days Won


mattjt83 last won the day on August 19 2017

mattjt83 had the most liked content!

About mattjt83

  • Birthday 12/21/1983

Profile Information

  • Real Name
    Matt T
  • Gender
  • Location
  • Interests
    Most anything related to computers, websites, and cooking

Recent Profile Visitors

51,929 profile views
  1. mattjt83


    I had a quick look at that addon and there isn't anything in it that allows you to customize the image shown. You may be able to grab some custom code from the addthis website but I'm not sure since I don't use it.
  2. mattjt83


    If you can post the code for the addon and also which addon you are referring to someone can probably give you a little better guidance as to what needs to be changed.
  3. mattjt83

    Please Review my Website - comments are welcome

    OK, you've done all the hard work of getting the products loaded and the site features implemented. Good job on that My issues are: 1. The site looks very generic. A professional looking template would make a HUGE difference. What it will come down to is that people are scared to shop on non-professional looking sites. If you are only selling items to well established customers your site would probably be fine but otherwise it would be a wise investment to get a proper template setup. Some very simple style adjustments could present your hard work in a much better way. 2. The images do look pixelated (stretched). I'm not sure if you can help this if the images are coming from the manufacturer that way.
  4. The stray </form> tag could cause unforeseen issues and invalidates the html. Not relevant though since you updated the module to a header_tag. I can appreciate what you are doing and I think it's great you're giving back to the community. I have edited your header_tag module so that it is coded according to the proper standards and hopefully doesn't cause issues for users. <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2018 osCommerce Released under the GNU General Public License V1.0 JcM Adaptive Images 16-7-2018 Adaptive Images by Matt Wilcox is licensed under a Creative Commons Attribution 3.0 Unported License. This addon uses the code by MattWilcox/Adaptive-Images from GitHub It is used as supplied and all credit is with original author. All this add-on does is allow you to install in as a module you can turn on and off. */ class ht_jcm_adaptive_images { var $code = 'ht_jcm_adaptive_images'; var $group = 'header_tags'; var $title; var $description; var $sort_order; var $enabled = false; function __construct() { $this->title = MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_TITLE; $this->description = MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_DESCRIPTION; if ( defined('MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_STATUS') ) { $this->sort_order = MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_SORT_ORDER; $this->enabled = (MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_STATUS == 'True'); } } function execute() { global $oscTemplate; $output = <<<EOD <script>document.cookie='resolution='+Math.max(screen.width,screen.height)+'; path=/';</script> EOD; $oscTemplate->addBlock($output, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable JcM Adaptive Images Module', 'MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_STATUS', 'True', 'Do you want to allow images script to be added to the page header?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Adaptive Images for OcS', 'MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_DESCRIPTION_STATUS', 'True', 'adaptive images', '6', '0', 'tep_cfg_select_option(array(\'True\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_STATUS', 'MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_DESCRIPTION_STATUS', 'MODULE_HEADER_TAGS_JCM_ADAPTIVE_IMAGES_SORT_ORDER'); } } ?>
  5. I looked at the code again and I'm not seeing an opening <form> tag. Also there is zero need for a <form></form> to be used with this snippet or a <div></div>. A header tag would make a lot more sense in this circumstance and would also get the script into the <head> like the author suggests.
  6. @JcMagpie You have a stray </form> in your template file. Also, just a couple thoughts... 1. This probably could/should be a header_tag module rather than a content module since it just inserts a single line of javascript. No use in sticking it inside a <div> and also he recommends it being in the <head> section preferably before any other scripts. 2. I think any file that is using the code from Matt Wilcox should give him credit.
  7. Also it would need different people browsing the site with different devices. If only people with desktops viewed the site maybe the script didn't need to be triggered etc... Try viewing the site on a mobile device and maybe the cache will start to fill up.
  8. @burt Looks like this thread should be frozen: https://forums.oscommerce.com/topic/413005-last-active-oscommerce-team-member/ ????
  9. I think what is happening is the string of installed modules needs to be updated to not include the module you deleted. If you uninstall a module through the admin it updates the configuration table for you but not you may need to do it manually. Login to phpmyadmin and find the configuration table. Search for the rows containing the module keys and delete them. You will also need to update the key that contains the installed modules string. For instance the order totals modules is MODULE_ORDER_TOTAL_INSTALLED and the data in mine is: ot_subtotal.php;ot_discount_coupon.php;ot_redemptions.php;ot_cs_discount.php;ot_shipping.php;ot_rush_order.php;ot_total.php;ot_cs_cash_tendered.php;ot_tax.php. You would need to delete the offending module from that list. I'm not sure what the module is so it might not be in the order total area. It could be in the payment modules etc.... OR maybe just put the files back in place and uninstall it properly from your admin.
  10. @burt Sorry I've been trying to follow along with your work here but am currently buried in Easter orders :) Regarding the hooks and getContent... I like the idea of having a "global" sort of hook in application_top. That way it can take care of all sort of things (ajax calls, and additions to the switch($action)). When you need to add functionality you just have to create and upload your new hook and done. I also like the idea of turning the checkout pages into content modules. It would make things a lot easier to alter for people.
  11. I have developed lots of sites and using a local server for that development made things much simpler. The setup is also quite simple and being able to see changes as you make them without having to FTP files constantly can really make a difference. When you are ready for real-world testing of payment modules you will need to be on the live server of course. To each their own though as I'm sure there are pros/cons of either style. @burt do you still use uniserver?
  12. You could use that to convert your DB for sure. If I was you I would create a subdirectory to test in or even simpler run a local server on your computer to do all of your testing / tweaking on. MAMP is good https://www.mamp.info/en/ The nice thing is that you can test and make whatever changes you want without having to worry about messing up your live site. 1. Download MAMP or an equivalent 2. Download latest BS files 3. Create a new DB and folder for your new site on your local server 4. Create a backup of your current DB and import it into the new DB you just created. 5. Run DB conversion and adjust configuration files so the site knows which DB to connect to etc 6. Figure out what customizations you need to make (SEO URLS, cross selling, etc) I think you will be surprised how much easier it is to make style changes and other alterations with a more modern framework and you will be mobile friendly out of the gate. If you get stuck google is your friend :)
  13. After taking a peak at your site it looks like it is pretty standard. I'm sure there are a few things behind the scenes that would have to be updated but I'd say overall it wouldn't be too difficult to update it to the BS version. The gains would for sure be worth the pain of the update/upgrade.
  14. OK cool. Glad it's working for you
  15. Just so I'm clear, you tried my code or just reverted to the old code?