Nevermind – I was using the wrong relative URL it would seem.
I settled for this:
require_once($_SERVER."/forums/config.php");>/code>
and it works now 
Garry,
Hello everyone!
Here is my setup:
WP blog = http://www.cocoadummy.com
BB forums = http://www.cocoadummy.com/forums
I have set the config.php values as required. I have enabled the bbPress-integration plugin in WP and configured it. I have added
require_once('../wp-blog-header.php');
to my bbPress config.php file. (This seems to work as I can call the WP bloginfo(‘name’) function in my footer.
When I try to go to the forums admin I get the following error:
Warning: require_once(../wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4
Fatal error: require_once() [function.require]: Failed opening required ‘../wp-blog-header.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.omaha/gkp99/www.cocoadummy.co/forums/config.php on line 4
Also, I have added the following line of code to wp-config so that I can import functions from bbPress into WP (I want to add the online list to my WP sidebar):
// Import bbPress
require_once(‘../forums/config.php’);
I have added it beneath this code:
// Get everything else
require_once(ABSPATH.’wp-settings.php’);
(although the error is the same wherever I put it).
When I goto my blog homepage (www.cocoadummy.com) I get this error:
Warning: require_once(../forums/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34
Fatal error: require_once() [function.require]: Failed opening required ‘../forums/config.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.omaha/gkp99/www.cocoadummy.co/wp-config.php on line 34
What am I doing wrong?
Garry,
It can be done with PHP.
I’ve never done the random thing, but the Cutline theme for WordPress offers this functionality. You can read about it here:
http://cutline.tubetorial.com/totally-random-header-images-for-cutline/
I think you could adapt that for your uses.
In WordPress, for a specific background tied to a specific page, I just do something like this in header.php:
<div id="container" style="background: #fff url('<?php bloginfo('template_directory'); ?>/images/<?php echo $post->ID; ?>.jpg') left top no-repeat;">
That gives the container div the background image of the post ID.jpg, so if you were viewing post 52, you would have a background image of 52.jpg. You could easily adapt this to bbPress calls by using the forum number and $forum_id, whichever div you want a background for (#wrapper or #main?) and then the proper location of your images (whether they are stored in your template folder or your forum root or something.) It fails OK too since there is a color code for the background and that is used if the image cannot be found (I think that’s what happens anyway.)
Let me know if that makes sense. This is how I’ve done it in WordPress, but the same approach will work for bbPress I think.
Please contact me at an email listed on the website linked to my profile here, or just google my screen name. I’m not hard to find.
Would you mind doing it for me?
Yesssss I did it!!!
Instructions for Apache users:
1. Append to <bbpress-root>/bb-includes/template-functions.php before “?>” code from first message in this topic.
2. Create or edit .htaccess file in <bbpress-root> directory and put into then next code
Options +FollowSymlinks
RewriteEngine On
RewriteBase /!!!!!! your bbpress root dir!!!!!!!/ #edit this!!!!
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ profile.php?id=$1 [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ rss.php [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ rss.php?profile=$1 [L,QSA]
RewriteRule ^bb-login.php$ index.php
RewriteRule ^([^.]+)/([^.]+)/page/([0-9]+)/?$ topic.php?id=$2&page=$3 [L,QSA]
RewriteRule ^([^/.]+)/([^.]+)/?$ topic.php?id=$2 [L,QSA]
RewriteRule ^([^/.]+)/page/([0-9]+)/?$ forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^([^/.]+)/?$ forum.php?id=$1 [L,QSA]
Since it’s a WordPress plugin, log into your WordPress admin panel, Plugins > bbPress. That’s where you enter your bbPress table prefix.
This is the URL once you’re logged in.
http://www.example.com/wp-admin/plugins.php?page=bbpress-integration
Replace example.com with your domain and you should end up right where you need to be.
Here’s the results I got from the debugging. One thing I’ve noticed is that once I click on Page 2 (the URL changed to click on Page 2 again).
Forum
http://justintadlock.com/forums/forum/options-wordpress-theme
REQUEST_URI: string(37) "/forums/forum/options-wordpress-theme"
should be: string(37) "/forums/forum/options-wordpress-theme"
full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
PATH_INFO: string(0) ""
Forum (page 2)
http://justintadlock.com/forums/forum/options-wordpress-theme/page/2
REQUEST_URI: string(44) "/forums/forum/options-wordpress-theme/page/2"
should be: string(37) "/forums/forum/options-wordpress-theme"
full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
PATH_INFO: string(0) ""
Forum (URL changed to add two of /page/2)
http://justintadlock.com/forums/forum/options-wordpress-theme/page/2/page/2
REQUEST_URI: string(51) "/forums/forum/options-wordpress-theme/page/2/page/2"
should be: string(37) "/forums/forum/options-wordpress-theme"
full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
PATH_INFO: string(0) ""
Topic (page 1)
REQUEST_URI: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
PATH_INFO: string(0) ""
Topic (page 2)
REQUEST_URI: string(62) "/forums/topic/bug-report-for-version-10-beta/page/2?replies=31"
should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
PATH_INFO: string(0) ""
Topic (URL changed to add two /page/2)
REQUEST_URI: string(69) "/forums/topic/bug-report-for-version-10-beta/page/2/page/2?replies=31"
should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
PATH_INFO: string(0) ""
Nice to see you working on it 
I think it’s a rewrite problem, somehow. When you access the page 2 & page 3 the “old way” they come up:
http://justintadlock.com/forums/forum/forum.php?id=1&page=2
http://justintadlock.com/forums/forum/forum.php?id=1&page=3
I wonder if the forums/forum/ is messing things up? Slug based permalinks seem to be working fine.
You can add a line to your config.php to enable debugging and see some additional info which might help. This will be displayed at the top of your forum page:
REQUEST_URI:
should be:
full permalink:
PATH_INFO:
Set this in config.php, after the database connection details.
$bb->debug = 1;
Right now, there is a problem with the config.php. It’s really messed up. I can see the source of that file. Looks like it was edited improperly. It begins with this <!--p when it should begin with this <?php.
I suggest you contact someone local you can trust who can help you get this up and running.
It looks like the host supports PHP so that shouldn’t be a problem.
db-base.php file has been uploaded. The problem must be something else. PLEASE help me some one
Major help is needed. I’m new to bbPress and am quite ‘nooby’; with these things
I done everything and I can’t access my forums:
http://raiderfanzone.10gbfreehost.com/forums/
Whats wrong?….
The auto-close-tags was broken in earlier versions of bbPress but if I am not mistaken, this is possibly fixed in 0.9 (out any day now).
I just tested it on bbshowcase.org and leaving off the end tick simply treats the open tick like any other character (ie. no text is converted to code)
There may be some trickery you could do using iFrames to get the two different domains sending cookies at the same time on login. It wouldn’t be pretty though, and you would have to really test your code for vulnerabilities.
@talbina – Automattic just hired the developer of BuddyPress (www.buddtpress.com), which is basically what you’re asking for, minus bbPress. So they are thinking somewhere along the lines of what you’re saying 
Needless to say it’s not much of a leap to take what comes of BuddyPress (a solid social networking core) and integrate that with bbPress to add the forums element (assuming BuddyPress doesn’t move in that direction itself, which is quite possible).
I think it will be something like this
<?php echo '<a href="'.get_profile_tab_link( bb_get_current_user_info( 'id' ), "edit" ).'">edit your profile</a>' ?>
(untested) the “edit” part is just a guess…
get_user_profile_link(bb_get_current_user_info( 'id' )) will get the profile link for general stuff, not the edit tab.
Help… I don’t understand anything
.
I read step by step your instruction and do all what do you wrote.
But at the and I got: “The requested URL /<forum-home-dir>/<forum-slug> was not found on this server.”
What I do wrong?
Hi to any lost and wondering fellow twiggers – quite a few of our friends appear to be gathering on the following website
http://www.tulipskitchen.blogspot.com
Heres hoping ‘Pig2twig’ is upand running soon – hang on in there
I’m trying to delete some posts. When I hit “delete” the post turns red. When I refresh the forum, I find that the posts are still there. They do not show up in the Admin panel of Deleted posts. I was able to delete before… the last one was about a week ago. I haven’t done anything to the forum since then. The last change I made was adding the Report Post plugin, but that was BEFORE I deleted my last post (2/25/08).
I’m running the latest released version of bbPress, which is integrated with WP 2.3.
Here are the plugins that I am currently running in bbPress:
Use Display Name 0.7.2
BBCode for bbPress 0.1
Quote 0.2
Show Post Count .73a
Page Links 1.0.3
Indicate New Posts 0.8
Simple Onlinelist 1.5
Move It 0.14
Censor 0.1
Page >> 0.7
Unread Topics 0.4
Comment Quicktags for bbPress 1.1
bbPress Polls 0.27
bbEmoticons 0.72
Enhanced Registration 0.1.0.1
Report Post 0.12
bb-benchmark 0.17
Well thank you for that message, but how do we contact the ‘adminsitrators’ of the website please? Any ideas would be good…
Thanks 
Oh and ‘pig2twig’ is a help forum for people who are on a special weightloss programme and it is vital that we acess our forum and information, in case of illness and queries.
Please see the WordPress MU forum ( http://mu.wordpress.org/forums/topic.php?id=7778&page&replies=6#post-46043) and look for my first post where it says “feature and strip” …
The font changes at that point. It looks like the rest of the thread is formatted like code. I don’t know why there’s a backtick near the word feature, but even if I did put it there and forgot to close it, is that the reason the entire thread appears formatted like code? If not, please explain.
sambauers,
Will there be a new release of WordPress MU as well?
I am not complaining, but I sometimes feel like WPMU is the ugly stepchild in that there is always extra hurdles to get things working with other software. 
Don’t get me wrong, I love WPMU since it allows me to create a blog community and do some really cool things. keep up the good work!