I understand your frustration on this issue flatworm, but as ChrisHajer has already told you, there has been some issue with installating bbPress on localhost. Go through the tickets that were linked above so you can get a better idea of the issues and maybe try this. Create a plugin called url-fix.php and put in the information from the link from this post:
https://bbpress.org/forums/topic/730?replies=9#post-4797
Trent
Hi,
I am writing a plugin for BBPress that shows the latest posts from WP (if WP and BBPress are sharing the same database). It’s still in development, but it already works, you just have to write
<?php wp_show_posts(\"\" ); ?>
in any BBpress template.
As you will see, it works, but it has a problem: it does not show WP’s pretty URLs. I would like to call WP’s get_permalink() function, but it uses many WP functions that are not available when you’re in BBPress.
Any advice on how to do this? Or maybe it would be easier to read WP’s RSS?
Thanks!
Here goes the code of the plugin so far (if you don’t care about pretty permalinks, you can use it, it works):
<?php
/*
Plugin Name: WP Posts
Plugin URI: http://thesandbox.wordpress.com
Description: Get a list of WordPress posts from your bbPress (needs to be integrated with WP, sharing database)
Author: Nick Brady
Version: 0.1
Author URI: http://thesandbox.wordpress.com
Install Instructions:
- If you don't have a /my-plugins/ directory in your bbpress installaltion, create it on the same level as config.php.
- Check out: https://codex.wordpress.org/Template_Tags/get_posts
*/
function wp_get_posts($args) {
global $bbdb, $bb;
parse_str($args, $r);
if ( !isset($r['numberposts']) )
$r['numberposts'] = 5;
if ( !isset($r['offset']) )
$r['offset'] = 0;
if ( !isset($r['category']) )
$r['category'] = '';
if ( !isset($r['orderby']) )
$r['orderby'] = 'post_date';
if ( !isset($r['order']) )
$r['order'] = 'DESC';
$now = bb_current_time('mysql');
$posts = $bbdb->get_results(
\"SELECT DISTINCT * FROM \".$bb->wp_table_prefix.\"posts \" .
( empty( $r['category'] ) ? \"\" : \", \".$bb->wp_table_prefix.\"post2cat \" ) .
\" WHERE post_date <= '$now' AND (post_status = 'publish') \".
( empty( $r['category'] ) ? \"\" : \"AND \".$bb->wp_table_prefix.\"posts.ID = \".$bb->wp_table_prefix.\"post2cat.post_id AND \".$bb->wp_table_prefix.\"post2cat.category_id = \" . $r['category']. \" \" ) .
\" GROUP BY \".$bb->wp_table_prefix.\"posts.ID ORDER BY \" . $r['orderby'] . \" \" . $r['order'] . \" LIMIT \" . $r['offset'] . ',' . $r['numberposts'] );
return $posts;
}
function wp_show_posts( $args ) {
global $bb;
$posts = wp_get_posts( $args );
foreach( $posts as $post ) {
echo \"<li>n\";
echo \"<a href='\".$bb->wp_home.\"?p=\".$post->ID.\"'>\";
echo $post->post_title;
echo \"</a><br/>n\";
echo \"</li>n\";
}
}
?>
I do not know php and html. I’ll search for this code line usind WIN. search to find <link rel=\"stylesheet\"
I really do not want to be involved in the process of development of bbPress.
All this really makes me think of using Vanilla.
http://www.getvanilla.com
Vanilla looks more professional and developed, but it is 50% bigger in size.
Code is poetry, equaly unconceptional to everyone.
Page numbers – say a thread has more than 30 replies and falls onto the second page, it’s very irritating having to click the thread’s name and then click again to get to the second page. Next to the page’s name you should simply have the page numbers displayed and clickable, hopefully in a smart way (say showing the first few and the last few). You can see it on this forum, too: say I want to read the second page of posts in the Plugin: Forum Restriction thread, I have to click on the name and then on the second page. Is there maybe even a plugin to list the page numbers next to the page name in the thread listing?
In WordPress you have hooks that let you take actions through your plugin when they’re called, right? I guess bbPress does the same. I specifically want to create an Identicon avatar on registration – it’s not essential, just something I’d like to do. How do I register my plugin to work on that hook, and what hook do I use? Just a list of hooks would be helpful.
And the feature has been gone since earlier than 0.8 (0.75 maybe?). There is nothing in the support-forums plugin that I can think of that won’t work with 0.8.1
Yeah, taking it out was a good idea. My forum doesnt use it and making it something that isnt in the core code makes it more useful as a ‘general’ forum right out of the box and not just a forum software for tech support.
That is unstyled because the path to the style.css file is incorrect. Can you look at the source of that html page and find the line that begins:
<link rel="stylesheet"
My guess is that the path to your stylesheet is incorrect. There have been a couple threads about slashes being changed to back slashes improperly:
https://bbpress.org/forums/topic/700?replies=28
Even more relevant for localhost:
https://bbpress.org/forums/topic/730?replies=9
Here is a trac ticket for the backslash issue:
https://trac.bbpress.org/ticket/594
HTH
edit: there will not be slashes before the double quotes in your html source around stylesheet , unlike this post. It’s a bug they’re working on.
From all those links, I could only get the es_AR one (I’m having some strange problems with my DNS, so it may be just me). So here is my es_ES version.
In the long run you’ll keep users more friendly if you don’t dictate how they browse. Most people (even my mum) know about tabbed browsing now and know to middle click to open a link in a background tab.
Also, FWIW, target is not (and never has been) a standard attribute of HTML4 or XHTML, so if you want your pages to validate, avoid it.
Having said that… The Google Analytics plugin for BBPress filters the content and adds stuff to the anchors, so that should help:
http://boakes.org/download/googleanalytics.txt
I am using xampp&mysql
localhost with no outlet to real web
database name is bbpress
I installed it, but I can’t get graphics.
It even shows forums.
Well, here I go again…
Anyone know the way I might call in the wordpress Profile fields from a users Profile page and display/edit those in the bbpress profile.php and edit-profile.php pages?
Thanks!
There is no activation required. Any .php file in the my-plugins folder will just work.
So says Trent (and I believe him):
https://bbpress.org/forums/topic/714?replies=9#post-4462
I have created a directory named “my-plugins” in the bbpress root directory and put the file named “path-to-url.2.php” into that directory. I think i have to activate that plug-in but i dont know how to do it ? Could you please help me…
Note: I checked config file and other files like it, there seems to be no problem with the slashes…
Thanks for your help…
You have to add these lines to your bbPress config.php file – not sure who posted it, but it’s not my idea.
//your try to sync cookies
$bb->cookiedomain = '.myurl.com';
$bb->cookiepath = '/';
You also have to edit WP core files I think.
wp-settings.php line 190
FROM
define('COOKIE_DOMAIN', false);
TO
define('COOKIE_DOMAIN', '.myurl.com');
I’ve got it set up so at http://www.loinhead.net (and forums.loinhead.net) and it works nicely.
I think this feature was removed from the core and added as a plugin:
https://bbpress.org/plugins/topic/16?replies=1&more=1
Not sure from the release notes if this works with .81 or not, but I imagine the functionality will still be there, just in plugin form, not in the core. I think there were more requests for it to be out than in.
Does anybody know how/where the cookie domain for bbpress is stored? I am not talking about the siteurl or home…I’m looking for the value “Website” in the cookie table in Safari’s preferences – > Cookies window, or the value “domain” in Firefox’s Preferences -> Domain field. I’m having conflicts with WordPress’ integration when I have a user create new password etc. in bbpress. I need to assign the cookie website or “domain” to be .myurl.com instead of http://www.myurl.com.
I too am getting tired of upgrading bbPress all the time and keeping track of my changes, that’s what version control software like svn is for. I was reading this post by SamBauers where he suggested to specerp that he should use svn for updating his live site. So, how does one do that?
I’ve used svn on linux before, but it’s already been setup and I’ve just used it to checkout and commit. I need the nuts and bolts of how to set it up so that I can checkout and use the bbPress core (not plugin) repository. It sure would make changes a lot easier until things stabilize and bbPress is out of beta.
Can someone please give me some pointers? Thank you.
The new bbpress has gotten rid of the topic resolved feature?
And I don’t like it.
Which is why I prefer bbPress v0.8 to 0.81, and I’ll be going back to the old version.
I think bbPress is still like the Wild West, and is changing so often that writing the docs would be a waste of time. It’s not super complicated, so if you have a question about how to get a specific piece of data, you can always ask here or grep through the code. There are a lot of knowledgeable people here who are very good at writing plugins. Looking through the plugin code is helpful too.
Plugins
Good luck and share what you learn. Thanks.
Actually, if you test this new version of ardentfrost’s plugin and delete a bozo user, you will know if it didn’t work because when you go the ADMIN => USERS => BOZO page and get an error, it didn’t work. If it shows up, it did work as that was the problem with the last version of the plugin and the new upgrade of bbPress.
Trent
HI, can you help me when i tried to view profile i got this error,
this is happened when i upgrade to 0.8.1
bbPress database error: [Got error 28 from storage engine]
SELECT *, MAX(post_time) as post_time FROM bb_posts WHERE poster_id = 2 AND post_status = 0 GROUP BY topic_id ORDER BY post_time DESC LIMIT 30
It can’t find the function get() because no such function exists – unless you’re sure it exists in your wordpress plugins or something? Are you sure that’s the function you want to be calling in that template file on line 127?