Contributions
Category Descriptions MS2 1.4
Original Category Descriptions author is Brian Lowe <blowe@wpcusrgrp.org>.
with my limited osc/php coding knowledge I have just carefully changed a few little things so that it may be compatible with the latest MS2 release.
Have it running very well on my MS2 test store.
Please back up your files before installing this mod.
Expand All / Collapse All
All I've done is to ingrate the changes below into one coherent package. In addition, I've made edits to category_insert.txt so that all the "cancel" and "back" buttons work properly with a few cosmetic changes to boot. I'm not supporting this; however, should you need support, you can post in the forum (my button changes are also detailed there; however, note that all the changes are in catalog/admin/categories.php)
http://forums.oscommerce.com/index.php?showtopic=138455
Scott
Display Sub-Category Descriptions (Screenshot added)
Please see included Screenshot.png
This *patch* adds:
- In the OSC-Configuration, you can define, if a sub-category-
Description should be displayed and if it should be truncated.
After the Installation, you have the following setting in
the OSC-Configuration:
Len of Sub-Category Description Display: <Value>
If value < 0 : Don's show Sub-Category descriptions
If value == 0 : Show the complete Sub-Category description
If value > 0 : Truncate & strip_tags the Sub-Category description
and display the result.
- There are 3 new Category-Header and Description CSS-Classes
Installation:
~~~~~~~~~~~~~
1. Execute
Add Config to DB.sql
to create the new Configuration-Entry
2. Copy
catalogincludesfunctionscategories_description.php
to have two new function:
tep_get_category_heading_title($category_id, $language_id = '')
tep_get_category_description($category_id, $language_id = '')
3. Add the 3 patches as described in the included Info.txt
06.08.2006,
Thomas
This is not the complete package.
This mod makes changes to 3 pieces of code, in order to allow the removal and deletion of category images. Without this you can't delete or remove a category image, only replace it.
So you should only use this you have Category Descriptions already installed. I think you need "MaxiDVD Added for Ulimited Images Pack!" as well. Check if you have "Remove" and "Delete" check boxes for your product images. If you do, then this will basically just adds those same check boxes to the category image.
New readme.txt file.
-fixed a few typos and a few other small improvements
to the installation instructions for non-ACA users.
To get the latest full v1.9 package, refer below for the latest full package.
See: http://forums.oscommerce.com/index.php?showtopic=138455
ACA module replaces the modifications of categories.php, but the rest of the contribution must be installed. i have updated the installation instructions so that it can be used by users and not users of ACA.
This is a full v1.9 package
Some minor changes in this contribution that works very fine !
- added comment in db_changes.sql file to indicate potential problem with the category sort_order value
- readme.txt improvements
- if you installed my contribution "Copy Category" then you also have to change the two SQL requests in the case 'copy_category_confirm' (add the two new table fields)
- added changes in admin/languages.php
- in case you want to display anywhere else the heading title or description, just look in the code for "categories_name".
Addition WYSIWYG for the images to see the file category_with_WYSIWYG.insert
This is a COMPLETE NON-BTS package! There is no longer a need to download previous versions!
I have updated the installation instructions to be more user friendly.
I have included the 1.6 php scripting mod as well as my own small mod for those who use Maxi DVD's WYSIWYG contrib(s) so that the WYSIWYG HTML Editor can also be used for the category description area. You must have Maxi DVD's WYSIWYG contrib(s) installed in categories.php (for product description) already for this to work. (This mod's new code was pulled from code in WYSIWYG with ultra pics.)
This mod, and Garry Childs' php scripting mod are both optional for this contribution. It is unkown at this point if both of these mods will work together, I recommend either installing one or niether.
You can install the original contrib with or without one of these mods from this package!
This is a correction for v1.5 NON-BTS version.
*** Correction to add missing </table> tag***
Locate the following lines
</td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
Change the
</td>
to
</table></td>
Correction of the installation intructions for this contrib to work correctly with the newest MS2
This is just a small mod to the 1.5 release (Not the BTS version). It enables php scripting to be included in the categories description.
I am very sorry but I said:
[QUOTE]
Warning:
if you don't have the BTS installed already , don't use this contribution!
[/QUOTE]
Which probably is very confusing. The original "Category Descriptions" contribution is perfect for a normal osC2.2 MS2!!!
But the "Category Descriptions for the BTS", should only be used together with the BTS.
So if you don't want to use the BTS, just use the 'normal' "Category Descriptions MS2 1.4".
Paul
Version 1.0 of Categories Descriptions for the BTS on osC2.2 MS2.
I made some changes to make the Category Descriptions version 1.5 (1373)
work with the Basic Template Structure version 1a (1263) contribution.
Please tell me if you find any errors, PHP and osC are both quite new to me.
Warning:
if you don't have the BTS installed already , don't use this contribution!
Some files updated for MS2.
tep_get_uploaded_file changes to new upload plus a updated addition to the catagory.php file in admin.
Original Category Descriptions author is Brian Lowe <blowe@wpcusrgrp.org>.
with my limited osc/php coding knowledge I have just carefully changed a few little things so that it may be compatible with the latest MS2 release.
Have it running very well on my MS2 test store.
Please back up your files before installing this mod.
Note: Contributions are used at own risk.