Kreacom.dk
Print
Article Index
HtmlFix Bot
The solution
Htmlfix in PDF and Modules
Download

As of Joomla 1.010 mambots are automatically executed in modules, making this fix unnecessary.

Unfortunately Mambo ignores mambots in PDF view. If you would like htmlfix to work in PDF files, you must apply the hack to the file pdf.php in the <mambo>/includes folder. The hacked file is contained in the zip package. You can also get it here: http://mamboforge.net/projects/mosif

The same applies to modules. If you use any mambot in for example a user module, they won't work. This means your neat html code wrapped in htmlfix tags does not show up!

If you need mambots to work in modules, you can make a hack to the file includes\frontend.html.php:


1. Take a backup of the file (just in case!)
1. Open the file in a text editor
2. Near the top, find the line: function module( &$module, &$params, $Itemid, $style=0 ) {
3. Just after the line add these 5 lines:

  global $_MAMBOTS;
  $_MAMBOTS->loadBotGroup( 'content' );
  $row->text=$module->content;
  $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, 0 ), true );
  $module->content=$row->text;

Use the hacks at your own risk! Maybe some mambots don't like to get executed in modules. So far I haven't had any problems, though.



Last Updated ( Wednesday, 15 November 2006 )