bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

CSS Integration problems

(5 posts)
  • Started 1 month ago by theclearing
  • Latest reply from theclearing
  • This topic is resolved
  1. Having a few little problems with css integration.

    Also a problem with backslashes appearing before apostrophes.

    Would greatly appreciate help.

    Thanks in advance...

    http://theclearingnews.com/lodge

    http://theclearingnews.com/lodge/topic/participation

    Posted 1 month ago #
  2. resolved the backslash problem.

    Posted 1 month ago #
  3. Please post your solution for the benefit of others who might be having the same problem. Thanks.

    Posted 1 month ago #
  4. To fix the backslash problem:

    Open bb-includes/template-functions.php

    Search for - function post text

    add these two lines between the brackets:
    global $bb_post;
    return stripslashes($bb_post->post_text);

    It should look something like this:
    function post_text( $post_id = 0 ) {
    echo apply_filters( 'post_text', get_post_text( $post_id ), get_post_id( $post_id ) );
    global $bb_post;
    return stripslashes($bb_post->post_text);
    }

    Next search for - function get_post_text ( it should be just below the other function)

    add these two lines again between the brackets:
    global $bb_post;
    return stripslashes($bb_post->post_text);

    It should look something like this:
    function get_post_text( $post_id = 0 ) {
    global $bb_post;
    return stripslashes($bb_post->post_text);
    $bb_post = bb_get_post( get_post_id( $post_id ) );
    return apply_filters( 'get_post_text', $bb_post->post_text, $bb_post->post_id );

    }

    I'm sure this is sloppy but it worked for me. Hope this helps

    Posted 1 month ago #
  5. more or less resolved the CSS integration problem.

    I used Firefox along with the Firebug Add-on to trouble-shoot problem areas. All I can suggest if you have the same problem is have patience and use trial and error.

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.