- Posts: 4
- Thank you received: 0
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 Invisible forum, yet still accessible if linked to?
I know this sounds strange, If there would be some coding involved that's no problem for me.
Thanks in advance
Please Log in or Create an account to join the conversation.
In listcat.php there's a loop going through sections and another for categories. You need to add
if (...) continue;
into there to skip all the forums you want to. If you have hidden subcategories, you need to modify other files, too, so I recommend hiding only root section. Then task should be fairly easy..
listcat.php 154 into something like this:
if (in_array($cat->id, $allow_forum) && ($kunena_is_moderator || $cat->id=$catid || $cat->id!=123))
Hides one main section.. You can still have forums in it and list them etc.. It also obeys normal ACL rules.
Please Log in or Create an account to join the conversation.
I assume where id!=123 i replace 123 with the id of the category I wish to hide?
Thanks again.
Please Log in or Create an account to join the conversation.
<!-- F: Cat list Top -->
<?php
if (count($categories[0]) > 0)
{
foreach ($categories[0] as $cat)
{
$obj_fb_cat = new jbCategory($kunena_db, $cat->id);
$is_Mod = fb_has_moderator_permission($kunena_db, $obj_fb_cat, $kunena_my->id, $is_admin);
if (in_array($cat->id, $allow_forum) && ($kunena_is_moderator || $cat->id=$catid || $cat->id!=7))
{
?>
<!-- B: List Cat -->
<div class="<?php echo $boardclass; ?>_bt_cvr1" id="fb_block<?php echo $cat->id ; ?>">
<div class="<?php echo $boardclass; ?>_bt_cvr2">
<div class="<?php echo $boardclass; ?>_bt_cvr3">
<div class="<?php echo $boardclass; ?>_bt_cvr4">
<div class="<?php echo $boardclass; ?>_bt_cvr5">
Unfortunately it doesn't appear to be working and it's a little hard to describe what's happening but it's basically only showing two forums (as opposed to just hiding one category) and showing them multiple times in the wrong categories.
I'm not sure how I can explain it further but i'll try respond to any questions promptly.
Please Log in or Create an account to join the conversation.
if (in_array($cat->id, $allow_forum) && ($kunena_is_moderator || $cat->id==$catid || $cat->id!=7))
Missed one = in $cat->id==$catid
So you need to have permission for that category and one of the following:
1) be a moderator
2) be in that category
3) not category 7
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.