Published on October 16th, 2009 by hankjin
when I use $bbdb->get_results($sql, ARRAY_K); it reports warning when there is no records in database.
then I checked the code bb-includes/backpress/class.bpdb.php:
936 $key = $this->col_info[0]->name;
937 foreach ( $this->last_result as $row ) {
938 if ( !isset( $new_array[ $row->$key ] ) ) {
939 $new_array[ $row->$key ] = $row;
940 }
941 }
942 if ( $output == ARRAY_K ) {
943 return array_map( ‘get_object_vars’, $new_array );
944 }
945 return $new_array;
It seems when the query result is empty, $new_array is not initialized, so warning happens in Line 943
so I add a line $new_array=array(); before the foreach statement of Line 937, then everything goes well.
The code now looks like this:
936 $key = $this->col_info[0]->name;
937 $new_array=array();
938 foreach ( $this->last_result as $row ) {
939 if ( !isset( $new_array[ $row->$key ] ) ) {
940 $new_array[ $row->$key ] = $row;
941 }
942 }
943 if ( $output == ARRAY_K ) {
944 return array_map( ‘get_object_vars’, $new_array );
945 }
946 return $new_array;
so I think maybe this is a bug.
Published on October 16th, 2009 by kirkpatrick
I have a wordpress.org username (kirk837). I logged into forum here using that, found my profile looked ok, and tried to post. My post is visible to me while logged in, but is visible to no one else (guest or logged in).
In desperation, I created a new registration (the one I’m posting from now), and posted a copy of my old post — worked just fine.
So — it does say “To participate, register or login with your WordPress.org username:” But that didn’t work for me, even though that username was recognized upon login.
What’s going on?
Published on October 16th, 2009 by kirkpatrick
I have a deep integration of bbPress 1.0.2 and WordPress 2.8.4 at riogallinasschool.org, using a heavily modified Kakumei template.
Integration works well. I only register users from WP. Logins work from either BBP or WP. WP users appear correctly to BBP (every user can log in from both WP and BBP)..
Logout from WP is fine regardless of where the login occurred (so, no cookie problems).
However, when logging out from BBP (using the Kakumei “Log out” link), the logout occurs (so cookies are working), but I am redirected to a 404. The logout link is bb-login.php?logout=1. I have found that, on the other hand, the link bb-login.php?logout=0 (as typed in) works just fine — logs out, redirects back to page.
I have hacked a solution. I don’t understand it (I haven’t yet been able to follow the use of the GET variable logout to find where it’s value is used anywhere). But in case anyone else has this problem, here’s the hack.
The logout link is produced by the function call bb_logout_link(); in the template’s logged-in.php file.
bb_logout_link is defined in bb-includesfunctions.bb-template.php, and effectively calls bb_get_logout_link with the same arguments. In the latter function, around line 2737, the value logout=1 is hard-coded.
I have changed the code for bb_get_logout_link so (a) it defaults to logout=1 if logout is not specified in the call to bb_logout_link (thus the hack is non-destructive), but (b) the call bb_logout_link(‘logout=0’); overrides the default.
This produces the working link, so the “Log out” link works.
Here’s the code
Old line 2737 of bb-includesfunctions.bb-template.php was
$query = array( 'logout' => 1 );
I changed that to the following (which works because the args were “extract”ed, so $logout has a value from the call to bb_logout_link):
if ( $logout==NULL ) $logout = 1; // Defaults to 'logout=1'
$query = array( 'logout' => $logout ); // Changed '1' to '$logout'
Then in the template’s logged-in.php, I added the argument to the call to bb_logout_link:
bb_logout_link('logout=0');
It works for me.
Has anyone else has had this problem? If not, I must have broken something somewhere else — so I’d like to know.
Can anyone explain the bug, or explain where the value of logout is used? (I’ll keep looking, and will post a followup if I find it, but I’m not expert at the subtleties of apply_filters, which appears to be the only possibility.)
Thanks.
Published on October 16th, 2009 by tempestchasing
I am new to the forum, so I hope I posted it in the right place.
I am wanting to add a simple button-link to my WordPress Blog Post template saying something like “Discuss In Forum”. I am using WordPress-bbPress-synchronization to post Blog items to my Forum. This plugin generates a link in the most recent comment that allows you to visit the correct topic for that blog post.
I would also like to add that I do not know code, so a simplified question is this: How can I add a button to my forum for the correct topic without changing the link every time I use it? Is this something relatively easy to accomplish?
Thanks in advance for help
Published on October 16th, 2009 by nickaster
Dig this –
I’m about to lauch the forum, so I deleted all my test posts. Now whenever I try to create a new post (even logged in as Admin) I’m taken to an error screen saying “This Topic Has Been Closed” …. what’s going on?
See for yourself – http://www.triplepundit.com/forum
The only thing I did prior to it ceasing to function was delete a bunch of test posts…
Published on October 16th, 2009 by adamcap
Hey there,
I want to prevent users from creating new topics on my forum. I have everything synced with my WP installation, so new topics are created automatically with every new post.
I guess I just want to remove the links from the forum template/theme to create new topics…is this possible?
Thanks in advance for any help!
Best Regards,
Adam
Published on October 16th, 2009 by thekmen
Hi all,
just wondering if anyone wants to help testing with a Hybrid & bbPress theme?
The wordpress end is a child theme of Hybrid, & bbPress end is based on Justin Tadlocks experimental bbPress theme.
I’ll fix up a few bugs tomorrow & let anyone who wants it have it in the next few days.
You can set the forum url in the wp admin & the link will get added to the page nav.
You can also set user registrations to be done by bbPress instead of WordPress, and profile links to the bbPress profile pages.
There is also an area in the bbPress admin to copy & paste your page_nav & cat_nav source, not the same as full integration, but a lot easier…
Feel free to try it out, register & post rubbish if you want.
http://im-a-celebrity.com/theme/
Published on October 16th, 2009 by mralec
Hi Gang, I see others have had difficult getting the installer to connect to the database. I do as well. here is my status:
1) I reviewed all my database name/user/password. confirmed against wp-config file. all good.
2) Database on same server as wordpress and bbpress install;
3) No bb-config file is created yet, so nothing to delete. There is a bb-config-sample which I have left in tact.
4) My host is Dreamhost; my wordpress blog running like a champ
5) bbpress folder installed in root directory of wordpress
Still won’t connect. Thoughts? THANK YOU
THANK YOU.
Published on October 16th, 2009 by xarzu
I have managed to get BBPress and WordPress Sync installed on my web site. That is, the sync plug in (the latest one) is installed and “working” (albiet not as I want it to be). There were a lot of check boxes and input involved to make the plugins (both on the BBPress side and the WordPress) work and see each other. In some of the check boxes I just clicked on them because I was unclear about what they meant.
The way I would like my WordPress to work is like this. When the user makes his comments about the blog, he is making them in the Forum. So the whole input field where he posts his responses to blogs are not there. Instead there is a link that takes him to the forum where responses are mirrored as responses to the blog.
If a user goes directly to the forum (an option I will allow). And makes a brand new discussion thread, it is not automatically posted in the blog and the responses to that post are not reflected in the blog as well.
There are lots of options on the Dashboard for setting up the plugins. Which options should I check and how do I customize the plugins such that my blog and forum behave like I want them to?
Published on October 15th, 2009 by nickaster
Check this out:
http://www.triplepundit.com/forum/topic/grumpy-thursday?replies=2#post-20
See the reply? There’s a backslash appearing before the apostrophe in the word “isn’t”. What could be causing that?
Thanks!