States for total member counter

Questions related to the configuration of Joomla, Templates, and Security related questions/issues
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Jan 06, 2010 4:34 pm
Hi,

i want to include the member stats (gk quay theme) in a other place -> not a modul position!
I want to have it in the denied box, on my start page. You can see it here http://www.zizdo.com, it should be in the yellow area
.

best regards
User avatar
Fresh Boarder

GK User
Thu Jan 07, 2010 8:28 pm
It can be a little bit complex but it is possible, because Joomla! offers module renderer - our templates render main menu by this way (you can analyze it in file menu.php) :)

I hope that you know PHP basics :)

so you have to put this code on your site:
Code: Select all
$options = array( 'style' => "raw" );
$module    = JModuleHelper::getModule( "mod_mainmenu", "user_menu" );
$module->params = "PARAMS";
echo JModuleHelper::renderModule( $module, $options );


in first line you set style of module rendering - raw/xhtml etc.
in second line you set module type and title of the module (from module manager in admin panel).
in third line you put module parameters - you can get it from your MySQL database in jos_module table - column "params" (you can also get it by SQL query - more flexible but slower solution).
the fourth line outputs the module.
User avatar
Administrator

GK User
Thu Jan 07, 2010 11:12 pm
Thank you! I think i have understand it. I try it and let you know if it work ;)
User avatar
Fresh Boarder


cron