Help! trying to make contrib for BTS and Catagory Desc.
paulm2003 <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <830abf75b622b8dabdd7fe2588347541@osCommerce-Forums> |
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227280#227280
----------------------------------------------------------------
I am trying to make the Catagory Descriptions() contribution work on BTSv1a (), and make a new contribution out of it.
Now I am stuck at this point :( :
I have to replace [code]echo HEADING_TITLE;[/code]
with something like this:[code]if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_heading_title'])) ) {
echo $category['categories_heading_title'];
} else {
echo HEADING_TITLE;
}[/code]
But I don't know where I can and should do this, it probably isn't a good idea to do this in the template files, and I can't do it in index.php because the BTS removed the lines from index.php . What file can I edit to insert the new HEADING_TITLE by the Category title and description.
Or should I use a different approach? :?
(I know some PHP but I am not an expert yet on PHP)