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.

More
17 years 6 days ago #13712 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.

Please Log in or Create an account to join the conversation.

More
17 years 3 days ago #14046 by Matias
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.

More
17 years 3 days ago #14062 by randelld
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

Please Log in or Create an account to join the conversation.

More
17 years 3 days ago #14064 by Matias
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.

Please Log in or Create an account to join the conversation.

More
17 years 2 days ago #14229 by randelld
Thanks Matias,
I managed to do it with relative ease. I've attached a screenshot of the result.

Please Log in or Create an account to join the conversation.

Time to create page: 0.215 seconds