I want to change the code on com_kunena/template/default_ex/showcat.php Lines 338-349 to be the same as from com_kunena/template/default_ex/fb_category_list_bottom.php with regards to the "mark this forum as read" button.
BUT
I want to amend the code so it will only mark the threads in a particular category as read.
The reason for this change is that in a forum category, the link at the bottom "mark this forum as read" is only appearing as a standard link, and I want it to be a button the same as on the category home page.
Can anyone please advise what code changes I would need to make?
I know I need to change the last input type to be GEN_MARK_THIS_FORUM_READ but I am not sure what else needs changing.
Code:
<?php
if ($my->id != 0)
{
?>
<form action = "<?php echo $mainframe->getCfg("live_site")."/index2.php";?>" name = "markAllForumsRead" method = "post">
<input type = "hidden" name = "markaction" value = "allread"/>
<input type = "hidden" name = "Itemid" value = "<?php echo FB_FB_ITEMID?>"/>
<input type = "hidden" name = "option" value = "com_kunena"/>
<input type = "hidden" name = "no_html" value = "1"/>
<input type = "submit" class = "button<?php echo $boardclass ;?> fbs" value = "<?php echo _GEN_MARK_THIS_FORUM_READ ;?>"/>
</form>
<?php
}
?>
Cheers
Danielle