Jump to content

vampirehunter

Members
  • Content count

    736
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by vampirehunter

  1. I hope someone can point me in the right direction for this. Basically, because i'm seting up my main categories as follows: Mens, Ladies, Kids, accessories etc I have made a custom navbar module where i've put these categories into a navbar in the header. I've removed the normal categories box from the columns. What i want to do is basically have a dynamic categories box which will list the subcategories of the currently selected top level category. So for example, ive selected "Mens". in the categories box will be all of the subcategories ONLY for the men's category. And the same will apply whenever you select a different top level category from my navbar. Would I need to create a new class to achieve this? thanks
  2. is it possible to put some instructions together how to do this?
  3. Does this require any thumbnailer plugin like kissitthumbnailer?
  4. vampirehunter

    KissIT Image Thumnailer

    How do you make the quality of the thumbnails better? I have kissit thumbnailer instslled but the thumbnails are very poor quality.
  5. Hi thanks So do you have to upload images manually vis ftp or is it done via theproduct upload form in admin?
  6. Does this use any built in thumbnailer like kissitthumbnailer? I have a stock product info which i added kissit thumbnailer. Also does this have swipe functionality?
  7. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    Hi, that was it! i enabled mysqli in cpanel via php selector and it worked straight away cheers
  8. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    i installed the latest 2.2 seo urls on an edge installation and im getting that php error in error log. neither the category or product names are showing in the urls, just the product ids and category ids been through the installlation step by step multiple times so not sure why its not working
  9. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    how is this enabled on web hosting? does the webhost have to do it? or can it be done in cpanel?
  10. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    i uninstalled it and php error went away so something in the addon code is giving issue, just impossible to work out what.
  11. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    i checked everything again and cannot figure out why the url is not showing category or product name.
  12. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    Everything is fine in title and in admin. Page title and category title modules are installed and set to true. Everything shows perfect in breadcrumbs etc. The php is 5.6 something running on the hosting. For some reason, the seo urls just arent showing the category and the product names. I followed the installation exactly and double checked. All code was added as specified and the 2 files uploaded also.
  13. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    product title and category appear fine in the title, and on the breadcrumbs the error log shows i only got the error after installing the seo urls. i did the same install on another edge site and getting same issue so it looks like something from the addon maybe is causing the error in log
  14. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    i did error log check and it says this PHP Warning: mysql_fetch_array() expects parameter 2 to be long, string given in /home/test/mysite.com/store/includes/functions/database.php on line 225
  15. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    i checked everything and all is installed as it should. all the options in header tags seem ok. but still not getting the category or product name in the URL. just get this mystore.com/store/--p-65.html not sure why that is is there any error checking script to see what is causing it
  16. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    i have a Edge installation and header tags SEO modules are installed in admin as default. where is the fill tags part of it? or do i need to install the seperate header tags seo plugin?
  17. vampirehunter

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    i installed the plugin and it works, but is there a way to rewrite the URLs other than having just the product id in the url? for example this is the product url the url is www.mystore.com/store/--p-52.html how to get the product name or category in there? is it done in the .htaccess file? ive set show category parent to true but only get the product id showing in url, no category name or product name
  18. vampirehunter

    Google XML Sitemap SEO

    how do i update from v1.9 to the latest? do you have to do each update one by one?
  19. hi Jack. would you say its better to install chemos seo url instead of ultimate seo urls 5 pro for BS? i have responsive oscommerce thanks
  20. I have a problem, but can't work out whats causing it. I've edited the english.php file and defined define('DATE_FORMAT_SHORT', '%d/%m%/Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'd/m/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); define('JQUERY_DATEPICKER_I18N_CODE', ''); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization define('JQUERY_DATEPICKER_FORMAT', 'dd/mm/yy'); // see http://docs.jquery.com/UI/Datepicker/formatDate //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } However, when i go to the create account page and select a date, its still showing the US date format of mm/dd/yy. Can anyone advise what else needs to be changed? I assumed that one change would do it, but its not working. i checked my html source and this is what it says <script>$('#dob').datepicker({dateFormat: 'dd/mm/yy',viewMode: 2});</script> <script>var nowTemp = new Date(); var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0); $('#dfrom').datepicker({dateFormat: 'dd/mm/yy',onRender: function(date) {return date.valueOf() > now.valueOf() ? 'disabled' : '';}}); </script> <script>$('#dto').datepicker({dateFormat: 'dd/mm/yy',onRender: function(date) {return date.valueOf() > now.valueOf() ? 'disabled' : '';}});</script> </body>
  21. Ok, using Gergley's and Kymation's existing code and modifying and refining it slightly. I have managed to make the following module which hopefully is useful for people here: If anyone wants to try it out and check for any issues, that would be great. Any ideas for tweaking the code are also welcome, but this is a working module. A bootstrap carousel for the Home Page (Index Page) Only which will display any banners created from the Banner Manager in Admin. I've tested this, just 3 Files to install and just install via Admin, Modules and under Content. Its titled "Carousel Banners For Home Page" to make it easy to find. You can also set the content width of the carousel container which I've added in as a configuration option. So here are the files to insert: 1.) Includes/modules/content/header/cm_carousel.php <?php /* $Id: banner_rotator.php v1.1.2 20110108 Kymation $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class cm_carousel { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_carousel() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_FRONT_PAGE_BANNER_ROTATOR_TITLE; $this->description = MODULE_FRONT_PAGE_BANNER_ROTATOR_DESCRIPTION; if (defined('MODULE_FRONT_PAGE_BANNER_ROTATOR_STATUS')) { $this->sort_order = MODULE_FRONT_PAGE_BANNER_ROTATOR_SORT_ORDER; $this->enabled = (MODULE_FRONT_PAGE_BANNER_ROTATOR_STATUS == 'True'); } } function execute() { global $PHP_SELF, $oscTemplate, $cPath; $content_width = (int)MODULE_FRONT_PAGE_BANNER_ROTATOR_CONTENT_WIDTH; if ($PHP_SELF == 'index.php' && $cPath == '') { // Set the Javascript to go in the header $footer_scripts = '<script>' . '$(\'.carousel\').carousel({ interval: ' . ( int ) MODULE_FRONT_PAGE_BANNER_ROTATOR_FADE_TIME . '})' . "\n" .'</script>'; $oscTemplate->addBlock($footer_scripts, 'footer_scripts'); // Set the banner rotator code to display on the front page $banner_query_raw = " select banners_id, banners_url, banners_image, banners_html_text from " . TABLE_BANNERS . " where banners_group = '" . MODULE_FRONT_PAGE_BANNER_ROTATOR_GROUP . "' and status order by banners_id " . MODULE_FRONT_PAGE_BANNER_ROTATOR_BANNER_ORDER . " limit " . MODULE_FRONT_PAGE_BANNER_ROTATOR_MAX_DISPLAY; $banner_query = tep_db_query($banner_query_raw); if (tep_db_num_rows($banner_query) > 0) { $body_text = '<!-- Banner Rotator BOF -->' . "\n"; $body_text .= ' <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">' . "\n"; $indicators = '<!-- Indicators --> <ol class="carousel-indicators">'; $wrapper_slides = '<!-- Wrapper for slides -->' . "\n" . '<div class="carousel-inner">'; $background = $this->createImage(544, 172, 118, 115, 115); $counter = 0; while ($banner = tep_db_fetch_array($banner_query)) { $indicators .= ' <li data-target="#carousel-example-generic" data-slide-to="' . $counter . '"' . ($counter == 0 ? 'class="active"' : '') . '></li>'; $wrapper_slides .= ' <div class="item' . ($counter == 0 ? ' active' : '') . '">'; if ($banner['banners_url'] != '') { $wrapper_slides .= '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '">'; } //$wrapper_slides .= tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_html_text']); if ($banner['banners_image'] !== '') { //$wrapper_slides .= tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_html_text']); $wrapper_slides .= tep_image(DIR_WS_IMAGES . $banner['banners_image'], '', 544, 172); $wrapper_slides .= '<div class="carousel-caption"> </div>'; } else { //$wrapper_slides .= tep_image(DIR_WS_IMAGES . 'pixel_silver.gif', 'alt', 544, 172 ); $wrapper_slides .= '<img class="img-responsive" alt="544x172" src="' . $background . '" />'; $wrapper_slides .= '<div class="carousel-caption">' . $banner['banners_html_text'] . '</div>'; } if ($banner['banners_url'] != '') { $wrapper_slides .= '</a>'; } $wrapper_slides .= ' </div>' . "\n"; $counter++; } $indicators .= '</ol>'; // close indicator $wrapper_slides .= '</div>'; // wrapper close $controls = ' <!-- Controls --> <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a>'; // öszefuzés $body_text .= $indicators . $wrapper_slides . $controls; $body_text .= ' </div>' . "\n"; $body_text .= ' <div class="clearfix"></div>' . "\n"; $body_text .= '<!-- Banner Rotator EOF -->' . "\n"; $carousel = $body_text; $oscTemplate->addBlock($carousel, $this->group); } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/carousel.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_FRONT_PAGE_BANNER_ROTATOR_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_CONTENT_WIDTH', '12', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Banner Rotator', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_STATUS', 'True', 'Do you want to show the banner rotator?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Fade Time', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_FADE_TIME', '500', 'The time it takes to fade from one banner to the next. 1000 = 1 second', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Hold Time', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_HOLD_TIME', '4000', 'The time each banner is shown. 1000 = 1 second', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Banner Order', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_BANNER_ORDER', 'desc', 'Order that the Banner Rotator uses to show the banners.', '6', '0', 'tep_cfg_select_option(array(\'asc\', \'desc\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banner Rotator Group', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_GROUP', 'rotator', 'Name of the banner group that the Banner Rotator uses to show the banners.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banner Rotator Max Banners', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_MAX_DISPLAY', '4', 'Maximum number of banners that the Banner Rotator will show', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array ( 'MODULE_FRONT_PAGE_BANNER_ROTATOR_CONTENT_WIDTH', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_STATUS', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_SORT_ORDER', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_FADE_TIME', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_HOLD_TIME', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_BANNER_ORDER', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_GROUP', 'MODULE_FRONT_PAGE_BANNER_ROTATOR_MAX_DISPLAY' ); } function createImage($width = 900, $height = 500, $red = 255, $green = 0, $blue = 0) { $im = imagecreatetruecolor($width, $height); // sets background to red $color = imagecolorallocate($im, (int)$red, (int)$green, (int)$blue); imagefill($im, 0, 0, $color); //header('Content-type: image/png'); ob_start(); imagepng($im); $contents = ob_get_contents(); ob_end_clean(); imagedestroy($im); $imgData = base64_encode($contents); $src = 'data: image/png;base64,'.$imgData; return $src; } } ?> 2.) Includes/modules/content/header/templates/carousel.php <div id="carousel" class="col-sm-<?php echo $content_width; ?>"> <?php echo $carousel; ?> </div> 3.) Includes/languages/english/modules/content/header/cm_carousel.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_FRONT_PAGE_BANNER_ROTATOR_TITLE', 'Carousel Banners For Home Page'); define('MODULE_FRONT_PAGE_BANNER_ROTATOR_DESCRIPTION', 'Adds a carousel to Home Page with banner images set from Banner Manager.'); ?> The only thing needed is to style your carousel in your user.css file by specifying whichever minimum heights you want or using bootstrap media queries for various screens. I've checked the code, and its working. Feel free to improve and offer any tips on this. Screenshot attached of the admin options and carousel on home page. I just used the stock oscommerce logo as a banner in this one.
  22. vampirehunter

    Country-State Selector

    is this already added to the 2.3.4.1 ce frozen version?
  23. hi, do you have example of it in action how it looks? or the code what you did to get it in that way.
  24. hi thanks this looks great if this is used to redo the template of product info page. whats the best way to re introduce the PHP code bits back in? as there is a fair bit of php code that spits out some html and other fields on the page. ive always found this page tricky to edit and keep track of div tags
  25. vampirehunter

    Purchase without account for 2.3.4 and BS2334

    hi managed to find out the 2nd domain i made was a direct copy of the 1st site, and there are 2 fields in the database that required changing that still had the 1st sites email in it.
×