• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About chrish123

Profile Information

  • Real Name
  1. Yes, it's possible, you could open admin/categories.php and find: if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); } and add in: tep_reset_cache_block('categories_box2'); Untested but it may work, ill have a look later hopefully, it may require further coding like in the frontend in the admin functions part.
  2. The author has packaged it wrong and missed some language code, I have it working fine, I commented out in catalog/includes/modules/boxes/bm_shop_by_price.php: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOP_BY_PRICE); to look like: //require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOP_BY_PRICE); and then created another file of the same name in catalog/includes/languages/english/modules/boxes/bm_shop_by_price.php containing this code: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions Copyright (c) 2010 osCommerce Released under the GNU General Public License */ define('MODULE_BOXES_SHOP_BY_PRICE', 'Shop By Price'); define('MODULE_BOXES_SHOP_BY_PRICE_DESCRIPTION', 'Shop By Price'); define('MODULE_BOXES_SHOP_BY_PRICE_BOX_TITLE', 'Shop By Price'); define('BOX_HEADING_SHOP_BY_PRICE', 'Shop By Price'); ?> Remember box modules within osC 2.3.1 generally have their language files like above with the same name in the corresponding modukles/boxes folder, not stored in the languages/english/ folder Another pain in this addon that will eventually need rewriting is that you need to change the database price ranges via phpmyadmin and also the price ranges present in the catalog/includes/modules/boxes/bm_shop_by_price.php too! Bad.. bad!
  3. Yeah minor spelling mistakes... Its definately not an installation mistake, at least not on my part, I followed the simple installation instructions, let's face it its not the hardest contribution to add, I have been messing around with PHP and oscommerce for well over 5 years and integrated and programmed many features and made many customisations. Have you checked the code you uploaded is the exact same code as you uploaded to the shop you programmed it for? The code does not work. I have came back to this months on and added it to another shop, different server and same thing, its not a coincidence.
  4. Hello, Well after months since my first time I posted on here earlier in this thread, it never did work. I tried to install this again last night but on a 2.3.1 shop as the hosting package dosent support SSH or CRON on the starter 1&1 package and guess what? Same issue, it does not save to the database, even after the changes mentioned above, no offence but looking at the code looks like its been wrote whilst drunk, it has instructions and is packaged for 2.3.1, yet the admin side is messed up(which is a simple fix btw, its wrote for 2.2 but still a packaging error). There's also many spelling errors, are you sure this is THE exact same version you say is working fine on another shop you programmed it for? For instance, this dosen't look like a finished addon at all, the spelling errors are pretty apparant on the actual cron simulator page, CON JOB instead of CRONJOB Line 16 of admin/cron_simulator says: $seclectedArray = array(); Shouldn't this be $selectedArray = array(); ?? Again at: admin/includes/languages/english/cron_simulator.php: define('TEXT_SELECT_SCRIPT', 'Select a Con Job'); Again in the same file: define('TEXT_INTRO', 'Cron Simulator allows scripts to be ran at speicifc times.'); define('ERROR_INVALID_PERIOD', 'Frequesncy is unknown.'); Oh and also the fact the cron does not save to the database and the fact there's also a missing define in the version checker code! Anyway I uninstalled this again, and here's another way for others that come across this, infact this works the same way and does the same thing as this contribution intends to do and should work with any version of oscommerce or any website. Check it out here: Regards, Chris.
  5. Hello, Thanks for a great addon! I have added the ability to cache the accordion category box, however it seems to make little difference on our shop as it has hundreds of sub categories but it does somewhat make a difference, so it does definately work as far as it getting cached once loaded once, I have re-uploaded a new package which allows you to reset / refresh the cache under tools>cache control too. I hope my hasty rushed upload earlier did not affect anyone, please download the new package. However this is using the osc caching function, I havent quite sussed out how efficient it is except it isnt great with this addon, I might tak a look and look deeper at FWR Media's SEO multilayer pop out menu style caching as that is perfect, it seems to load as the page loads, not when a main category is clicked and so on, then cached like this addon is behaving like with caching enabled. Still as I said I have lots of sub categories which are probably the problem.
  6. Excellent mod!! Thank you so much, I have also modified it for best sellers which was easy, but the question is how would you get this scroller to periodically scroll by itself automatically either 1 product block at a time or by pages? Kindest Regards Chris
  7. As I seen on another post someone having the same problem: another post, same problem I found out with this addon that the reason if you have both products and categories showing inside a category and some products aren't not showing it is because you have no manufacturer_id set for those products. In that case create a generic manufacturer, take note of the id by looking at the manufacturers_id table in the manufacturer table in PHPmyadmin. I then fixed it this by entering phpmyadmin, Then run an SQL query to update all products manufacturers_id set as 0 (no manufacturer assigned) to 8 (where 8 is YOUR manufacturer ID): UPDATE products SET manufacturers_id = '8' WHERE manufacturers_id = '0';
  8. I have updated this to fancybox 1.3.4 from fancybox allbeit without the admin functionality but can easily be changed within the product info and it works fine under IE9. This is what I did: First download fancybox 1.3.4 from the link above... Create a new directory named /js/ in the path_to_your/catalog/ and place the fancybox folder inside catalog/js/, also within the zip, place the jquery-1.4.3.min.js inside the fancy box folder too. Delete the old fancybox folder within your catalog/images folder. Open product_info.php and find: <!-- Simple multi image addon --> <script type="text/javascript" src="<?php echo DIR_WS_IMAGES ?>js/jquery.js"></script> <script type="text/javascript" src="<?php echo DIR_WS_IMAGES ?>js/jquery.fancybox.js"></script> <script type="text/javascript" src="<?php echo DIR_WS_IMAGES ?>js/jquery.easing.js"></script> <script type="text/javascript" src="<?php echo DIR_WS_IMAGES ?>js/jquery.easydrag.handler.beta2.js"></script> <link rel="stylesheet" href="<?php echo DIR_WS_IMAGES ?>js/fancybox.css" type="text/css" media="screen"> <script type="text/javascript"> $(document).ready(function() { $("div#fancy a").fancybox({ 'zoomSpeedIn': 800, 'zoomSpeedOut': 700, 'imageScale' : true, 'centerOnScroll': true, 'hideOnContentClick' : false, 'overlayShow': <?php echo (DIM_BACKGROUND == 'true' ? 'true' : 'false'); ?>, 'overlayOpacity': <?php echo (BKG_LUMA/10); ?>, 'zoomOpacity': true, <?php if (SWING_POPUP == 'true') echo "'easingIn' : 'easeOutBack',"; ?> 'hideOnContentClick': false }); <?php if (DRAG_POPUP == 'true') echo '$("#fancy_outer").easydrag();'; ?> }); </script> <style type="text/css"> <?php if (SHOW_NAV == 'true') echo 'span#fancy_left_ico {left: 20px;} span#fancy_right_ico {right: 20px;}'; switch (POS_NAV) { case 'top': echo 'span.fancy_ico { top: 38px; }'; break; case 'bottom': echo 'span.fancy_ico { bottom: 20px; }'; break; default: echo 'span.fancy_ico { top: 50%; }'; break; } ?> </style> <!-- EOF Simple multi image addon --> Replace with: <!-- Simple multi image addon --> <script type="text/javascript" src="js/fancybox/jquery-1.4.3.min.js"></script> <script type="text/javascript" src="js/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <script type="text/javascript" src="js/fancybox/jquery.fancybox-1.3.4.js"></script> <script type="text/javascript" src="js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script> <script type="text/javascript" src="js/fancybox/jquery.easing-1.3.pack.js"></script> <link rel="stylesheet" href="js/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen"> <script type="text/javascript"> $.noConflict(); jQuery(document).ready(function($) { // Code that uses jQuery's $ can follow here. $(document).ready(function() { $("div#fancy a").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'easingIn' : 'easeOutBack', 'easingOut' : 'easeInBack', 'speedIn' : 600, 'speedOut' : 400, // 'easingIn': 'swing', //'easingOut': 'swing', 'overlayShow' : true, 'overlayOpacity' : 0.3, //Opacity of the overlay (from 0 to 1; default - 0.3) 'overlayColor': '#666', //Color of the overlay 'titleShow': false, 'changeSpeed': 300, 'changeFade': 'fast', 'autoScale' : true, 'autoDimensions': true, 'centerOnScroll': true, 'hideOnContentClick' : true, 'hideOnOverlayClick' : true, 'zoomOpacity': true, 'opacity': true, 'cyclic': true, 'padding': 0, 'margin': 0 //'titlePosition': 'over' // 'overlayShow': <?php echo (DIM_BACKGROUND == 'true' ? 'true' : 'false'); ?>, // 'overlayOpacity': <?php echo (BKG_LUMA/10); ?>, <?php //if (SWING_POPUP == 'true') echo "'easingIn' : 'easeOutBack',"; ?> }); <?php //if (DRAG_POPUP == 'true') echo '$("#fancy_outer").easydrag();'; ?> }); }); // Code that uses other library's $ can follow here. </script> <style type="text/css"> <?php if (SHOW_NAV == 'true') echo 'span#fancy_left_ico {left: 20px;} span#fancy_right_ico {right: 20px;}'; switch (POS_NAV) { case 'top': echo 'span.fancy_ico { top: 38px; }'; break; case 'bottom': echo 'span.fancy_ico { bottom: 20px; }'; break; default: echo 'span.fancy_ico { top: 50%; }'; break; } ?> </style> <!-- EOF Simple multi image addon --> Thats it, it worked for me! You can also play with the parameters to change the effect, checkout the website API page for values (it dosesnt seem to have them all though like the easeInOut method etc!) Internet Explorer 9 is really buggy though, wish I never installed it now! Just try wrapping code tags on this form round anything, they end up in random places!
  9. This addon uses a really old version of fancybox which is buggy, which has since been completly rewritten since v1.2.4 which this addon uses, and it also does not work with either accordian menu even with various no conflict methods used etc and internet explorer 9. The fancy box part needs updating to 1.3.4 2010/11/11 - v.1.3.4 •Fixed - Image ratio (webkit) 2010/11/04 - v.1.3.3 •Fixed - Dimensions of box with fixed width/height •Fixed - Scrolling bug •Fixed - Ajax is now working with jQuery 1.3+ 2010/10/10 - v.1.3.2 •Fixed - loading icon (IE) •Fixed - bug of fast inline content changing •Fixed - navigation arrows inside input and textarea elements •Fixed - double iframe load bug •Added - new title position "outside" •Improved - it`s now possible to change options using "onStart" callback •Improved - default title now can be wider than content •Improved - mousewheel support for groups •Improved - FancyBox now automatically adjusts height of inline content (no need for callign resizing method) •Improved - option "centerOnScroll" disables if content exceeds size of window 2010/03/05 - v.1.3.1 Some minor CSS and code changes 2009/02/03 - v.1.3.0 Completely rewritten. 2009/11/16 - v.1.2.6 •Fixed broken "centerOnScroll" option •+ Some minor CSS and code changes 2009/11/16 - v.1.2.6 •Fixed broken "centerOnScroll" option •+ Some minor CSS and code changes 2009/11/03 - v.1.2.5 •Updated position of loading icon •Added experimental overlay fading when closing c •Now CSS files will be named after FancyBox version to avoid caching •+ Some minor CSS and code changes 2009/11/02 - v.1.2.4 •Fixed bug - some versions of IE8 had JS error "not implemented" •Fixed bug - iframes and inline content were broken on IE7 •New option - "enableEscapeButton" •+ Some minor CSS and code changes
  10. Hey, thank you I just tried it and it works perfect!! Very good mod! Thanks ;)
  11. I'll have a look at this tommorow again, in the autocomplete.php "term" would definately need changing to "keywords" I think offhand for this to work on 2.2rc2a This also needs the jquery ui dependencies.
  12. Has anyone got this to work on rc2a? Kind regards Chris
  13. I know this thread is old but the reason why the fatal error happens is because of the short open php tag <? instead of <?php at the start of includes/random_cat_images.php incase anyone wonders why you also see the raw contents of that file on index.php in XAMPP or similar as I solved this earlier today myself.
  14. I forgot to mention the sitemap generator dosent work for me, all I get is a blank page. If I change: chdir( '../' ); To anything else like below then I get path errors etc, but the sitemapindex.xml is generated. chdir( '.../' ); Also tried the below that just prints out the path, but the chdir is the same as "../" : $mypath="/homepages/45/d56756756/htdocs/www/"; chdir($mypath); // current directory echo getcwd() . "\n";
  15. Been busy the last couple of days, though I did find out 1&1 have strict regex and was going to look into it, Very thankful here too, it works great!