Search Results for 'code'
-
Search Results
-
Hello!
I just downloaded and installed the latest version of bbPress — version 1.0.2.
In the database ( bb_option | uri ), we see the full URL to the forum:
http://domain.com/folder/Now, if I type that address into a browser, the forum loads fine.
However, if I type it this way (without the trailing frontslash)…
http://domain.com/folder… I get redirected to this:
http://domain.com/domain.com/folder/Which leads to nowhere!
To see this in action, paste or type these two URIs into your browser:
…With the only difference being the trailing frontslash.
Argh! Can anyone help me know how to fix this?
Thanks!
Topic: Member Subdomain Permalinks
Greetz!

Once I have a new top-level domain for my forum, I would like to implement changes to make each member have a sub-domain. For example, mydomain.com/profile/member-name would become member-name.mydomain.com.
I know exactly how to do this through htaccess. What I’d like to know is this:
If I do it manually, what else do I have to configure to make all the profile links point to the new pretty permalink?
There’s no rush at all for this — looking to implement it in a few months.
Thanks in advance
Peace, Michael
I recently discovered that I was getting quite a few crawl errors for a bbPress installation (1.0.2) and the common denominator was special characters in the title. The Google crawler was changing the hex characters in the encoded URL to uppercase, and this was causing a 302 redirect.
I tracked the 302 redirect to bb_repermalink(), which detects the uppercase hex as a discrepancy with the “correct” permalink. I made a simple plugin that works around the issue (see below).
Has anyone else seen this issue? How did you deal with it?
I’ve described this in a little more detail at http://theblogeasy.com/2009/12/26/bbpress-and-encoded-urls-with-uppercase-hex/.
function _permalink_fix( $permalink, $location )
{
$matches = array();
/* are there any URL encoded hex characters with uppercase in the request URI? */
if (preg_match( '#%([0-9][A-F]|[A-F][0-9]|[A-F][A-F])#', $_SERVER['REQUEST_URI'], $matches ))
{
/* replace ALL URL encoded HEX parameters with uppercase versions */
$patterns = array(
'#%([0-9])([a-f])#e',
'#%([a-f])([0-9])#e',
'#%([a-f][a-f])#e' );
$replacements = array(
'"%" . $1 . strtoupper("$2")',
'"%" . strtoupper("$1") . $2',
'"%" . strtoupper("$1")' );
// print_r( $patterns ); print_r( $replacements );
$permalink = preg_replace( $patterns, $replacements, $permalink );
}
return $permalink;
}
add_filter('bb_repermalink_result', '_permalink_fix', 10, 2);I installed wordpress mu and bbpress in single database and installed integration plugins of respective ones on both. And configured it.
As of today mine is the latest wordpress mu version and bbpress version. The problem I am facing is :
1) Login integration
2) User roles integration
3) Theme integration
In detail :
1) Login integration :
When I login in to wordpress and then move to forum, I am logged in. Also when I logout of wordpress and then go to forum I am logged out. This works perfectly. The problem is when I login in to forum and then move to wordpress, it does not work. Also when I logout at forum and then move to wordpress I am still logged in. I can access wp-admin. When I access wp-login it seems like I am logged out. But if I access wp-admin I am logged in. If I press log out I get error :
You are attempting to log out of Test 1
Please try again.
URL of where I am getting is http://test1.soulblog.net/wp-login.php?action=logout_wpnonce=f3ec0d7e0f
2) User roles, in wordpress I installed Role manager. In bbpress I see the registered users as “Inactive (no role)”
3)I want to integrate wordpress theme in the forum. I followed the steps below :
____________________________________________
styling your forum
1. Open bb-config.php and add the following line (replacing PATHTOYOUR with the
relative path to your blog):
require_once(‘/PATHTOYOUR/wp-blog-header.php’);
2. Navigate to the folder for the theme you are using on the forum (the default is
Kakumei, which is in /bb-templates/kakumei) and open the header.php
file. Replace the contents with <?php get_header(); ?>.
3. After the <?php get_header(); ?>, ����������������������������������insert the following line of code:
<link rel=”stylesheet” href=”<?php bb_stylesheet_uri(); ?>”
type=”text/css” />.
4. You can do the same with the footer, replacing it with <?php get_footer(); ?>
if you wish.
5. Open the style.css file for the bbPress theme you are using. Search for the
following line in the header: class.
background: url(‘images/page_header_bblogo.png’) no-repeat
Remove that line and save the file.
6. View the forum. It should now be very similar in look and feel to the rest of the
blog network.
__________________________________________
This replaced the header and footer, but did not integrate well.
So some one please guide me with these 3 issues and get me solved asap.
