Search Results for 'code'
-
Search Results
-
Hello,
There is a bug in bb-includes/functions.bb-forums.php, at line 101 in bbpress v1.0.2. The code assumes that the forum_id is the sames the array_id when the array is flattened. This is not always the case if you apply_filters to the forum list such as private forums does.
The code ccurrently reads:
_forums[$_id] = $forums[$_id]
Which may not be true if the forum id is not the same as the array id.
This code does fixed the problem…. The key is to convert forum_id into an array enumerator so that when you look at $_ids you compare to the proper array which is no longer the full array but one with missing topics/forums.
$forums = (array) apply_filters( ‘get_forums’, $forums );
+ foreach($forums as $f) {
+ $fids[$f->forum_id] = $f;
+ }
if ( $child_of || $hierarchical || $depth ) {
$_forums = bb_get_forums_hierarchical( $child_of, $depth, $forums );
if ( !is_array( $_forums ) )
return false;
$_forums = (array) bb_flatten_array( $_forums, $cut_branch );
foreach ( array_keys($_forums) as $_id )
+ $_forums[$_id] = $fids[$_id];
Topic: / in usernames?
Is it possible to allow for / in usernames?
I recently converted my phpbb board to bbPress, but one of my members had a username that looked like ///Abcd.
So as opposed to forcing him to change his username, is it possible to dig into the code and allow /’s for usernames?
Any help would be greatly appreciated!
Edit: Sorry if this thread is in the wrong forum!
Hi.
I have added a bbpress to a wordpress. Everything works fine, but now I would like to change how the appearance is in the forum list on the front page. Right now I am not fully happy with that. I can see that the class is
either: <tr class=”alt”> or only <tr> which affects how each row is presented. But I can not find this in the style.css file. It drives me nuts…

Also where forums is presented I get the <bb-precedes-sibling bb-follows-sibling bb-root> and alt at the end. But where is it controlled how they look like?
Regards,
Chris
Topic: Profile edit URL
I want to add an “edit” button right next to the “log out” button, but i’m not sure what calls this the page. I checked the logged-in.php and found this:
<?php printf(__(‘Welcome, %1$s’), bb_get_profile_link(bb_get_current_user_info( ‘name’ )));?>
That generates “Welcome, username”
What code generates the “edit” button?
I checked the profile.php and I found that this code outputs an EDIT button:
<?php if (bb_current_user_can( ‘edit_user’, $user->ID )) : ?>
<?php printf(__(‘You may edit this information.’), esc_attr( get_profile_tab_link( $user_id, ‘edit’ ) ) ); ?>
<?php endif; ?>
The downpart of this code is, the output is only visible when you actually are on the profile page. I need something like this which is visible no matter which you page you are.
Ideas?
Hey everyone,
I recently installed bbPress and thought I was finally done with everything, but now, I get the error
Fatal error: Call to undefined function bb_get_header() in /usr/home/
/public_html/forum/forum.php on line 1whenever I go to one of the forum categories. I’ve checked over the code in the file and everything seems fine (and this is the only thing that has an error on the forum, as far as I can tell), so I’m not sure why it’s saying the function is undefined…if anyone could help me resolve this problem, I’d greatly appreciate it; I’ve been looking forward to having a functioning forum for quite a while!
Some additional information, if it helps: I’m using the blank 3 column theme (modified, of course), and the Post Count Plus plugin with bbPress 1.0.2
Thanks in advance,
Emile
that I might have made a mistake. To hear that I should be downgrading to an older version is pretty frightening too, because this is for a client, and I wasn’t planning on sticking around for years to fix all the potential things that might happen from using a year old version of something (especially when support for the .9 version gets dropped altogether.
Always delete all cache+cookies to test it…