Search Results for 'code'
-
Search Results
-
Topic: No Filters or Actions ??
Hello folks,
I was hoping that someone could point me in the direction of an ACTION that occurs on the following pages so that I can hook my plugin into them without hacking the core:
bb-edit.php
I have a plugin that needs to be fired when someone edits a post.
Forum layout update
In the backend we do it all through AJAX (how wonderful), except we call the following page bb-admin/admin-ajax.php and the following sections (via a switch statement): add-forums and order-forums.
Except, no actions there to call either. And yes, to the best of my ability, I’ve stuck with the code the whole way through all the functions they call. I’ve yet to find a pluggable one.
===============================================================================
I realise that my phrasing is sometimes considered combative, and I apologise for that, but are we seriously suggesting that at no point is the ability to add/edit/control/order our forum pluggable in anyway; and the same for the editing of a forum post??
I’m more than happy to be wrong here, because right now I’m having one of those “bbPress moments” where you’re not quite sure if you’re losing your marbles or if whoever decided to make these not pluggable is.
Thanks for the help
Topic: Show only Parent Forums
I want to show only the very top level forums on my front page. I have tried:
<?php if ( bb_forums("depth=1") ) : ?>But that didn’t work and all the forums still show up. I only want to show the very top level, so for example if I have the following forums:
Main
- Sub Forum 1
- Sub Forum 2
--- Sub Forum 2.1
--- Sub Forum 2.1
- Sub Forum 3
Community
- Sub Forum 1
- Sub Forum 2
--- Sub Forum 2.1
--- Sub Forum 2.1
- Sub Forum 3Only Main and Community would appear on the home page.
Thanks.