Topic Icons Default Icon (Advanced request)
-
I am using the Topic Icons plugin and it works great! However I’d like to display a “Default” Icon as a fallback if the Topic Icon plugin doesn’t do it for me.
Ever since I started using Buddypress and integrated BbPress, Users can now use forum in “Groups” section. When a user creates a new group, A new subforum will appear. So that’s why I need to have a fallback Icon. I can’t manually sit and add numbers everytime there is a new subforum created.
I already have a script for not showing these subforums in my Forums list.
So another option than using a default topic icon would be to filter these topics (From the subforums) out from the Latest Discussions. But then I need a script in Latest Discussions to filter out all topics that come from a subforum. I never managed to do that.
I use this for the forumloop:
`<?php if ( bb_forums() ) : ?>
<?php while ( bb_forum() ) : global $forum; if ($forum->forum_parent != 0) continue; ?>`
But I cant get something similar working with topics. And Im afraid that If i filter out this I will have trouble with the page counter too.
Somehow the best solution would be a Default fallback Topic Icon. Anyone have any idea how I can solve this?
You must be logged in to reply to this topic.