MosModule 1.0.8b is released! - Joomla! Forum - community, help and support


the hightlight of new release are:
- fix honor publish/unpublish of article
- add module randomize when list of module present
- in ramdom parameter title can turn off article
- article has parameter show all, introtext or fulltext

description: mosmodule mambot has ability display nested article, exec snippet written in php (without tags) , exec external php script file pass parameter (with tags).  can see example of in "mosmodule\hello.php". 

in mind give me potential of reusing article common article without repeating same content, make article more dynamic enrich php code using snippet or external php script file.  use of parameters can pass variable between mosmodule , external php script.  possibilities endless!


features & usage:
. run legacy mambot support , ability run inside module
. mosmodule mambot displays module, article, exec snippet , external php script inside content item.


usage: (note: space avoid parsing mambot)
  { mosmodule list} - displays list of available modules , block positions.
  { mosmodule module=modulename1,(optional:module2,module3,etc} - ex: {mosmosule module=search,poll}
  { mosmodule random=faq,(option:title)} - displays entire section randomly, default don't show title
  { mosmodule articleid=2,(optional:introtext|fulltext|all)} - displays article inside article, default all
  { mosmodule codeid=2} - displays article inside article code listing
  { mosmodule snippet=2} - execute , displays article inside article php code
  { mosmodule phpinc=hello.php,firtname,lastname} - include php file, execute , displays inside
  article, please make sure create "mosmodule" folder under mambo put php script
  execute mosmodule due potential security implication. can set folder
  of choice in mosmodule parameter screen.

note:
. important: make sure save setting @ least once , enable mosmodule in mambot manager!
. rewrite of modulebot compatible mambo 4.5.1 or above
. default folder external script "mosmodule" can change in param screen
. please see hello.php sample on passing variable between mosmodule , external script
. snippet should not have tags phpinc should have tags
. use can use mosmodule rss feeds anywhere using user module rss url

legacy mambot notes:
- use mosmodule legacy mambot
. copy {root}/mambots/content/mosmodule.php {root}/mambots

- run inside module call other module, hack includes/frontend.html.php around line 51

replace this: echo $module->content;

with this:
$mosmodulefunc=$mosconfig_absolute_path."/mambots/content/mosmodule/mosmodule_func.php";
if (file_exists($mosmodulefunc)) { include_once($mosmodulefunc); }
if (function_exists('mosmodule_bot')) { echo mosmodule_bot($module->content); }
else echo $module->content;

or allow php code in module
$mosmodulefunc=$mosconfig_absolute_path."/mambots/content/mosmodule/mosmodule_func.php";
if (function_exists('mosmodule_bot')) { echo eval('?>'.mosmodule_bot($module->content).'else echo eval('?>'.$module->content.'
by default, module fill width of content area. if wish control width , positioning of modules in content area, want enclose mosmodule tag(s) in div , either assign class controll display in template_css.css file, or use inline styles (if using wysiwyg editor such htmlarea2, need switch source mode in order create
tag).

credit:
. daryl coulthart contribute multi-module parameter
. denis69 idea load intro or fulltext instead of entire article
. someone, forgot name: idea make title optional random section

download info here:
http://extensions.joomla.org/component/ ... itemid,35/

[websmurf edit: link changed extension site, see forum rules]
last edited websmurf on tue feb 13, 2007 9:09 am, edited 1 time in total.
http://ongetc.com (coaddons)
http://opensourcecms.com (cms demos)
extensions.joomla.org/component/option,com_mtree/task,mypage/itemid,35 - (jed)






Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code