paulm2003 Posted September 10, 2003 Posted September 10, 2003 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 echo HEADING_TITLE; with something like this: if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_heading_title'])) ) { echo $category['categories_heading_title']; } else { echo HEADING_TITLE; } 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) Quote
paulm2003 Posted September 10, 2003 Author Posted September 10, 2003 Somewhere between the database and the output HEADING_TITLE has to be replaced by the new catagory descriptions HEADING_TITLE, I think I know how to do it. But I can't figure out where (in what file) I should do this. In addition the catagory descriptions would have to be "defined" at the same place I suppose. Anyone any ideas please? :?: :?: :?: Or is there a document I could read to get a better idea how the osC scripts work? Quote
paulm2003 Posted September 10, 2003 Author Posted September 10, 2003 I feel a bit lonely, talking to myself :( BUT IT WORKS!!!!!!!!! :) :D :lol: I put the code in the template files after all (only a few lines). Now I think of it, there is one advantage. Installing the "adapted" Category Descriptions() will even be easyer than installing the "original" Catagory Descriptions now. No need to edit the index.php file anymore. If anyone is interested i will upload contribution: Category Descriptions(191) for the Basic Template Structure(1263) on MS2 (add to 191 I suppose) Quote
paulm2003 Posted September 10, 2003 Author Posted September 10, 2003 Correction it is: Category Descriptions MS2 1.5 http://www.oscommerce.com/community/contributions,1373 (not contribution 191) :oops: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.