Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

DK-Toys.dk

Pioneers
  • Posts

    17
  • Joined

  • Last visited

Profile Information

  • Real Name
    Kim

DK-Toys.dk's Achievements

  1. How do i implant it to category descriptions? i have tryed but it show in the top and not where it should be, and it won't save my work, so i took it off. my code in category.php is: $category_desc_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field('categories_description[' . $languages[$i]['id'] . ']', '', 40, 10); } . . . . $category_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', tep_get_category_name($cInfo->categories_id, $languages[$i]['id'])); } I hope someone can help
  2. I have install the contrib and get it to work fully (almost), the only thing is that if customer don't create an account, it don't show the refferel in the report :-S Do some one know how to fix that? And is there a way to delete the statestic in the report from admin? I have install the latest version on osc 2.2RC2a
  3. My frontpage is mess up after installation of this nice contrib. look at www.dk-toys.dk and http://www.dk-toys.dk/brainbox-c-90.html but this page work fine http://www.dk-toys.dk/brainbox-construction-set-c-90_102.html What am i doing wrong? Use 2.2RC2 My includes/classes/boxes.php look like this: <?php /* $Id: boxes.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class tableBox { var $table_border = '0'; var $table_width = '100%'; var $table_cellspacing = '0'; var $table_cellpadding = '2'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters = ''; // class constructor function tableBox($contents, $direct_output = false) { $tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"'; if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters; $tableBox_string .= '>' . "\n"; for ($i=0, $n=sizeof($contents); $i<$n; $i++) { if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n"; $tableBox_string .= ' <tr'; if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params']; $tableBox_string .= '>' . "\n"; if (isset($contents[$i][0]) && is_array($contents[$i][0])) { for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) { if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) { $tableBox_string .= ' <td'; if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"'; if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) { $tableBox_string .= ' ' . $contents[$i][$x]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>'; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form']; $tableBox_string .= $contents[$i][$x]['text']; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>'; $tableBox_string .= '</td>' . "\n"; } } } else { $tableBox_string .= ' <td'; if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"'; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) { $tableBox_string .= ' ' . $contents[$i]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n"; } $tableBox_string .= ' </tr>' . "\n"; if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n"; } $tableBox_string .= '</table>' . "\n"; if ($direct_output == true) echo $tableBox_string; return $tableBox_string; } } class infoBox extends tableBox { // Graphical Borders function infoBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->mws_infoBoxContents($contents)); $this->tableBox($info_box_contents, true); } function mws_infoboxcontents($contents) { global $mws_headerText, $mws_headerLink, $mws_TxtLink; if ($mws_TxtLink) $mws_headerText = '<a href="' . $mws_TxtLink . '" class="mws_boxTop">' . $mws_headerText . '</a>'; $this->table_cellpadding = '0'; $this->align = 'center'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } $output = ' <table cellspacing="0" cellpadding="0" border="0"> <tr> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td> <td class="mws_boxTop" width="100%">' . $mws_headerText; if ($mws_headerLink != false) { $output .= ' <a href="' . $mws_headerLink . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } $output .= '</td> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td> </tr> <tr> <td class="mws_boxLeft"></td> <td class="mws_boxCenter">' . $this->tableBox($info_box_contents) . '</td> <td class="mws_boxRight"></td> </tr> <tr> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_left.gif','') . '</td> <td class="mws_boxBottom"></td> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_right.gif','') . '</td> </tr> </table>'; $mws_headerText = ''; $mws_headerLink = ''; $mws_TxtLink = ''; return $output; } // Graphical Borders - end modification function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="infoBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } // Graphical Borders class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false, $title_link = false) { global $mws_headerText, $mws_headerLink, $mws_TxtLink; $mws_headerText = $contents[0]['text']; $mws_headerLink = $right_arrow; $mws_TxtLink = $title_link; } } // Graphical Borders - end modification // Graphical Borders class contentBox extends tableBox { function contentBox($contents) { $this->table_cellpadding = '0'; $this->table_cellspacing = '3'; $this->table_data_parameters = 'class="noborderBox"'; $this->tableBox($contents, true); echo mws_boxFooter (); } function contentBoxContents($contents) { $this->table_cellpadding = '4'; $this->table_parameters = 'class="infoBoxContents"'; return $this->tableBox($contents); } } // Graphical Borders - end modification // Graphical Borders class contentBoxHeading extends tableBox { function contentBoxHeading($contents, $head = true) { echo mws_boxHeader ($contents[0]['text']); } } // Graphical Borders - end modification class errorBox extends tableBox { function errorBox($contents) { $this->table_data_parameters = 'class="errorBox"'; $this->tableBox($contents, true); } } // Graphical Borders class productListingBox extends tableBox { function productListingBox($contents) { global $mws_headerText; echo mws_boxHeader ($mws_headerText); $this->table_parameters = 'class="productListing"'; $this->tableBox($contents, true); $mws_headerText = ''; echo mws_boxFooter (); } } class noborderBox extends tableBox { function noborderBox($contents) { $this->table_cellpadding = '0'; $this->table_cellspacing = '3'; $this->table_data_parameters = 'class="noborderBox"'; $this->tableBox($contents, true); } } // Graphical Borders - end modification ?>
  4. but what should i do with the files. should i repear it or what, should i change it to origimal files, and make a lot of work, what is the best to do?
  5. NOW it works! :-) i dont get the error if i dont use the check box. but i get a lot of red marks for 75 files and more where i get a green check mark. what did that meens? my site had been hacked before with 'base64_decode' what i had deleted in every .php file on the site, but what shoule i do when it say base64_decode and eval, can i delete the line or should i do something else?
  6. great :-) now it seems to work, but when i use the last button i get the site 'internet explorer can't find the page' what could be wrong? the first 3 buttons works very fine, but the last needs to work too.
  7. my full line from admin=>moduls is /customers/dk-toys.dk/dk-toys.dk/httpd.www/includes/modules/payment/ in the bottom of the site in the address line in browser it is http://www.dk-toys.dk/admin/modules.php?set=payment&selected_box=modules but what should i use?
  8. ok, now it don't say invalid username, and i can go to sitemonitor=>admin now, but when i use the first 3 buttons it say 'Reference file creation failed!' at the last i got a 'the website could not be found. my start looks like this: /customers/dk-toys.dk/dk-toys.dk/httpd.www/admin/public_html/ i had tryid without /admin/ in the line but the same result. the report sent to my mail said: NEW FILES: No new files found... DELETED FILES: Found a deleted file named SIZE MISMATCH: Size differences not checked due to deleted file(s) TIME MISMATCH: Time differences not checked due to deleted file(s) PERMISSIONS MISMATCH: Permissions not checked due to deleted file(s) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sitemonitor ran on August 15, 2010, 1:25 pm Total mismatches found were 1 Total files being monitored is 1
  9. I have same problems with 'Your username is invalid. Please change it and try again.' as many other in the forum, and have read a lot of thread to find out how to configure it, but without any luck :( so here is my configure file, maybe someone can find out whats wrong <_< $start_dir = '/my_private_username_to_shopadmin/public_html/'; //your shops root $admin_dir = 'www.dk-toys.dk/admin'; //your shops admin $admin_username = 'my_private_username_to_shopadmin'; //your admin username $admin_password = 'my_private_password_to_shopadmin'; //your admin password $excludeList = array('admin/quarantine', 'cgi-bin','admin', 'banned'); //don't check these directories - change to your liking - must be set prior to first run $hackIgnoreList = array('jpg', 'jpeg','gif','png','txt','zip'); //don't check these types of files - change to your liking $hackCodeSegments = array('error_reporting(0)', 'base64_decode','<frame','gzdecode','eval','ob_start("security_update")'); //enter any hacker code that you would like to check for ?>
  10. Thank you for this great contrib. I have a little problem, after install the contrib, my admin/categories don't save all the spaces or colors ect. i have in the products describtion, all looks fine when i write the text, but when i save it, it is only in one line and without any formating. I use the all in one FCKeditor and the code for this seems to look fine, so it haven't overvrite some code from the editor. I hope you can help. Do you have some code to get it work with product reviews?, it's still in the old format and not so nice as your contrib :-)
  11. In the new update Header Tags SEO V 3.1.2 you say that there is make some change for tinyMCE editor. is it possible to install this version without tiny editor (i have FCKeditor). Or could you make some change so us with FCKeditor could use this version too.
×
×
  • Create New...