Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbpress / wordpress avatar?

Published on April 16th, 2007 by

Does anyone know of a plugin with which i can use on both the aforementioned sites? I’ve integrated both bbpress & wordpress so they use the same profile, and i just want to include a way for users to upload an avatar. and for it to show next to comments. their posts, and in their profile. Any help much appreciated!

Template integration

Published on April 16th, 2007 by

Most of us using bbpress are using wordpress as well. All we want is add the forum feature to our blog easily. If bbpress can just embed in a wordpress page, it will be much easier for us to work with both script. Just my thought :-)

Hide a forum name from the frontpage list

Published on April 16th, 2007 by Null

Hi,

Is this possible at all? To hide a forumname from the list at the frontpage, BUT people can still create/reply on posts from that forum (so the name is only hidden, nothing else changes every1 can still reply/view/edit). In my plugin you can chose a certain forum from a ddlb, but I want to add a checkbox underneeth it saying: hide this forum from the (frontpage)list.

Thx

Instructions: Installing bbPress on Dreamhost

Published on April 16th, 2007 by Sam Bauers

Here is a page I wrote for the DreamHost Wiki that outlines the simple steps to install bbPress at DreamHost.

http://wiki.dreamhost.com/BbPress

Plugin: Support forum version 2.0

Published on April 16th, 2007 by Sam Bauers

I have just uploaded a new major version of the Support forum plugin. This version fixes a couple of bugs, but more importantly moves the plugin into an object oriented class. I have chosen to make it PHP5 only, I hope that doesn’t affect anyone too badly.

This version is recommended for all users of the plugin.

Should be available from here soon: https://bbpress.org/plugins/topic/16

Hooks & Filters Docu

Published on April 15th, 2007 by

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 think

bb_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!

Hyperlinks are showing as plain text

Published on April 15th, 2007 by Null

Hi,

I have made a own forum page that shows the topics from just 1 forum. For this page I used the front-page.php and index.php files as a base. Everything works fine except the hyperlinks. All hyperlinks from the topics are shown as plain text instead of like this: www.test.com

Any thoughts how to fix this?

bbRatings need help with the bb_top_topics() Function

Published on April 14th, 2007 by wmarcy

Here is what I have in my front-page.php:

<h2><?php _e('Hightest Ratings'); ?></h2>
<table id="highest">
<tr>
<th><?php _e('Highest Rated Topics'); ?></th>
<th><?php _e('Rating'); ?></th>
<th><?php _e('#'); ?></th>
</tr>

<?php $topics = bb_top_topics(); ?>
<?php foreach ($topics as $topic); ?>
<tr<?php alt_class('forum'); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>

<td><div class="rating-holder"><?php bb_rating();?>
<td class="num"><?php bb_rating_count(); ?>

</table>

This code is only showing the first topic it comes across with a rating.

See what I am talking about at: http://www.wetworx.com/forums/

Any help would be appreciated.

Problem using a form in a plugin

Published on April 14th, 2007 by Null

Hi,

I have a form to update a plugin’s settings. The problem is, it seems to update on it’s own as well. Seems randomly and appears mostly when surfing through the admin pages. Whats wrong with my form and how to fix it?

The form:

// Update portal
function update_bbportal() {
global $bbdb;

$bbdb->query("UPDATE <code>$bbdb->portal</code> SET pforum_id = '". $_POST['forum_id'] ."', number_of_topics = '". $_POST['number_of_topics'] ."'");
}

// Show form
function bbportal_form() {
?>
<h2><?php _e('Portal Management'); ?></h2>
<h3><?php _e('Portal settings'); ?></h3>
<form action="" method="post">
<table>
<tr><th scope="row"><label for="forum_id"><?php _e('Where do you want to pull the topics from?'); ?></th>
<td><?php forum_dropdown(); ?></label></td>
</tr>
<tr><th scope="row"><?php _e('Number of topics on the portal:'); ?></th>
<td><input type="text" name="number_of_topics" id="number_of_topics" /></td>
</tr>
</table>
<p class="submit alignleft"><input type="submit" onclick="<?php update_bbportal(); ?>" value="Submit" /></p>
</form>
<?php
}

I also no longer want to use the created and used database table “portal”, but use the “bb_update_option” and “bb_get_option”. How to do this?

Thx

Won’t recognize print stylesheet

Published on April 14th, 2007 by kannued

Hello

I have a print stylesheet that will eliminate my left and right columns. But when I go to print preview, it appears to ignore my “print.css”. How do I get it to recognize it?

http://www.canadianbookclubs.com/bkrv/

To call it, I use

<link rel=”stylesheet” type=”text/css”

media=”print” href=”<?php option( ‘uri’ ); ?>my-templates/CdnBookClubsBKRV/print.css” />

Skip to toolbar