Help Me Not Hack bp-forums-templatetags.php — Forums stickies and thread counts
-
So a little knowledge is a dangerous thing.
By changing line 163 in bp-forums-templatetags.php to $no_stickies = null; I get what I want — sticky threads to be sticky in the main forums view as well as in individual group forums.
By changing line 804 to ‘per_page’ => 30, I get what I want — 30 posts per topic page. (Because for some reason passing it as a parameter of bp_has_forum_topics() shows me every post twice — possibly something to do with using the Forums extras plugin).But both of these changes will be overwritten by updates to Buddypress. That is, of course, A Bad Thing. I know I need to be passing parameters to bp_has_forum_topics() in forums/forum-loop.php and groups/forum/single/topic.php. What I can’t seem to figure out is how.
So: I’m wondering if someone might be able to help me passing parameters properly from my child theme files so that I don’t have to remember these hacks and redo them every time I update BP? Thanks!
- The topic ‘Help Me Not Hack bp-forums-templatetags.php — Forums stickies and thread counts’ is closed to new replies.