Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,351 through 19,375 (of 32,522 total)
  • Author
    Search Results
  • #103902

    Ah looks like, syntax highlighting is messing up the code.

    Can you try adding this instead of your line?

    /* Deep integration */
    if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
    define('WP_USE_THEMES', false);
    include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
    header("HTTP/1.1 200 OK");
    header("Status: 200 All rosy");
    }

    Not sure about your errors though.

    #98802

    Ah looks like, syntax highlighting is messing up the code.

    Can you try adding this instead of your line?

    /* Deep integration */
    if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
    define('WP_USE_THEMES', false);
    include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
    header("HTTP/1.1 200 OK");
    header("Status: 200 All rosy");
    }

    Not sure about your errors though.

    #94819
    Rich Pedley
    Member

    I usually do, though sometimes if I’m unsure I prefer to get a bit of feedback first ;)

    #37001

    I’m trying to open up search on my bbPress install, I can search, it works properly. What I decided, for now, was to not show the Recent Results, but only the Relevant Results, the problem is that some of the Relevant Results are not displaying a proper link to the post.

    This line in /bbpress/search.php is the issue, I think, but I can’t figure out how to correct it.

    Line 12:

    Code:
    $bb_query_form->BB_Query_Form( ‘post’, array(), array( ‘per_page’ => 5, ‘post_status’ => 0, ‘topic_status’ => 0, ‘post_text’ => $q, ‘forum_id’, ‘tag’, ‘topic_author’, ‘post_author’ ), ‘bb_recent_search’ );

    Whatever I set the ‘per_page’ array to, that is the number of Relevant Results that do not work properly at the top. So since it’s set to 5, the first 5 results under Relevant Results do not work, but 6-end do.

    What can I do to correct this? Thanks,

    :)

    #94816
    Gautam Gupta
    Participant

    @Willabee

    bbp_is_forum(), bbp_is_topic(), bbp_is_reply().

    #94815
    Willabee
    Member

    Does the plugin already have some function like the is_single() function in WordPress? Would be handy for the project I’m working on atm. :)

    #74440
    scribu
    Member

    I have WP running at / and bbPress at /forum/.

    This is the configuration I’m using:

    http://gist.github.com/770180

    Note that there was an error in one of the rules Sam posted:

    rewrite ^/topic/([^/]+)/?$ /bbpress/topic.php?id=$1 last;

    should have been

    rewrite ^/topic/([^/]+)/?$ /topic.php?id=$1 last;

    #36998
    3sixty
    Member

    I’m trying to display a list of posts that are tagged with one tag but NOT another. For example, I want to display all posts tagged “FRUIT” but exclude posts tagged “Apples”.

    I tried creating a custom View, but this code does not work:

    function my_custom_views_init() {
    $args = array(
    'tag_id' => '35',
    'tag_id' => '!=72'
    );
    bb_register_view(
    'fruit-without-apples',
    'Fruit (excluding apples)',
    $args,
    false
    );
    }

    Neither does this code using bb-query directly:

    $topic_query = new BB_Query( 'topic',
    array(
    'tag_id' => '35',
    'tag_id' => '!=72'
    )
    );
    $results = $topic_query->results;

    foreach($results as $result) {
    echo $result->topic_title . '';
    }

    Any ideas?

    #94813
    Rich Pedley
    Member

    bleh, the one time I didn’t.

    brain bug then ;)

    #94812
    Gautam Gupta
    Participant

    @Rich Pedley

    Try reactivating the plugin.

    @Ryan Gannon

    Ok, figured that out. bbp_has_topics() doesn’t return the query. You’d have to use bbPress functions like bbp_topics(), bbp_get_topic_title() etc.

    escort
    Member

    Nice work ashfame, thanks :-)

    #91307

    bbPress ones were posted on the blog once. Easy way of reference would do :)

    #103840

    no you are doing it wrong. recheck with caution.

    dbname, user, pass – same

    but in bbPress they are defined like BB_ i.e. with a prefix

    check again and you should be fine

    #98740

    no you are doing it wrong. recheck with caution.

    dbname, user, pass – same

    but in bbPress they are defined like BB_ i.e. with a prefix

    check again and you should be fine

    #91305

    Also please note of posting chatlogs somewhere, in a readable formatting ofcourse ;)

    #103864

    By code – yes

    any easy way – no

    #98764

    By code – yes

    any easy way – no

    #103810
    milleiro
    Member

    Yes yes, I know :/ Would you like to paste some thing of my database?

    #98710
    milleiro
    Member

    Yes yes, I know :/ Would you like to paste some thing of my database?

    Thanks JJJ! :)

    #103808
    milleiro
    Member

    Yep, I’m sure. I’ve touched something because I’m now trying to enter WP-Admin and it says “you don’t have enough privileges” in my WordPress :/

    #98708
    milleiro
    Member

    Yep, I’m sure. I’ve touched something because I’m now trying to enter WP-Admin and it says “you don’t have enough privileges” in my WordPress :/

    #103630

    That sounds cool! I understand your problem and totally appreciate your involvement.

    I have seen you around since my early days (3.5 years ago), so it feels safer than somebody new rolling out things. :)

    #98530

    That sounds cool! I understand your problem and totally appreciate your involvement.

    I have seen you around since my early days (3.5 years ago), so it feels safer than somebody new rolling out things. :)

Viewing 25 results - 19,351 through 19,375 (of 32,522 total)
Skip to toolbar