|
Sunday, 25 July 2004 |
|
Page 3 of 3 In our categories description example, this is done by editing the component/com_content/content.html.php file, and replacing line 67 <?php echo $title->description; with <?php echo mosbot( $title->description ); Thats it! If you know what you are doing, you can now go around the component codes and wrapping the output variables with the mosbot(...) function to make them fully mambot aware. This has certainly been tested with category descriptions, contacts, Events and couple of other components sucessfully. However, I haven't tested all the mambots with these and am somewhat unsure how a category description will react if a mospagebreak is included in there (just cos you can do it, does not necessarily mean you should). Drop me a line if you find this useful, or get any problems and we can work together to get them resolved. Remember, always backup your files before you make any changes. I will probably update the forum to include a mosbot_me section, to highlight code snippets of other components to include this functionality - or you can, to show how it's done. Enjoy :-)
|