Jump to content

aftabn10

Members
  • Content count

    250
  • Joined

  • Last visited

Everything posted by aftabn10

  1. aftabn10

    [Addon} Modular Front Page

    kymation, thanks for your response. My query was how I could write some conditional styles for IE so I could have the scroller style showing twice but one would be actioned for IE and the normal one for all other browsers. This is the only way I can think of making sure the scroller appears right in terms of width size. For example not sure if the following would work for IE and the normal one for all other browsers: $header .= '<!--[if IE]>' . "\n"; $header .= '#scroller {' . "\n"; $header .= ' width: 806px;' . "\n"; ... $header .= '}' . "\n\n"; <![endif]--> $header .= '#scroller {' . "\n"; $header .= ' width: 785px;' . "\n"; ... $header .= '}' . "\n\n"; Another problem in Internet Explorer is that the scroller shows 2 rows of products when I use the full 10 products and again I am struggling to understand how to fix this as all other browsers show up fine. Thanks for your help once again.
  2. aftabn10

    [Addon} Modular Front Page

    I was looking to get some help in regards to styling issues for the scroller. Currently I have set the width at 785px but this does not display correctly in Internet Explorer and when I change this to 806px then this shows up fine in Internet Explorer but then shows too wide in Opera, Firefox etc.. I was wondering if I can add conditional styles for IE, but I am not sure how within the scroller.php. I am guessing the following section is what I need to duplicate but with <--if IE> at the top. $header .= '#scroller {' . "\n"; $header .= ' width: 785px;' . "\n"; $header .= ' height: ' . MODULE_FRONT_PAGE_SCROLLER_MODULE_HEIGHT . 'px;' . "\n"; $header .= ' position: relative;' . "\n"; $header .= ' padding: 10px;' . "\n"; $header .= ' margin: 10px 0 10px 0;' . "\n"; $header .= ' border: 1px solid #d6d3d6;' . "\n"; $header .= '}' . "\n\n";
  3. aftabn10

    Google Checkout

    hi, I have managed to install the following contribution of Google Checkout. I have been through the instructions and made all the required amendments, but I seem to have an issue in the admin section where Google Checkout is not listed in Payment Modules. Where have I gone wrong? Please could somebody help.
  4. aftabn10

    [Addon} Modular Front Page

    kymation, as previously stated, this module has helped me out alot so thanks once again! just an issue im currently having with the banner rotator. for some reason in internet explorer the banners i have tend to overlap my header, but in mozilla this displays where it needs to be... im not too sure if any1 can tell me what fix i can put to resolve this issue in the stylesheet...
  5. Guardian Tech, this is something that I am interested in as well. Just wondering if you managed to add the buy now buttons into the featured products? Would appreciate some help. Thanks in advance.
  6. aftabn10

    Newsletter & Subscribers for 2.3.1?

    qtriangle, climate any luck with this?
  7. HI, just a quick question, i am wondering if the Pronux for Admin would allow me to change the language bars to custom tabs i.e. Ingredients etc. Any ideas any1?
  8. aftabn10

    Contribution Issue

    germ, apologies as the bug fix has got rid of that error, should have looked there first but thanks for the guidance really appreciate it.
  9. aftabn10

    Contribution Issue

    thanks germ for having a look, i didnt download the bug fix so will have a look at that now and go through the installation notes to make sure iv covered everything.
  10. aftabn10

    Contribution Issue

    germ thanks for your response. The entire error message that i am getting is the following: Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\oscommerce\catalog\admin\includes\column_left.php:34) in C:\xampp\htdocs\oscommerce\catalog\admin\includes\functions\general.php on line 34 Also i have attached the entire column_left.php file. Btw thanks for all your help, really appreciate it. column_left.php
  11. aftabn10

    Contribution Issue

    germ, thanks for your response. I am guessing you meant the following link: http://www.oscommerce.info/confluence/display/OSCDOC22/Error+*+Cannot+Add+Header+Information I have looked through my english.php file and there was a blank link after the last ?> which i deleted (as your example showed) but my error seems to point to the column_left.php which also had an extra line, but the error still shows up? The error also seems to point to line 34, which is the following: echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>'; Any ideas? Thanks btw for your help. really appreciate it.
  12. aftabn10

    Contribution Issue

    Hi, I have managed to add this contribution to my website (2.3) but only issue I seem to be having is whenever I am adding a new page I get the following error: Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\catalog\admin\includes\column_left.php:34) in C:\xampp\htdocs\catalog\admin\includes\functions\general.php on line 34 Any ideas why? Thanks btw for this contribution.
  13. aftabn10

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi, thanks for this contribution. I seem to be having the sample problem as Aarsvaars. Any ideas where I have gone wrong? Thanks once again.
  14. aftabn10

    [Addon} Modular Front Page

    kymation, thanks for your response. I'll play around with the css and see if i can add some modifications. Will update the forum if i get anywhere.
  15. aftabn10

    [Addon} Modular Front Page

    kymation, i finally managed to add more than one featured section so thanks for all your help. I just went through the original files and went through the steps of replacing the values (match case) and it worked! Appreciate all your help. Had one more question, was wondering if it is possible to make some adjustments to the scroller i.e. add product name, add a line between products. Any suggestions on how i can do this would be really helpful. Thanks
  16. aftabn10

    [Addon} Modular Front Page

    kymation, thanks for your response. I have checked the database and there are no duplicate keys within the configuration table. I have reinstalled both modules and reinstalled but 2nd still doesnt work. I'll try saving it down from the 1st version... thanks for your help btw, really appreciate it.
  17. aftabn10

    [Addon} Modular Front Page

    kymation, thanks for your response. I have unintalled and reinstalled the module but now when editing the module (Featured Products Two) I dont get the options of the featured products #1, featured products #2 etc... any ideas? sorry for troubling btw.. the following is the amended code that i have within modules: <?php /* $Id: featured_two.php v1.1.5 20110108 Kymation $ Most of the execute() code is from the stock osCommerce New Products module osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class featured_two { var $code = 'featured_two'; var $group = 'front_page'; var $title; var $description; var $sort_order; var $enabled = false; var $count; // Set the number in the following line to the number of featured_two products desired. var $featured_products = 10; function featured_two() { global $PHP_SELF; $this->title = MODULE_FRONT_PAGE_FEATURED_TWO_TITLE; $this->description = MODULE_FRONT_PAGE_FEATURED_TWO_DESCRIPTION; if (defined('MODULE_FRONT_PAGE_FEATURED_TWO_STATUS')) { $this->sort_order = MODULE_FRONT_PAGE_FEATURED_TWO_SORT_ORDER; $this->enabled = (MODULE_FRONT_PAGE_FEATURED_TWO_STATUS == 'True'); $this->count = MODULE_FRONT_PAGE_FEATURED_TWO_MAX_DISPLAY + 1; } // Include the function that is used to add products in the Admin if ($PHP_SELF == 'modules.php') { include_once (DIR_WS_FUNCTIONS . 'modules/front_page/featured.php'); } } function execute() { global $oscTemplate, $languages_id, $currencies, $PHP_SELF, $cPath; if ($PHP_SELF == 'index.php' && $cPath == '') { // Set the text to display on the front page $featured_two__content = '<!-- Featured Products BOF -->' . "\n"; if (MODULE_FRONT_PAGE_FEATURED_TWO_FRONT_TITLE != '') { $featured_two__content .= ' <h2>' . MODULE_FRONT_PAGE_FEATURED_TWO_FRONT_TITLE . '</h2>' . "\n"; } $featured_two__content .= ' <div class="contentText">' . "\n"; $featured_two__content .= ' <table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n"; $col = 0; for ($id = 1; $id <= $this->featured_two_products; $id++) { $products_id = @ constant('MODULE_FRONT_PAGE_FEATURED_TWO_PRODUCT_' . $id); if ($products_id > 0) { $featured_two_products_query_raw = " select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price, s.status from " . TABLE_PRODUCTS . " p join " . TABLE_PRODUCTS_DESCRIPTION . " pd on pd.products_id = p.products_id left join " . TABLE_SPECIALS . " s on s.products_id = p.products_id where p.products_id = '" . $products_id . "' and pd.language_id = '" . ( int ) $languages_id . "' "; // print 'Featured Query: ' . $featured_two_products_query_raw . '<br />'; $featured_two_products_query = tep_db_query($featured_two_products_query_raw); $featured_two_products = tep_db_fetch_array($featured_two_products_query); // Format the price for the correct currency if ($featured_two_products['status'] == 1) { $products_price = '<del>' . $currencies->display_price($featured_two_products['products_price'], tep_get_tax_rate($featured_two_products['products_tax_class_id'])) . '</del><br />'; $products_price .= '<span class="productSpecialPrice">' . $currencies->display_price($featured_two_products['specials_new_products_price'], tep_get_tax_rate($featured_two_products['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($featured_two_products['products_price'], tep_get_tax_rate($featured_two_products['products_tax_class_id'])); } if ($col == 0) { $featured_two__content .= ' <tr>' . "\n"; } $width = (floor(100 / MODULE_FRONT_PAGE_FEATURED_TWO_COLUMNS)); $featured_two__content .= ' <td width="' . $width . '%" align="center" valign="top">' . "\n"; $featured_two__content .= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_two_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_two_products['products_image'], $featured_two_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_two_products['products_id']) . '">' . $featured_two_products['products_name'] . '</a><br />' . $products_price; $featured_two__content .= '</td>' . "\n"; $col++; if ($col > (MODULE_FRONT_PAGE_FEATURED_TWO_COLUMNS - 1)) { $featured_two__content .= ' </tr>' . "\n"; $col = 0; } } } // for( $id=1; $featured_two__content .= ' </table>' . "\n"; ; $featured_two__content .= ' </div>' . "\n"; $featured_two__content .= '<!-- New Products EOF -->' . "\n"; $oscTemplate->addBlock($featured_two__content, $this->group); } } // function execute function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_FRONT_PAGE_FEATURED_TWO_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_FEATURED_TWO_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 ('Enable Featured Products', 'MODULE_FRONT_PAGE_FEATURED_TWO_STATUS', 'True', 'Do you want to show the Featured box on the front page?', '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 ('Title', 'MODULE_FRONT_PAGE_FEATURED_TWO_FRONT_TITLE', 'Featured Products', 'Title to show on the front page.', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Max Featured Products', 'MODULE_FRONT_PAGE_FEATURED_TWO_MAX_DISPLAY', '6', 'How many featured_two products do you want to show?', '6', '3', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Number of Columns', 'MODULE_FRONT_PAGE_FEATURED_TWO_COLUMNS', '3', 'Number of columns of products to show', '6', '4', now())"); for ($id = 1; $id <= $this->featured_two_products; $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 ('Featured Product #" . $id . "', 'MODULE_FRONT_PAGE_FEATURED_TWO_PRODUCT_" . $id . "', '', 'Select featured_two product #" . $id . " to show', '6', '99', 'tep_cfg_pull_down_products(', now())"); } } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { $keys = array (); $keys[] = 'MODULE_FRONT_PAGE_FEATURED_TWO_STATUS'; $keys[] = 'MODULE_FRONT_PAGE_FEATURED_TWO_SORT_ORDER'; $keys[] = 'MODULE_FRONT_PAGE_FEATURED_TWO_FRONT_TITLE'; $keys[] = 'MODULE_FRONT_PAGE_FEATURED_TWO_MAX_DISPLAY'; $keys[] = 'MODULE_FRONT_PAGE_FEATURED_TWO_COLUMNS'; for ($id = 1; $id <= $this->featured_two_products; $id++) { $keys[] = 'MODULE_FRONT_PAGE_FEATURED_TWO_PRODUCT_' . $id; } return $keys; } } ?>
  18. aftabn10

    [Addon} Modular Front Page

    Thanks kymation for all your help. I have managed to create an additional featured module named featured_two but have 2 issues. 1. When selecting Install Module i seem to get the following error: Warning: include_once(includes/functions/modules/front_page/featured_two.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\oscommercenew\catalog\includes\modules\front_page\featured_two.php on line 39 Warning: include_once() [function.include]: Failed opening 'includes/functions/modules/front_page/featured_two.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\oscommercenew\catalog\includes\modules\front_page\featured_two.php on line 39 When i change this value to featured.php then i am able to install the module but cannot see any products but can see the title. Any ideas where i have gone wrong? Thanks once again.
  19. aftabn10

    [Addon} Modular Front Page

    Thanks kymation, that seems pretty straightforward. Lastly can banners be added to the left and right column? Thanks once again btw..
  20. aftabn10

    [Addon} Modular Front Page

    Kymation just downloaded the module, this is brilliant! Just what I needed, thanks! Just a couple of questions, the featured products module is it possible to have more than 1 as I would like to show 3, also is it possible to add banners to the left and right columns? Thanks once again, really love this, u made it all easy for me
  21. aftabn10

    jQuery Banner Rotator

    thanks for your reply kymation. I have recently installed version 2.3.1 and have been playing around to see the differences and if it would be easier to move from the rc2a version. In regards to the banner, all i did was add extra banners to the group 468x50 but the banners were not changing unless i pressed the refresh key, is there anything additional that needs to be done? or do i just install the modular frontpage addon? Thanks once again for your help.
  22. aftabn10

    jQuery Banner Rotator

    Hi, i have the banner rotator working on oscommerce rc2a (2.2) but was wondering if this contribution would work with oscommerce 2.3.1? Any one know?
  23. aftabn10

    "Dynamenu" for osCommerce

    Hi, i have managed to install dynamenu with STS 4.1 but the submenu appears off my template in the bottom left corner? Any reason why this is? Also what settings would i be required to amend this as i need it to show right below my categories... Any help would be appreciated, thanks in advance.
  24. Hi, i seem to be having a problem with my sts template. My index page shows up fine with the template I have uploaded, but when I click on a category, this takes to me another page of another website (URL is correct) i have and with the message Template file does not exist: [includes/sts_templates/test/template1.html] at the top... I have checked and cant understand how this has happened. I have also checked the config files i have uploaded to make sure i had put the correct database settings but thats all fine as well. Any help would be really appreciated. Thanks in advance.
  25. aftabn10

    category page template file does not exist

    germ, thats right as i had built a template with all contributions that i require, so cloned the folder as a template to use for myself. Thanks for pointing out the issue...
×