Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

leveera

Pioneers
  • Posts

    230
  • Joined

  • Last visited

Everything posted by leveera

  1. I found time to sort it just for fun. it has IsViewable function adjusted to Osc2.2 version replace it by function IsViewable($file) { if (($fp = @file($file))) { for ($idx = 0; $idx < count($fp); ++$idx) { if (strpos($fp[$idx], "template_top.php") !== FALSE) { return true; } } } return false; } The advantage of this contribution is it creates sitemaps for both human and robots when all others do one thing only.
  2. The same prob. I think it is not working with OSC 2.3.3
  3. 'ok, sorted. Rendering prob in admin/easymap.php because my IE8 don't like <style type="text/css"> .....</style> where it is. Simply deleted css block and replaced styles to available in default stylesheet. Happy now )))
  4. Hi Jack, Thanks for reply Sorry forgot to mention I moved easymap to Tools section, not mistake but just to avoid extra folder. Anyway the bug is same whenever easymap in own folder or under Tools menu. Looks like icons: { 'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' } are in wrong place on admin easymap page and it only like this in IE8 Also, admin/include/functions/easymap.php is empty file in last package
  5. Hi Jack Installed EasyMap 3.1 on my OSc 2.3.3 with no probls on catalog side but admin looks bit wrong, seems it still using some old 2.2 RC... code. See scheenshoot. Also found in admin/easymap.php - TEXT_VERSION_CHECK_UPDATES, TEXT_MISSING_VERSION_CHECKER are not definded in language file and (visit the support thread) linked to Daily Specials. http://www.trade24h.co.uk/screen.jpg
  6. Query resulted 0 records from configuration table but thanks for posting hfc_social_tested.zip . I fitted it instead of what I had and install run successfuly. Thanks again for support all fine now with it!
  7. I'm happy to test ))) SELECT * FROM `configuration` WHERE `configuration_key` LIKE 'MODULE_BOXES_INSTALLED' No it is not here, it still existing on ...modules.php?set=header_footer_contents&list=new I also applied $group change but still te same, no install for some reason, very tricky...
  8. Hi Gergely, Thanks for upload. Unfortunately test is not successful. Module is not doing install on pressing "+Install module" button. So it is not moving to installed modules page ....modules.php?set=header_footer_contents but in sql configuratin table it set own records. Enable Social Box Module - True Content Placement - Left Header Sort Order - 0 Facebook Account Name ... Twitter id ... Instagram id ... Pinterest id ..
  9. Please help to convert "Join Us in Twiter.." addon http://addons.oscommerce.com/info/8053 for HFC use infobox code here <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class bm_social_box { var $code = 'bm_social_box'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_social_box() { $this->title = MODULE_BOXES_SOCIAL_TITLE; $this->description = MODULE_BOXES_SOCIAL_DESCRIPTION; if ( defined('MODULE_BOXES_SOCIAL_STATUS') ) { $this->sort_order = MODULE_BOXES_SOCIAL_SORT_ORDER; $this->enabled = (MODULE_BOXES_SOCIAL_STATUS == 'True'); $this->group = ((MODULE_BOXES_SOCIAL_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $oscTemplate; $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_SOCIAL_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents" style="text-align:center;">' . ' <a href="http://www.facebook.com/' . MODULE_BOXES_FACEBOOK_ACCOUNT_NAME . '" target="_new">' . tep_image(DIR_WS_IMAGES . 'social_bookmarks/follow_facebook.png', 'Facebook') . '</a> <a href="http://www.twitter.com/' . MODULE_BOXES_TWITTER_ACCOUNT_NAME . '" target="_new">' . tep_image(DIR_WS_IMAGES . 'social_bookmarks/follow_twitter.png', 'Twitter') . '</a> <a href="http://www.instagram.com/' . MODULE_BOXES_INSTAGRAM_ACCOUNT_NAME . '" target="_new">' . tep_image(DIR_WS_IMAGES . 'social_bookmarks/follow_instagram.png', 'Instagram') . '</a> <a href="http://www.pinterest.com/' . MODULE_BOXES_PINTEREST_ACCOUNT_NAME . '" target="_new">' . tep_image(DIR_WS_IMAGES . 'social_bookmarks/follow_pinterest.png', 'Pinterest') . '</a> ' . ' </div>' . '</div>'; $oscTemplate->addBlock($data, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_SOCIAL_STATUS'); } function install() { 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 Social Box Module', 'MODULE_BOXES_SOCIAL_STATUS', 'True', 'Do you want to add the module to your shop?', '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, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_SOCIAL_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())"); 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_BOXES_SOCIAL_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, date_added) values ('Facebook Account Name', 'MODULE_BOXES_FACEBOOK_ACCOUNT_NAME', '', 'Add your facebook account name here', '6', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Twitter id', 'MODULE_BOXES_TWITTER_ACCOUNT_NAME', '', 'Add your twitter id here', '6', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Instagram id', 'MODULE_BOXES_INSTAGRAM_ACCOUNT_NAME', '', 'Add your instagram id here', '6', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Pinterest id', 'MODULE_BOXES_PINTEREST_ACCOUNT_NAME', '', 'Add your pinterest id here', '6', '1', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_BOXES_SOCIAL_STATUS', 'MODULE_BOXES_SOCIAL_CONTENT_PLACEMENT', 'MODULE_BOXES_SOCIAL_SORT_ORDER', 'MODULE_BOXES_FACEBOOK_ACCOUNT_NAME', 'MODULE_BOXES_TWITTER_ACCOUNT_NAME', 'MODULE_BOXES_INSTAGRAM_ACCOUNT_NAME', 'MODULE_BOXES_PINTEREST_ACCOUNT_NAME'); } } ?>
  10. I have question about Simple Menu. Is it possible to install it without SCM contribution? At this moment hfc_menu.php is asking for "admin installer module" what I beleive is parts of SCM. I just trying to avoid features and mess in files what i don't need and can do much simple by working in phpmyAdmin.
  11. Thanks for reply, I sorted issue by taking good file clean it and copy+paste contents of corrupted files and save as to replace broken one. Seems like these files are Ok with windows server but prob with unix. I played bit with file settings but no result. Anyway it sorted and i advice anybody with the prob do the same.
  12. Just report how it works on my fresh OSC 2.3.3 1. Image uploaded on admin/categories.php in "Products Image: Main Image" window makes no thumbnali for product_info. page, full size image dispayed instead. Also it doesn't put image in database table so checkbox "Delete this Image from the Server (Permanent!)?" useless. If at this stage to tick "Delete this Image from the Server (Permanent!)?" and press Save it results error Warning: unlink(/.../catalog/images/) [function.unlink]: Permission denied in ...\www\catalog\admin\categories.php on line 212 Warning: Cannot modify header information - headers already sent by (output started at ...\www\cataolg\admin\categories.php:212) in ...\www\catalog\admin\includes\functions\general.php on line 38 2. To make a tumbnail on product_info. page - upload image by "+Add large image". Not quite sure but seems images uploaded by "+Add large image" not affected by this contribution Also "+Add lage image" option uploads image to database. To delete from database use recycle bin sign in "+Add lage image" window. Again using checkbox "Delete this Image from the Server (Permanent!)?" gives only error same as above. Tip. If you having thumbnail image created in the same directory as main image, not in Thumbnail folder - it means what you didnt set path to thumbnails in Admin-Configuration-Thumbnails
  13. Spoted in latest 6.0 rev. 5 what back button in catalog_mp.php is not actually sending back but to advamced_search.php Is it possible to fix, thanks! <div id="bouton"> <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_mobile_link(FILENAME_ADVANCED_SEARCH, tep_get_all_get_params(array('sort', 'page')), 'NONSSL', true, false)); ?> </div>
  14. Hi Installed this contrubution without any probs on my localhost by when moved to live got error reported early here Parse error: syntax error, unexpected T_CLASS in /home/test/public_html/catalog/includes/modules/header_footer_contents/hfc_information.php on line 1 found the same issue with hfc_store_logo.php and hfc_manufacturers.php, all other files are 'OK for install any idea how to sort? PS. spaces are not the reason
  15. This need to be added in sitemap_seo_uninstall.php array("DROP TABLE IF EXISTS sitemap_seo_settings"),
  16. Hi Thanks for contribution, looks greate on my Osc 2.3.3 Bit of debugging mobile/inclides/header.php, correct syntax is content="width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> mobile/includes/classes/header_title.php line 20 omitted </a>, correct is $leftButton = '<td id="headerTitleLeft" class="headerTitleLeft" onclick="location.href=' . $url . '"><a rel="nofollow" href="' . $url . '">' . TEXT_SHOW_VIEW_1 . '</a><a rel="nofollow" href="' . $url . '">' . TEXT_CLASSIC_VIEW . '</a>' . TEXT_SHOW_VIEW_2 . '</td>';
  17. Thanks it is here /********************** UPDATE THE BOX SECTION **********************/ if (isset($_POST['boxfiles']) && $_POST['boxfiles'] !== TEXT_MAKE_BOX_SELECTION || isset($_POST['boxfiles_additional']) && $_POST['boxfiles_additional'] !== TEXT_MAKE_BOX_SELECTION) { $activeBox = isset($_POST['boxfiles']) ? $_POST['boxfiles']: $_POST['boxfiles_additional']; $boxArray['box_file_name'] = $activeBox; $boxName = explode(".", $activeBox); for ($i = 0; $i < count($languages); ++$i) { $boxes_query = tep_db_query("select box_page_name, pseudo_page_name, excluded_box from " . TABLE_SITEMAP_SEO_BOXES . " where box_file_name LIKE '" . $boxArray['box_file_name'] . "' and language_id = '" . (int)$languages[$i]['id'] . "'"); $boxes = tep_db_fetch_array($boxes_query); $name = sprintf("box_page_name_%d", $languages[$i]['id']); $excludedBox = $boxes['excluded_box'] ? 'checked' : ''; $activeSection = (isset($_POST['boxfiles']) ? 'files' : 'additional'); $boxArray[$name] = tep_not_null($boxes['pseudo_page_name']) ? $boxes['pseudo_page_name'] : (tep_not_null($boxes['box_page_name']) ? $boxes['box_page_name'] :$boxName[0]); } $linkArray = GetBoxLinks($boxArray['box_file_name'], $languages); } Again no error on test $linkArray = GetBoxLinks('bm_information.php', $languages); But seems I'm not too good in php to catch reason of the error,. Can you help?
  18. 'ok thanks, I beleive it is here catalog/includes/functions/sitemap.php /***************************************************************** Find all of the links for this infobox *****************************************************************/ function GetBoxLinks($box, $languages) { $boxLinks = array(); if ($box != TEXT_MAKE_BOX_SELECTION) { $end = (substr(DIR_FS_CATALOG, -1) !== '/') ? '/' : ''; $path = DIR_FS_CATALOG . $end . DIR_WS_MODULES . 'boxes/' . $box; $lines = array(); again no error on change to $path = DIR_FS_CATALOG . $end . DIR_WS_MODULES . 'boxes/' . 'bm_information.php'; at this point i'm stopped as cant find how it receiveing $box
  19. Ooops, that is right idea. Yes I missed the first thing to do note to select and update all boxes by Boxes Individual Control. That is sorted now. Thanks again! Back to error.... includes/modules/boxes/Array) [function.file]: failed to open stream: No such file or directory in ....admin/includes/functions/sitemap.php on line 203 I'm investingting it and found what error gone if I place direct link to file on line 203 function GetFilesArray($path, &$lines) { $lines = '../.../.../.../includes/modules/boxes/bm_information.php'; return true; } So I suggest what in $lines = file($path); - variable $path is not receiving file name Where the $path is conctructing?
  20. Hi jack, Thanks for quick reply. I'm no a guru in php but I beleive I found a clue why standard boxes are not on display catalog/includes/modules/sitemap.php $boxes_query do TABLE_SITEMAP_SEO_BOXES . " b left join " . TABLE_SITEMAP_SEO_BOX_LINKS but with install I got sitemap_seo_box_links table empty so this query returns 0 When I inserted record into sitemap_seo_box_links table by Boxes Individual Control (screen2) - box information appeared on sitemap page (screen3) Meanwhile names of boxes not looks correct yet About error admin/includes/functions/sitemap.php on line 203. - cant see any problem with path in config as admin-modules-boxes side working fine with all boxes
  21. Hello Just installed this nice contribution on my fresh 2.3.3 (localhost yet) and got exectly the same error on clicking any Boxes Group Control update button The fix suggested early dont help admin/sitemap_seo_box_control.php on line 162: if (! is_array($activeBox)) $boxName = explode(".", implode($activeBox)); Also It looks strange but I have no standard pages (privacy.php and so on) and no infoboxes displayed on catalog/sitemap.php Only I see is catalog tree there On admin side Page control has for example privacy.php unclicked. Also can see all bm_infoboxes in Box control page list Any advice to sort both probs? UPD. Sorted prob with standard pages. Fit any text in Settings control - Heading Text - Standard Pages and pages appears on sitemap. This method dont work for stadard infoboxes
  22. Just installed Dynamic Sitemap v4.1 for my fresh install of Osc 2.3.3 Working fine with no errors on both catalog and admin. Meanwhile in admin side I have very short list of "Files in Catalog" Dynamic_Sitemap.php checkout_confirmation.php checkout_payment.php checkout_payment_address.php checkout_process.php checkout_shipping.php checkout_shipping_address.php checkout_success.php create_account_success.php info_shopping_cart.php product_info.php tell_a_friend.php Where are all others? Anybody can confirm this issue and sugest solution.
  23. Had a problem to set permissions using FTP client and Cpanel so I rewrote this nice contribution now working for OSC 2.3.3. Full package uploaded http://addons.oscommerce.com/info/2137 All credits to original author
  24. Almost agree, just in this case core php extention mb_string can do it for us. Anyway this is not a problen anymore Can we talk about "Error!Unable to determine the page link!" on sitemap.php It comes from html_output.php Any ideas? // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); }
  25. strops and mb_strops are the same, last one is for UTF-8 encoding, do you know does SEO sitemap play for UTF-8 intsallations?
×
×
  • Create New...