Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Comesticage

Pioneers
  • Posts

    124
  • Joined

  • Last visited

Everything posted by Comesticage

  1. Hello, Even downloading fresh copies of "Header Footer Content Modules v1.2" and "Header Footer Content Modules v1.11", and uploading them. I still have the errors. Do you have a new complete package with all the correct line breaks? The codings is in a mess... Am having problems with "hfc_banner_cycle.php" and having errors while installing the modules in the admin panel. thanks
  2. @@Gergely Hello for my file, shop/catalog/includes/modules/header_footer_contents/hfc_banner_cycle.php <?php/* $Id$ Author: Th Gergely http://oscom.hu v1.0 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License*/ class hfc_banner_cycle { var $code = 'hfc_banner_cycle'; var $group = 'header_footer_contents'; var $title; var $description; var $sort_order; var $enabled = false; function hfc_banner_cycle() { $this->title = MODULE_HFC_BANNER_CYCLE_TITLE; $this->description = MODULE_HFC_BANNER_CYCLE_DESCRIPTION; if ( defined('MODULE_HFC_BANNER_CYCLE_STATUS') ) { $this->sort_order = MODULE_HFC_BANNER_CYCLE_SORT_ORDER; $this->enabled = (MODULE_HFC_BANNER_CYCLE_STATUS == 'True'); switch (MODULE_HFC_BANNER_CYCLE_CONTENT_PLACEMENT) { case 'Left Header' : $this->group = 'header_contents_left'; break; case 'Center Header' : $this->group = 'header_contents_center'; break; case 'Right Header' : $this->group = 'header_contents_right'; break; case 'Header Line' : $this->group = 'header_line'; break; case 'Left Footer' : $this->group = 'footer_contents_left'; break; case 'Center Footer' : $this->group = 'footer_contents_center'; break; case 'Right Footer' : $this->group = 'footer_contents_right'; break; case 'Footer Line' : $this->group = 'footer_line'; break; } } } function execute() { global $oscTemplate, $languages_id; //initialize main banner query $banner_query_raw = " select banners_id, banners_url, banners_image, banners_html_text, status from " . TABLE_BANNERS . " where banners_group = '" . MODULE_HFC_BANNER_CYCLE_GROUP . "' and language_id = '" . ( int )$languages_id . "' and status = 1 order by " . MODULE_HFC_BANNER_CYCLE_ORDER . " limit " . MODULE_HFC_BANNER_CYCLE_MAX_DISPLAY_ROTATOR ; // print $banner_query_raw; exit(); $banner_query = tep_db_query( $banner_query_raw ); if( tep_db_num_rows( $banner_query ) > 0 ) { //initialize $data $data = '<script type="text/javascript">' . PHP_EOL; $data .= '$(document).ready(function() {' . PHP_EOL; $data .= "$('.pics').cycle({" . PHP_EOL; // choose your transition type, ex: fade, scrollUp, shuffle, etc... $data .= " fx: 'fade', " . PHP_EOL; $data .= " speed: 4500 " . PHP_EOL; $data .= '});' . PHP_EOL; $data .= '});' . PHP_EOL; $data .= '</script>' . PHP_EOL; $data .= '<!-- banner_cycle -->' . PHP_EOL; $data .= ' <div id="bannerCycle" class="pics">' . PHP_EOL; while( $banner = tep_db_fetch_array( $banner_query ) ) { if( $banner['banners_url'] != '' ) { $data .= '<a href="' . tep_href_link( FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_self">' . PHP_EOL; } if ($banner['banners_html_text']) { $image_source = $banner['banners_html_text']; $data .= $image_source . PHP_EOL; } else { $data .= tep_image( DIR_WS_IMAGES . $banner['banners_image']) . PHP_EOL; } if( $banner['banners_url'] != '' ) { $data .= '</a>' . PHP_EOL; } tep_update_banner_display_count( $banner['banners_id'] ); } $data .= ' </div>' . PHP_EOL; $data .= '<!-- banner_cycle_EOF -->' . PHP_EOL; $oscTemplate->addBlock($data, $this->group); //sending $data $header = '<script type="text/javascript" src="ext/jquery/cycle/jquery.cycle.lite.js"></script>' . PHP_EOL; $header .= '<style> #bannerCycle { margin-right: 0px; /* php manage */ float: left; /* php manage */}.pics { height: 100px; /* php manage */ width: ' . MODULE_HFC_BANNER_CYCLE_WIDTH . 'px; /* php manage */ padding: 0; margin: 0; margin-top: 10px; margin-bottom: 14px;} .pics img { padding: 4px; /* php manage */ border: 1px solid #ccc; background-color: #eee; width: ' . MODULE_HFC_BANNER_CYCLE_WIDTH . 'px; /* php manage */ height: 100px; /* php manage */ top: 0; left: 0;}.pics p { width: ' . (MODULE_HFC_BANNER_CYCLE_WIDTH + 4) . 'px; height: 100px; text-align : center; margin-top: 10px; background: #fff;}</style>'; $oscTemplate->addBlock($header, 'header_tags'); //sending $header } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_HFC_BANNER_CYCLE_STATUS'); } function install() { // Check whether the banners table has been altered and add the language field if it has not $check_structure_query_raw = "describe " . TABLE_BANNERS; $check_structure_query = tep_db_query( $check_structure_query_raw ); $banners_language = false; while( $check_structure_data = tep_db_fetch_array( $check_structure_query ) ) { if( $check_structure_data['Field'] == 'language_id' ) { $banners_language = true; } } // Now insert the language field if we need to if( $banners_language == false ) { tep_db_query( "alter table " . TABLE_BANNERS . " add column `language_id` INT( 11 ) NOT NULL default '1' after `banners_id`" ); } 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 Currencies Module', 'MODULE_HFC_BANNER_CYCLE_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_HFC_BANNER_CYCLE_CONTENT_PLACEMENT', 'Header Line', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Header\', \'Center Header\', \'Right Header\', \'Header Line\', \'Left Footer\', \'Center Footer\', \'Right Footer\', \'Footer Line\'), ', 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_HFC_BANNER_CYCLE_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 ('Module Version Number', 'MODULE_HFC_BANNER_CYCLE_VERSION_NUMBER', 'v1.0', 'Version number of installed module', '6', '1', 'tep_sanitize_string(', now())"); tep_db_query( "insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banners Cycle Group Name', 'MODULE_HFC_BANNER_CYCLE_GROUP', 'hfc_module', 'Add this group name for hfc banners.', '6', '13', 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 ('Banners Cycle Order', 'MODULE_HFC_BANNER_CYCLE_ORDER', 'banners_id', 'Select sort order method of displayed banners.', '6', '11', 'tep_cfg_select_option(array(\'banners_id\', \'rand()\'), ', now())"); tep_db_query( "insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banners Cycle', 'MODULE_HFC_BANNER_CYCLE_MAX_DISPLAY_ROTATOR', 4, 'How many banners cycle in same time?', '6', '10', now())"); tep_db_query( "insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Banners width', 'MODULE_HFC_BANNER_CYCLE_WIDTH', 300, 'How many pixels width need for banners cycle?', '6', '10', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_HFC_BANNER_CYCLE_VERSION_NUMBER','MODULE_HFC_BANNER_CYCLE_STATUS', 'MODULE_HFC_BANNER_CYCLE_CONTENT_PLACEMENT', 'MODULE_HFC_BANNER_CYCLE_SORT_ORDER', 'MODULE_HFC_BANNER_CYCLE_MAX_DISPLAY_ROTATOR', 'MODULE_HFC_BANNER_CYCLE_ORDER', 'MODULE_HFC_BANNER_CYCLE_GROUP', 'MODULE_HFC_BANNER_CYCLE_WIDTH'); } }?>
  3. Hello All, anyone has my answer? will appreciate alot!
  4. Hello, May I ask after i did the instructions and modified my headers and footers, when i install the modules in my admin page, it says "Parse error: syntax error, unexpected T_CLASS in /home/content/17/8283017/html/shop/catalog/includes/modules/header_footer_contents/hfc_banner_cycle.php on line 1" This file is a new file, and there is no way i modified it before. Any ideas? Thanks in advance!
  5. @@ken0306 Thanks for your reply. please take a look oxytarm-ap.com/shop/catalog/ How do i edit the menu then? Please guide me. am green with envy to change the design to something like "evolution-slimming.******com/ (remove ****** to see) - have a nice background to my header, focusing on my brand and spreading across the screen (filling up the grid, edge to edge) - nice fonts - new 3 buttons, beautiful icons - nice drop down menu Any ideas? (I am so happy that i found this superfish and i hope i can incorporate this to my design. I think a professional feel to a ecommerce website lies greatly in the header and footer (my next project).
  6. Hello, can you explain more on the installation steps? after i made changes to header.php and template_top.php in my /includes folder. AND i also transferred all the new files into my /shop/catalog I do not see any modules that can be installed in my admin page? on my website, it's just a bar with the home icon, how do i install this correct and create my own drop down menu? Regards, /* This is Superfish DropDown Menu on TOP NOTE: This is the modified stylesheet from Superfish v1.4.8 – jQuery menu plugin by Joel Birch www.sunrisebook.com All Template is only 39USD!!!! */ 1) open includes/template_top.php add the following: <script type="text/javascript" src="ext/js/superfish.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="css/superfish.css" /> <script type="text/javascript" src="ext/js/js.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.custom_select form').jqTransform(); $("ul.sf-menu").superfish({ pathClass: 'current', delay: 1000, animation: {opacity:'show',height:'show'}, speed: 'slow', autoArrows: true, dropShadows: true }); }); </script> 2) open includes/header.php add the following where you want to this menu display: <div class="cat_navbar"> <div class="navbar_bg"><a class="home" href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><strong></strong></a> <?php include(DIR_WS_MODULES . 'superfish.php'); ?> </div> </div>
  7. I still can't get my popup right, any kind soul out there that can help me?
  8. Been trying for more than a week. still can't solve it, any comments from the contributor or other users? Regards,
  9. still can't find a solution around this. Any one has any tips to offer? Grateful, Eugene
  10. Hello all, There are several wrong things happening, 1) The popup is not centralized on the page, it is slightly to the right side. 2) When i click on my image, It gives an error 3) But if i click continue button, It goes to oxytarm-ap.com/shop/catalog/ShopLocations.php This is wrong, I want it to go to oxytarm-ap.com/shop/catalog/product_info.php?products_id=39 Any solutions? Regards,
  11. Hello all, I got it on the admin site. but still trying to play around with it. Doesn't get my popup image weird. but it's a good start!
  12. Anyone around? I have installed, but nothing different in my site. =(
  13. Hello all, I tried using this add on. Followed in the install_popup.txt instructions, add the new files, altered the changed files (adding in new edits) run SQL. But nothing after that? I don't see any changes in the admin page? not even modules/boxes that can be installed.. weird.? Please let me know? THanks! :mellow: :mellow: :mellow: :mellow: :mellow: :mellow: :mellow:
  14. @joli1811 I did it! Installed the price attribute successfully i am most impressed by the red boxes as below. How do you do it? If it's ok, can you share via PM with me or here? Regards,
  15. Hi again, Actual Attribute Price v1.8 or what version? i reinstall the add on. Doing change (line by line) then tested it. It did not give the correct price (ie. the flat prize based on the "mini" work) Regards, PS: don't know what is going on? Suppose to be an easy add in. only general, shopping_cart, product_attributes...
  16. @@joli1811 Hello, Thanks, i will try it again. Btw, i am most impressed by the red boxes as below. How do you do it? If it's ok, can you share via PM with me or here? Regards,
  17. Hi all, My site is oxytarm-ap.com I am looking to have different sizes for my product and hence each size immediately shows a price, not + or - Any add ons to recommend for v2.3.1? I tried http://addons.oscommerce.com/info/1716 for 2.2 Still did a minus... Any other recommendations? Regards,
  18. @@kymation unfortunately, the error still exists. Thanks so much for your help..
  19. @@kymation Hi Jim, How have you been? There must something that i did correctly recently that the original error that i was facing in application_top.php went away. Now i have 2 errors God doesn't want me to have this addon. The icon is so cute i must have it done! Regards,
  20. @@Jack_mcs Did it. Successful SEO and article installation! oxytarm-ap.com =))
  21. @@Jack I must say this is the most tedious piece of add on. The moment i saw categories.php i almost fainted! At the same time, the database installer php file that you did is the most wonderful piece i have seen. And the testing of all the pages, etc in the admin panel, even the help file to click on the error to explain, the FAQs, is fantastic! Right now, trying to fix the product_info.php - looks ugly. kinda alignment all gone. Can see at oxytarm-ap.com/shop/catalog/product_info.php?products_id=29 Regards, PS: pray that i can solve myself!
  22. @@Jack_mcs Hi Jack I did so. It's almost working now. There's some graphical changes that the add on did to my index.php and product.php. I will ask you in the correct support thread. =) Regards,
  23. Hello, I have been reading, is it because i haven't install the below? If so, i will do it immediately! :lol: SEO Header Tags - RELOADED http://addons.oscommerce.com/info/8864
  24. Hello, Thanks for the add on, it is working fine so far, except that i have these error when i click insert or update at the admin panel.. and also, Clicking on the all articles (in the box), gives me When i click on the specific article, Regards,
  25. @@kymation Thanks for all the help given, i am grateful. hope i can get it done!
×
×
  • Create New...