Skip to header Skip to main navigation Skip to main content Skip to footer

User account menu

  • Log in
Home
Blog

Main navigation

  • Forum
  • Home

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

Breadcrumb

  • Home
  • MosModule FAQ
  • MosModule: How to hack CB to parse MosModule in CB tab?
By ongetc | 1:35 PM MDT, Sun October 04, 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

Popular content

MosDashBoard4SB
COAddOns
MosModule: How to show contact form in content?
MosModule: How to use snippet?
MosModule: Can MosModule be used in custom HTML module?
MosModule
MosCom
MoseCMS
MosPrayerLatestX
MosNewsWriter
Pagination
  • Current page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • …
  • Next page next ›
  • Last page »
more
Subscribe to Syndicate

Copyright © 2026 OngETC - All rights reserved

Developed and Designed by CO