- Posts: 42
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Question Adding module positions to my kunena install.
17 years 6 days ago #13712
by randelld
Adding module positions to my kunena install. was created by randelld
Hi all,
I have made use of the module positions provided in kunena docs at the following URL docs.kunena.com/index.php/Module_Positions
But I would also like to add my own module positions. Is there a tutorial for adding mod positions? if not, can anybody possibly explain which file I need to edit in order to add one or two please.
Thanks in advance guys.
I have made use of the module positions provided in kunena docs at the following URL docs.kunena.com/index.php/Module_Positions
But I would also like to add my own module positions. Is there a tutorial for adding mod positions? if not, can anybody possibly explain which file I need to edit in order to add one or two please.
Thanks in advance guys.
Please Log in or Create an account to join the conversation.
17 years 3 days ago #14046
by Matias
Replied by Matias on topic Re:Adding module positions to my kunena install.
Add this code (rename kunena_announcement, kna_ancmt to something else):
Code:
<?php
// load module
if (mosCountModules('kunena_announcement')||mosCountModules('kna_ancmt'))
{
?>
<div class = "fb-fb_2">
<?php
if (CKunenaTools::isJoomla15())
{
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'kunena_announcement';
echo $renderer->render($position, $options, null);
}
else
{
mosLoadModules('kna_ancmt', -2);
}
?>
</div>
<?php
}
?>
Please Log in or Create an account to join the conversation.
17 years 3 days ago #14062
by randelld
Replied by randelld on topic Re:Adding module positions to my kunena install.
Matias, thank you very for taking the time to do this, much appreciated.
Which file do I add it to? and secondly, Do I basically place the whole chunk of code in the place where I want the position to be?? I thought that modules were positioned using css????? I could be completely wrong.
Thanks
Which file do I add it to? and secondly, Do I basically place the whole chunk of code in the place where I want the position to be?? I thought that modules were positioned using css????? I could be completely wrong.
Thanks
Please Log in or Create an account to join the conversation.
17 years 3 days ago #14064
by Matias
Replied by Matias on topic Re:Adding module positions to my kunena install.
Where do you want to put it? 
Yes, just copy the whole thing where you want it to be in (just look if you're outside of <?php ?> tags -- if you're in, don't add them.
Modules are not positioned by css, they are positioned in template php files.
Yes, just copy the whole thing where you want it to be in (just look if you're outside of <?php ?> tags -- if you're in, don't add them.
Modules are not positioned by css, they are positioned in template php files.
Please Log in or Create an account to join the conversation.
17 years 2 days ago #14229
by randelld
Replied by randelld on topic Re:Adding module positions to my kunena install.
Please Log in or Create an account to join the conversation.
Time to create page: 0.215 seconds