Contributions
Category Description v1.00
This mod will allow you to add a category description when adding or editing category descriptions to your site. The category description has a limit of 255 characters which should be plenty.
Expand All / Collapse All
This mod allows you to add category descriptions using the admin interface (press Catalog - Categories - Edit). Each category may have descriptions in multiple languages. They are stored in your database, are not limited to 255 characters anymore, and HTML code is allowed: try <br /> for line breaks or <img src="..."> for inline images!
Since 1.07 this mod is compatible with OSCommerce 2.2rc2a and 2.3.1. It has been tested with PHP 5.2.3 and MySQL 5.0.45.
Patch files are included for "automatic installation" using the Linux command 'patch' (see install*.txt for details).
Category Description v1.08 by osc-oliver
- replaced <br> by <br /> in install_2.3.1.txt. Credit to Eaviator!
- fixed filename of patch file in install_2.2rc2a.txt
- description text improved
In the install_2.3.1.txt at step (5) for index.php both changes are needed! The first change is to display descriptions for categories with subcategories, whereas the second change is for those without subcategories (the "leafs" in your category tree).
BTW: I will release 1.08 with some minor fixes in a few days.
osc-oliver
The instructions for 2.3.1 version have an extra step that is not needed. The first one in index.php file! So you can ignore the following :
FIND (near row 83):
</tr>
</table>
ADD BELOW:
<table border="0" width="100%"
........................................
and proceed with the next step.
: )
The instructions for 2.3.1 version have an extra step that is not needed. The first one ! So you can ignore the following :
FIND (near row 83):
</tr>
</table>
ADD BELOW:
<table border="0" width="100%"
........................................
and proceed with the next one.
No files attached, only the above.
Thank you osc-oliver
: )
This mod allows you to add category descriptions using the admin interface (press Catalog - Categories - Edit). Each category may have descriptions in multiple languages. They are stored in your database, are not limited to 255 characters anymore, and HTML code is allowed: try <br /> for line breaks or <img src="..."> for inline images!
Since 1.07 this mod is compatible with OSCommerce 2.2rc2a and 2.3.1. It has been tested with PHP 5.2.3 and MySQL 5.0.45.
Category Description v1.07 by osc-oliver
- Step (5): ported to OSCommerce 2.3.1
- patch files updated (for automatic installation using Linux)
This mod will allow you to add category descriptions using the admin interface when adding or editing categories to your site. HTML code in descriptions is allowed! (e.g. use <br/> for line breaks)
Category Description v1.06 by osc-oliver
- Step (3): typo fixed
- Step (5): layout changed so that description is left of image, and both are under title
- patch file added for automatic installation with Linux
1.05
- Move category code from catalog/index.php to includes/application_top.php so category name is always available rather than just category description
- Fix typos in install.txt
1.04
Again a very small bugfix in teh install instruction to prevent using the wrong files! (Changed general.php, because it was described as the catalog/includes file, should be catalog/admin/includes/general.php !)
1.03
I updated this package because there were a few things I didn't like as well as some installation issues.
Updated:
Cateogory Description v1.03 by mightyx:
-modigfied the database entry to a text file, so you can use large descriptions (I use html code in descriptions which ususally uses more space!)
-Fixed the description of the general.php file (was the general file in catalog not in admin as it should be)
-Little modifications to the install file to make installation easier to understand
I updated this package because there were a few things I didn't like as well as some installation issues.
Updated:
Cateogory Description v1.03 by mightyx:
-modigfied the database entry to a text file, so you can use large descriptions (I use html code in descriptions which ususally uses more space!)
-Fixed the description of the general.php file (was the general file in catalog not in admin as it should be)
-Little modifications to the install file to make installation easier to understand
Easy install and for multilanguage (i tested on 4 languages), many tnx to Draven and Venezia for original contribution.
(3) /catalog/includes/application_top.php
$categories_desc_query = tep_db_query("select categories_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[count($cPath_array)-1] . "' and language_id = '" . (int)$languages_id . "'");
$categories_desc = tep_db_fetch_array($categories_desc_query);
This mod will allow you to add a category description when adding or editing category descriptions to your site. The category description has a limit of 255 characters which should be plenty.
Note: Contributions are used at own risk.