Skip to main content
Home
Blog

Main navigation

  • Home
User account menu
  • Log in

Breadcrumb

  1. Home
  2. MosModule FAQ

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

By ongetc , 4 October, 2009

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!

Book traversal links for MosModule FAQ

  • MosModule: How to embed video w/ ReMository?
  • Up
  • MosModule: How to show contact form in content?
  • Printer-friendly version

Reseller hosting (free)

Hosting24 (w/ ssh)

A2 Hosting

Monthly archive

  • September 2009 (14)
  • October 2009 (11)
  • January 2010 (2)
  • June 2010 (3)
  • October 2011 (1)
  • March 2012 (1)
  • July 2012 (1)
  • February 2017 (564)
  • March 2017 (5)
  • April 2017 (2)

Pagination

  • 1
  • Next page

Popular content

Last viewed:

  • X Library
  • Seagull
  • OpenCms
  • SuperEdi
  • phpGrabComics
  • Yet Another Forum.net
  • LitePublisher
  • osCmax
  • MosModule: How to use snippet?
  • Hostinger

User login

  • Reset your password