Info
- 12 posts
- 3 voices
- Started 4 years ago by simon551
- Latest reply from fel64
- This topic is resolved
Theme not working
-
- Posted 4 years ago #
Hi,
I just downloaded BBpress and set it up. It works fine but the theme isn't applying. Any ideas?
-
- Posted 4 years ago #
To be more specific... I set the kakumei theme in the admin area and the theme seems to work in the admin area. but back in the main area there is no theme. Just plain text.
-
- Posted 4 years ago #
Are you running it on Xampp or similar? The problem might also affect windows servers, can't remember. Check any output page's HTML, looking for a
<link media="screen" type="text/css" src="example.com/style.css" />, and copy thesrcvalue here. It's likely malformed, containing backwards slashes which FF doesn't like. -
- Posted 4 years ago #
"To be more specific... I set the kakumei theme in the admin area and the theme seems to work in the admin area. but back in the main area there is no theme. Just plain text. "
-> First time I installed bbpress I had the very same problem. I just downloaded another theme and I activated from the admin control panel.
-
- Posted 4 years ago #
fel64,
you're right. It contains some wacky slashes:<link rel="stylesheet" href="http://something\something\forum/bb-templates/kakumei/style.css" type="text/css" />any idea how to fix this?
-
- Posted 4 years ago #
bump
-
- Posted 4 years ago #
Please don't bump these things, still easily on the front page and people will reply if they know - it's a bit impolite. I think it's fixable but can't remember how myself.
-
- Posted 4 years ago #
I was able to find this in past discussion. I'm posting the fix here in case anyone else needs it:
http://bbpress.org/forums/topic/700/page/2?replies=64#post-4936from Trent, but code fixed up a little by Nanome:
"Create a file called whatever you want, but I recommend path-to-url.php
and put the following in it and upload it to /my-plugins/ directory:"
-TrentNanome's fix:
<?phpfunction fix_bb_path_to_url( $url ) {
$url = str_replace(array('//', '\\\\', '\\'), array('/', '\\', '/'), $url);
return preg_replace( '|:/([^/])|', '://$1', $url );
}add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );
?>
-
- Posted 4 years ago #
shoot. Theme is working but if do anything (enter a post, add a forum, etc) I get this error:
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\vtmorg\forum\my-plugins\path-to-url.php:14) in C:\Program Files\xampp\htdocs\vtmorg\forum\bb-includes\pluggable.php on line 166
-
- Posted 4 years ago #
That's probably because there are some empty lines above or below the
<?phpor?>- check for them. Thanks for coming back and posting the solution, too. :) -
- Posted 4 years ago #
Not in the path-to-url.php file, anyway.
-
- Posted 4 years ago #
Unless you've sent out any header information with
header()there must be; I can think of no other way to explain it. It does say, output started in that file. -
You must log in to post.