MosModule: How to hack CB to parse MosModule in CB tab?

Pick Language to Auto Translate:
AR | BG | CA | CS | DA | DE | EL | ES | FI | FR | HI | HR | ID | IT | IW | JA | KO | LT | LV | NL | NO | PL | PT | RO | RU | SK | SR | SL | SV | TL | UK | VI | ZH | ZH-TW

In summary what you need to do is:
. Look for this function in CB: getViewTabContents
. wrap around the return variable with a call to mosmodule_bot in mosmodule_func.php
. That's it!

With this hack you can now use any mosmodule command in CB tab.

For example: {mosmodule author=admin}

Here are the detail:

On line 3196 of comprofiler.class.php

Replace:
return $return;

With these:
global $mosConfig_absolute_path;
$mosmodulefunc=$mosConfig_absolute_path."/mambots/content/mosmodule/mosmodule_func.php";
if (file_exists($mosmodulefunc)) { include_once($mosmodulefunc); }
if (function_exists('mosmodule_bot')) { return mosmodule_bot($return); }

Enjoy!