Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hot Tag Count Cannot be Changed

Published on January 24th, 2009 by Andrew

Running 1.0-Alpha-6 and standard theme. All plugins disabled.

Tried changing the number of tags displayed on front page. Made some other changes that work so it isn’t a silly file mgmt issue.

<p class=”frontpageheatmap”><?php bb_tag_heat_map( 8, 20, ‘pt’, 100); ?></p>

The number of tags displayed never changes. It’s always 40.

I checked the trac system and didn’t find a bug. Searched the forums.

Is this a known issue? Is my syntax wrong? This would seem straightforward.

Integration WP + BBPress + Gallery2

Published on January 24th, 2009 by

I am working on a site where I’m integrating wp, bbpress and Gallery2. The integration between WP and BBPress is seamless (WP 2.7 and BBPress 1.0 Alpha6) as is the integration between WordPress and Gallery2. The problem is that when people register in BBPress they can’t access Gallery2…

Does anyone have a solution for this? Can bbpress be forced to call the wordpress registration-script instead of the normal bbpress registration script when registering. I wan’t the extra bells and whistles the bb-press installation allows for through plugins so rerouting and forcing users to register through the wp interface doesn’t really appeal to me…

Malformed Link Markup in Posts?

Published on January 24th, 2009 by

I can’t add links in posts properly :/

When I try to add a link I do it like that:

<a href="http://www.mysite.com/">My Site</a>

but the link generated by bbPress in the post isnt linking to

http://www.mysite.com/

but to

http://www.mysite.com/

:(

Profile edit does not update website field (fail)

Published on January 24th, 2009 by deadlyhifi

When editing a profile (your own or others) the ‘website’ field does not update.

First name, Last name, Location, Occupation, Interests, work fine.

If I put in a website during registration it is added. However, if I try and edit this after registration the field goes blank again.

This in version 1.06a

I’ve also tried it in the latest version (using subversion), with default themes and my own, but no joy.

Modifying core functions with functions.php

Published on January 24th, 2009 by deadlyhifi

I would like to modify the bb_list_tags to show who the author of that tag was (to moderators)

So I created a functions.php in my theme and have copied function bb_list_tags from functions.bb-templates.php file. And done the following (note the changes to the function have not yet been made)

<?php
// to override bb_list_tags to show tag author

remove_filter('bb_list_tags', 'bb_list_tag');

function bb_list_tag( $args = null ) {
$defaults = array(
'tags' => false,
'format' => 'list',
'topic' => 0,
'list_id' => 'tags-list'
);

$args = wp_parse_args( $args, $defaults );
extract( $args, EXTR_SKIP );

if ( !$topic = get_topic( get_topic_id( $topic ) ) )
return false;

if ( !is_array($tags) )
$tags = bb_get_topic_tags( $topic->topic_id );

if ( !$tags )
return false;

$list_id = attribute_escape( $list_id );

$r = '';
switch ( strtolower($format) ) :
case 'table' :
break;
case 'list' :
default :
$args['format'] = 'list';
$r .= "<ul id='$list_id' class='tags-list list:tag'>n";
foreach ( $tags as $tag )
$r .= _bb_list_tag_item( $tag, $args );
$r .= "</ul>";
endswitch;
echo $r;
}

add_filter('bb_list_tags', 'bb_list_tag');

?>

Is this the correct way to change a core function? Changing anything within it doesn’t appear to override the original function.

Theme Request

Published on January 24th, 2009 by

Hey! Can someone make me a theme like this page?

tinyurl.com/csnqhe

Change Design of Pagination

Published on January 24th, 2009 by

[Sorry if this is the wrong place to ask, I couldn’t find a better one]

I know it a lot to ask but could someone help me with a short piece of code please? I never worked with PHP and would like to insert a bit of HTML into a piece pf PHP. I would really appreciate any help.

The Problem:

I have some not so web savvy users at my board and I’d like to make the pagination of threads better to see for them.

At the moment it’s kinda tiny and has no spaces between the page numbers for some strange reason.

(Screenshot of how it looks at my board: http://f.imagehost.org/0070/toosmall.png)

I guess I found the place to change it in the post-template.php

$output = '';
if ( $multipage ) {
if ( 'number' == $next_or_number ) {
$output .= $before;
for ( $i = 1; $i < ($numpages+1); $i = $i + 1 ) {
$j = str_replace('%',"$i",$pagelink);
$output .= ' ';
if ( ($i != $page) || ((!$more) && ($page==1)) ) {
if ( 1 == $i ) {
$output .= '<a href="' . get_permalink() . '">';
} else {
if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
$output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">';
else
$output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">';
}

}
$output .= $link_before;
$output .= $j;
$output .= $link_after;
if ( ($i != $page) || ((!$more) && ($page==1)) )
$output .= '</a>';
}
$output .= $after;
} else {
if ( $more ) {
$output .= $before;
$i = $page - 1;
if ( $i && $more ) {
if ( 1 == $i ) {
$output .= '<a href="' . get_permalink() . '">' . $link_before. $previouspagelink . $link_after . '</a>';
} else {
if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
$output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">' . $link_before. $previouspagelink . $link_after . '</a>';
else
$output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $link_before. $previouspagelink . $link_after . '</a>';
}
}
$i = $page + 1;
if ( $i <= $numpages && $more ) {
if ( 1 == $i ) {
$output .= '<a href="' . get_permalink() . '">' . $link_before. $nextpagelink . $link_after . '</a>';
} else {
if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
$output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">' . $link_before. $nextpagelink . $link_after . '</a>';
else
$output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $link_before. $nextpagelink . $link_after . '</a>';
}
}
$output .= $after;
}
}
}

if ( $echo )
echo $output;

return $output;
}

And I would like to change the visual output to this

<p><strong>  Next Page ></strong></p>

for “Next”

and

<p><strong><  Previous Page  </strong></p>

for “Previous”

Thanks for your time :)

[and please excuse my poor English xD]

No Table Prefix, Really

Published on January 24th, 2009 by

After a successful installation, the main page shows as follow:

” You must specify a table prefix in your bb-config.php file. “

I AM sure my config.php has defined table prefix as follow:

” $bb_table_prefix = ‘bb_’; “

after I add the code, my main page shows as follow:

” $bb_table_prefix = ‘bb_’;You must specify a table prefix in your bb-config.php file. “

What is going wrong?

rss latest discussions in wordpress

Published on January 23rd, 2009 by tomwi

I am using the rss method to pull latest discussions to a wordpress widget, but it is slow to update. If I add a topic it doesn’t show up on the other page for a while. Anyone have a better solution? WordPress 2.7 and bbpress 1 of course.

Adding Theme Pages

Published on January 23rd, 2009 by

I have bbPress 0.9.0.4 up and running and have heavily modified a theme to change the front page, and forum pages. Here is my hierarchy:

Front Page – displays only the top level forums (Parent), but also display sub forums descriptions (Group), then the sub forums of each group (Child) are listed and linked. Looks really cool and is exactly what we need for a project I am working on. I have modified the forum.php to check what type of forum it is (Parent, Group, Child) and load the correct file.

Now, I would like to have a “Hot Topics” page where any item set as “sticky to the top” will list just like they would normally list on the standard home page. Is there a way to set bbpress to load a non-standard file, so like /bbpress/hot-topics.php, which is actually the original forum.php

Hope that hasn’t confused anyone. I have looked around at all the bbPress code to find a hook, action or filter for this, but can’t seem to find it. Thanks.

Skip to toolbar