Forum Replies Created
-
In reply to: Error for tags.php
Thank you, yes I’ve been running it as php5 for awhile now and have not had any problems. Case closed.
In reply to: Simply doesn’t work===============SOLUTION==============
Put the following in your .htaccess file (in the same directory as config.php):
Options -Multiviews
RewriteEngine On
RewriteBase /
RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([0-9]+)$ /forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([0-9]+)$ /topic.php?id=$1 [L,QSA]
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/([0-9]+)/page/([0-9]+)$ /profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([0-9]+)$ /profile.php?id=$1 [L,QSA]
RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([a-z-]+)$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/$ /rss.php [L,QSA]
RewriteRule ^rss/forum/([0-9]+)$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([0-9]+)$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([a-z]+)$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([0-9]+)$ /rss.php?profile=$1 [L,QSA]
In reply to: Adding another block of forums?are you looking to display 2 seperate instances of bbpress? or just multiple main Forums with sub-category forums?
In reply to: Plugins for WordPress integrationI have successfully setup my site to integrate registrations/logins between wordpress on its own DB and domain (blog.bakedlog.com) and bbpress on its own DB and domain (forum.bakedlog.com).
Files:
WP: wp-content/plugins/bbpress-integration.php
BBP: my-plugins/wordpress-integration.php
- I can create a user in wordpress and log into bbpress with it.
- I can create a user in bbpress and log into wordpress with it.(although the default role set for wordpress does not let me write (how do i change this?))
However, I too cannot get cookies to authenticate between the two systems.
I have included the following in bbpress’s
config.php
:$bb->cookiedomain = 'bakedlog.com';
$bb->cookiepath = '/';
I monitored the cookies created on my computer as I logged into each system, and noticed that bbpress was creating the cookie correctly, domain: bakedlog.com, while when I logged into wordpress it would set the domain on the cookie to blog.bakedlog.com.
So the problem is with WordPress..
Looking in WordPress’
wp-settings.php
I see:if ( !defined('USER_COOKIE') )
define('USER_COOKIE', 'wordpressuser');
if ( !defined('PASS_COOKIE') )
define('PASS_COOKIE', 'wordpresspass');
if ( !defined('COOKIEPATH') )
define('COOKIEPATH', $current_site->path );
if ( !defined('SITECOOKIEPATH') )
define('SITECOOKIEPATH', $current_site->path );
if ( !defined('COOKIE_DOMAIN') )
define('COOKIE_DOMAIN', '.' . $current_site->domain);
So, in WordPress’
wp-config.php
I inserted:// BBPRESS INTEGRATION
define('COOKIE_DOMAIN', 'bakedlog.com');
Clearing my cookies and logging into WordPress, I see the cookie domain is correct and matches my BBPress’.
But, there is still another problem, the cookies set by BBPress appends an md5 hash based on the site url and table prefix to the cookie’s name (ie: wordpressuser_bf17f59023eb22f…..) while WordPress’ cookie name is only: wordpressuser
I looked around in
bb-settings.php
and found:define('BBHASH', $bb->wp_siteurl ? md5($bb->wp_siteurl) : md5($bb_table_prefix) );
if ( !isset( $bb->usercookie ) )
$bb->usercookie = ( $bb->wp_table_prefix ? 'wordpressuser_' : 'bb_user_' ) . BBHASH;
if ( !isset( $bb->passcookie ) )
$bb->passcookie = ( $bb->wp_table_prefix ? 'wordpresspass_' : 'bb_pass_' ) . BBHASH;
So, the next step is to define $bb->usercookie and $bb->passcookie in BBPress’
config.php
:// COOKIE SHARING WITH WORDPRESS
$bb->cookiedomain = 'bakedlog.com';
$bb->cookiepath = '/';
$bb->usercookie = 'wordpressuser';
$bb->passcookie = 'wordpresspass';
I cleared my cookies and tested it, VOILA! I can log into either section (bbpress or wordpress) and switch to the other without losing authentication!
==========SOLUTION===========
BBPRESS CONFIG.PHP:
// COOKIE SHARING WITH WORDPRESS
$bb->usercookie = 'wordpressuser';
$bb->passcookie = 'wordpresspass';
WORDPRESS WP-CONFIG.PHP:
// COOKIE SHARING WITH BBPRESS
define('COOKIE_DOMAIN', 'bakedlog.com');
==========********===========
Thats it I believe, let me know if it works for you or if you see anything I have done that could crash either program.
-BHensley.com
-Bakedlog.com
In reply to: blockquote?yes thank you!
In reply to: Simply doesn’t workThis is the same on one of my servers. It doesn’t work either way, but Rewrite works with WP….strange.
I thought I was going crazy but thank you, it works for WP but not bbPress what is going on haha. Good Luck!
In reply to: Error for tags.phpI do have a question though, is this a safe fix? what does this do?
-thanks
bakedlog.com
discussion forums of life
In reply to: Error for tags.php==================SOLUTION====================
wow yes thank you I was having the same problem off of a fresh install. “browse tags” wouldn’t work.
Added to .htaccess:
AddType x-mapp-php5 .php
Thank You!
==================SOLUTION====================
In reply to: Simply doesn’t workI am having the same problem.. I have followed the FAQ Permalinks and still cannot get it to work.
I have set $bb->mod_rewrite = true;
I have tried writting my .htaccess with:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Options +MultiViews
</IfModule>
I have also tried what was outputed from the “bb-admin/rewrite-rules.php”:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([0-9]+)$ /forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([0-9]+)$ /topic.php?id=$1 [L,QSA]
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/([0-9]+)/page/([0-9]+)$ /profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([0-9]+)$ /profile.php?id=$1 [L,QSA]
RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([a-z-]+)$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/$ /rss.php [L,QSA]
RewriteRule ^rss/forum/([0-9]+)$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([0-9]+)$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([a-z]+)$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([0-9]+)$ /rss.php?profile=$1 [L,QSA]
</IfModule>
In either case I get a 404 error so i set $bb->mod_rewrite = false; until I can get this resolved.