Search Results for 'bbpress'
-
Search Results
-
Topic: Hooks & Filters Docu
Rather than just keeping private notes on the hooks and filters I found, I thought it best to maybe start a list here with everyone, just as a rough working documentation of the hooks and filters.
For future ref/for people that don’t know, a hook is a means of bbPress making your plugin run every time a certain thing happens. To get that to work, put this code at the very bottom of your plugin:
add_action( 'hook_name', 'functionname' );
Filters are very similar to hooks, only it gives your plugin some data, you can then do something with the data (filter it), and then pass it back. To register for filters, put this code at the bottom of your application; remember to accept the parameters in your function and return them as appropriate.
add_filter( 'filter_name', 'functionname' );
Note that in both cases you want the name as a string and the function’s name as a string, no brackets or parameters at the end of it! An optional third parameter is the priority of your function; default is 10, so set this higher if you want it to execute last or lower if you want it to execute earlier.
Some Filters
topic_title
– this passes the topic title to your function when the threads are being listed, like on the (default) front page.bb_allowed_tags
– this is the array of HTML tags you can use in your posts. Hang a filter on this and add elements to the array if you want to allow more tags.Some Hooks
bb_head
– this is called when the HTML<head>
element is being filled, so you can add stylesheets or javascript and the like.bb_user_logout
obviously gets called when someone logs out.bb_init
when someone logs in?bb_new_user
when someone registers; passes the ID along I thinkbb_profile_menu
– haven’t figured out how it works; I think it’s to do with the tabs at the top of the profile.If you know any more hooks or filters, or find ’em, please post them here with a quick description if necessary!
Hi,
I have placed
<?php login_form(); ?>
in the wordpress sidebar and it doesn’t appear however once I goto the forum pages it displays the login form or the welcome messages.I have the wordpress header file linked in the bbpress config.php file aswell.
Does anyone know what might be the problem?
Thanks,
Rich
Hello,
I can use one installation and run many wordpress sites (http://me.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/) All you need to modify the config.php
Do you think this method can apply to bbpress as well?
Topic: Registration issue
I have done a complete site re-design and have been debating between using vBulletin, which I own, or bbPress. I decided to try out bbPress purely from the simplicity and low-maintenance aspect. But I am having a registration issue that may be cookie related, but I am not sure.
I have bbPress installed within my WordPress directory. I also have bbPress integration as well as WordPress integration to keep users synced between the two (I hope that is what I was supposed to do).
My WordPress register page seems to be working:
http://www.dreamindemon.com/Blog/wp-login.php?action=register
But my bbPress does not:
http://www.dreamindemon.com/Blog/forum/register.php
I have verified that registering in WordPress does integrate the user automatically into bbPress.
Any ideas on what I should be looking at to resolve this?
Topic: BbLD problem
Hi.
I know that’s not the wordpress forum, but my problem is about bbpress so i’ll ask there.
firstly, look at this: http://ram.org.pl/forum/
everything seem to be working ok, but click on the ‘latest discussion’ called ‘ostatnio na forum’ in my sidebar on the right. there’s a problem with links to topics. how to resolve the problem?