- Posts: 109
- Thank you received: 2
Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.
Question Question about Adverts using Kunena_msg_x
- bigmike0601
-
Topic Author
- Offline
- Senior Member
-
Less
More
16 years 4 months ago #52578
by bigmike0601
Question about Adverts using Kunena_msg_x was created by bigmike0601
It works fine for me, but now I want to display only in 1 of my many categories. Is this possible?
Please Log in or Create an account to join the conversation.
16 years 4 months ago #52598
by @quila
Replied by @quila on topic Re: Question about Adverts using Kunena_msg_x
Hi bigmike
all is possible with hack. Open the file message.php and at the and you will find that code
Replace with this
Now publish your module in position "kunena_msg_x_y" where x is number of post (like before) and y is number of category where will show module.
Hope this helps
Regards
all is possible with hack. Open the file message.php and at the and you will find that code
Code:
<!-- Begin: Message Module Positions -->
<?php
if (JDocumentHTML::countModules('kunena_msg_'.$mmm))
{
?>
<div class = "kunena_msg_<?php echo $mmm; ?>">
<?php
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'kunena_msg_'.$mmm;
echo $renderer->render($position, $options, null);
?>
</div>
<?php
}
?>
<!-- Finish: Message Module Positions -->
Code:
<!-- Begin: Message Module Positions -->
<?php
if (JDocumentHTML::countModules('kunena_msg_'.$mmm.'_'.$catid))
{
?>
<div class = "kunena_msg_<?php echo $mmm; ?>_<?php echo $catid;?>">
<?php
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'kunena_msg_'.$mmm.'_'.$catid;
echo $renderer->render($position, $options, null);
?>
</div>
<?php
}
?>
<!-- Finish: Message Module Positions -->
Now publish your module in position "kunena_msg_x_y" where x is number of post (like before) and y is number of category where will show module.
Hope this helps
Regards
Please Log in or Create an account to join the conversation.
- bigmike0601
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 109
- Thank you received: 2
16 years 4 months ago #52861
by bigmike0601
Replied by bigmike0601 on topic Re: Question about Adverts using Kunena_msg_x
@quila,
Thanks so much, I have additional questions though. Using this modified code. Can i still publish other banners on all catergories using the original "kunena_msg_x"?
Thanks so much, I have additional questions though. Using this modified code. Can i still publish other banners on all catergories using the original "kunena_msg_x"?
Please Log in or Create an account to join the conversation.
16 years 4 months ago #53367
by @quila
Replied by @quila on topic Re: Question about Adverts using Kunena_msg_x
sorry bigmike for delay
yes you can if you dont remouve old code, just add new code and you can use both position.
Only one thing, if you go in that way in some cat. you'll have two modules published, but you can publish one after first message and other after second.
Regards
yes you can if you dont remouve old code, just add new code and you can use both position.
Only one thing, if you go in that way in some cat. you'll have two modules published, but you can publish one after first message and other after second.
Regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.112 seconds