bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Theme not working

(12 posts)
  • Started 1 year ago by simon551
  • Latest reply from fel64
  • This topic is resolved
  1. simon551
    Member

    Hi,

    I just downloaded BBpress and set it up. It works fine but the theme isn't applying. Any ideas?

    Posted 1 year ago #
  2. simon551
    Member

    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 1 year ago #
  3. 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 the src value here. It's likely malformed, containing backwards slashes which FF doesn't like.

    Posted 1 year ago #
  4. "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 1 year ago #
  5. simon551
    Member

    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 1 year ago #
  6. simon551
    Member

    bump

    Posted 1 year ago #
  7. 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 1 year ago #
  8. simon551
    Member

    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-4936

    from 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:"
    -Trent

    Nanome's fix:
    <?php

    function 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 1 year ago #
  9. simon551
    Member

    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 1 year ago #
  10. That's probably because there are some empty lines above or below the <?php or ?> - check for them. Thanks for coming back and posting the solution, too. :)

    Posted 1 year ago #
  11. simon551
    Member

    Not in the path-to-url.php file, anyway.

    Posted 1 year ago #
  12. 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.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.