Jump to content

Josed

Members
  • Content count

    9
  • Joined

  • Last visited

1 Follower

Profile Information

  1. Orange jQuery theme to modificate the colors of the modules & boxes headers and buttons of the catalog. Link to the addon Its base in the redmond theme but displayed it in orange. Require osCommerce Online Merchant v2.3.x To install is only necessary upload the folder "redmond-orange" into: catalog/ext/jquery/ui/ And do a modification in the template_top.php file changing the name redmond by redmond-orange Include screenshots and some variations of the background headers image. Uploaded with ImageShack.us Regards, Jose
  2. Hola, puedes hacer lo siguiente, yo he puesto 190 en el siguiente ejemplo pero puedes adaptarlo a mas o menos caracteres segun necesites: en vez de usar: trim(substring(pd.products_description, 1, 90)) as products_description, usa esto: trim(substring(pd.products_description, 1, 190)) as products_description, y para la parte que muestra la descripción corta, en vez de usar: strip_tags($new_products['products_description']) usa esto: substr(strip_tags($new_products['products_description']), 0, 90) esto lo que hara es lo que indicas, seleccionara mas texto en la consulta de sql y luego mediante php se "recortara" de 190 a 90 caracteres, si vez que en todas las descripciones tienes el mismo numero de etiquetas html, unas 100 en este caso, entonces es facil hacerlo seleccionando 190 en vez de 90, si es mas puedes poner la cantidad que necesites, y esta parte con la modificacin substr(strip_tags($new_products['products_description']), 0, 90) reducira siempre la descripcion corta a 90. Ten en cuenta que este ultimo codigo cambia segun el archivo, en este caso es para el modulo central de Nuevos productos en me.. catalog/includes/modules/new_products.php, que utiliza $new_products, en el paso 4 y 5 de las instrucciones, luego para el listado de productos es $listing, el paso 7 substr(strip_tags($listing['products_description']), 0, 90) para el paso 9 que es el de las paginas de ofertas es $specials; substr(strip_tags($specials['products_description']), 0, 90) y para el paso 10 de la pagina de novedades es $products_new. substr(strip_tags($products_new['products_description']), 0, 90) Lo que tiene esto es que selecciona mas texto en la consulta a la base de datos, en este momento no se si hay posibilidad de hacer esto directamente solo con la consulta sql para que seleccione 90 caracteres sin incluir etiquetas html, pero asi vale tambien. un saludo Lo traduzco al ingles tambien, por si alguien tiene la misma duda. In english: ----------- In the case of use a wysiwyg editor and/or add html tags in the products description this addon will show less characteres in the short description cause the strip_tags strip HTML and PHP tags from the products description a possible solution to this is increse the amount of characters in the sql select (the increment of characters will depend of the usual number of characters created by the html tags you use in the begin of the product description) if it were 100 then change this code from the install instructions: trim(substring(pd.products_description, 1, 90)) as products_description, by this: trim(substring(pd.products_description, 1, 190)) as products_description, (change 190 by other number of characters depending of your needed) and then, this other code of the step 4 and 5: strip_tags($new_products['products_description']) replace it by this: substr(strip_tags($new_products['products_description']), 0, 90) notice that piece of code is different in each file, for the product listing change in $new_products by this $listing, so the change in the install instructions for the step 7 would be: substr(strip_tags($listing['products_description']), 0, 90) for the step 9: substr(strip_tags($specials['products_description']), 0, 90) and for the step 10: substr(strip_tags($products_new['products_description']), 0, 90) This will show the same number of characters for all short descriptions. regards
  3. This addon add a short description to the products, taken directly from the first 90 characters of the product's description, to display it in the main modules, products listing and page of the catalog: New Products in month.. module, main page and categories with sub-categories products listing of categories (without sub-categories) and manufacturers products listing of search results Products new page and Special page This addon is for the osCommerce version 2.3.1 Link to the addon: http://addons.oscommerce.com/info/7875 The short description is displayed below the product name and include at the end the "..." and a "read more" link. All can be customize in the stylesheet.css file, links colours, font,.. of the Product name, read more link and price. Screenshots: http://crearweb.cyberdream.es/en/ Regards, Jose
  4. Hi, I'm trying to upload an addon of a jquery theme but the addon login page gives me an error "Cookies must be enabled to be able to log in successfully (reload page)". or even: "User name or password are incorrect". I can login correctly here in the forum but can't do it in the addons page. Also I tried it with two differents web browser, Mozilla and ie, and doesn't work. In the Mozilla options is enable accept cookies of addons.oscommerce.com so I don't know what could be the problem. I did a search to find if someone had this problem and found a solution but I haven't found any post about it. I'm trying to upload the addon for some days yet too.
  5. sorry, I forgot post it. Your version, the last: Ultimate SEO 2-2.2d-11 Thanks, I will continue with the installation.
  6. Hi I'm trying an installation in a 2.3.1 version and in the 3rd step I have found differences in the html_output.php code from the code of the install instructions, this is the code in the osCommerce v2.3.1: //// // 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; $page = tep_output_string($page); if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br /><br /><font color="#ff0000"><strong>Error!</strong></font><br /><br /><strong>Unable to determine the page link!<br /><br />'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br /><br /><font color="#ff0000"><strong>Error!</strong></font><br /><br /><strong>Unable to determine connection method on a link!<br /><br />Known methods: NONSSL SSL</strong><br /><br />'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); } else { $link = str_replace('&', '&', $link); } return $link; } and this is the code in the install instructions: //// // 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('<br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('<br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . $_sid; } return $link; }</b> will it be a problem if I continue the installation in the 2.3.1 version? regards
×