Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\'

Viewing 25 results - 20,151 through 20,175 (of 26,846 total)
  • Author
    Search Results
  • #79128
    johnhiler
    Member

    If you also have a WordPress install that you’re sharing the database with, I think you can use the values in your WordPress config file in your bbPress bb-config.php…

    #79118
    johnhiler
    Member

    Are you setting up a standalone bbPress install, or integrating with WordPress?

    Also – who is your webhost… are you on GoDaddy?

    #79099

    In reply to: Simple PHP Question

    Mark
    Member

    https://codex.wordpress.org/I18n_for_WordPress_Developers

    Same concept for bbPress. You could make all those plain text if you like, they’re built that way by default for people who need to translate their sites.

    #79093

    Trick is for bbPress functions, half of them are WordPress functions, just sometimes with bb_ on the front, so they behave essentially the same. A fair few others are just aliases to return data instead of outputting it (i.e. get_forum_link vs. forum_link). Beyond that though, yeah it’s all pretty undocumented, but it’s usually relatively obvious from the name and parameters it takes.

    I’d love to be able to help right a bbPress Codex mind you…

    #79092
    Mark
    Member

    get_forum_id()

    ie;

    <?php if (get_forum_id() == 12): ?>
    text block
    <?php endif; ?>

    A lot of these functions aren’t nearly as well documented as WordPress’ own similar functions, but can all be found inside of bb-includes/functions.bb-template.php

    #62063
    Mark
    Member

    @gouri, bbpress is standalone software that is meant to run by itself, or alongside practically anything you choose. In the case of deep integration, if that’s your plan, yes it will work on either WordPress.org or WordPress µ :)

    #79055

    Google? Animated fire gifs have been around longer than bbPress, BuddyPress and WordPress put together…

    #31733
    chandersbs
    Member

    I’m running a forum, which has a sidebar on the left, it was a pain to edit that sidebar, so I tried some including today.

    If you want to including a file in to your forum, use this code:

    <?php bb_load_template(‘sidebar.php’);?>

    Add that sidebar.php or whatever you want to call it in your template folder.

    It works similar like the one we are used to using for WordPress:

    <?php include(TEMPLATEPATH.”/sidebar.php”);?>

    #78961

    In reply to: Displayname check

    @gerikg: There’s far more chance that someone has written something like this for WordPress in their plugin database

    #77080

    In reply to: bbpress and memcache?

    Glad to see what I am saying confirmed with independent realworld proof.

    Pleased to be of service. :)

    BTW, just how big is your site that you require multiple db servers?

    I don’t know of a single WordPress+bbPress install, other than Automattic’s that are using multiple db servers.

    (unless of course you are running other apps that have heavy db use or maybe for backup replication)

    It’s more for redundancy than anything else, although before we got opcode caching in and had optimised some plugins involved we were catching traffic surges when our client tweeted new posts that were making us very very glad we had that much capacity.

    #79076
    Mark
    Member

    It’s deep, I can access and use all my WordPress functionality. Afaik using wp-blog-header.php is deprecated for that use, I’ve been calling wp-load.php.

    #79025
    benbeltran
    Member

    Thanks. I’ll keep on trying. I’m not using wordpress though, it’s a 100% custom system integrated with bbpress. I’m sure it’ll turn out to be something stupid from my part.

    #79071
    Greg
    Participant

    Hmmm. They say talking to oneself is one of the first signs of insanity…

    I just found a year old thread on this topic: https://bbpress.org/forums/topic/bbpress-wordpress-mu-or-not-leads-to-404-errors-but-pages-still-load?replies=7#post-14899

    So I have a couple of questions for anyone out there:

    1. Aside from the ugliness of a core hack, is there any reason my workaround is a bad idea?

    2. Has anyone produced a plugin that implements Beau’s idea in the thread above?

    Sounds like there are a lot of people with deep integration, so I find it really strange that this is still a problem in WPMU 2.8.4a / bbPress 1.0.2.

    Greg
    Participant

    [Opening a new thread with a more descriptive title. The old one was here: http://bbpress.org/forums/topic/help-404-error-but-page-displays%5D

    I have bbPress 1.0.2 and WPMU 2.8.4a with deep integration. Forum pages load fine in the browser, but they have a 404 status in the header, which causes a googlebot crawl error. If you have deep integration, this might be true for you too. You can use Firebug or http://web-sniffer.net/ to check.

    I have posted my understanding of the problem and a workaround on the WPMU forums: http://mu.wordpress.org/forums/topic/14425?replies=1#post-83354

    I think this issue will stop Google (and other search engines) from indexing your forum pages. So if you are using deep integration it might be a good idea to watch for a patch.

    Use my little workaround at at your own risk.

    #79069
    Greg
    Participant

    Looks like WordPress is setting the 404 because it doesn’t recognize the bbPress page that is loading.

    When the global WP object is constructed, the function WP->handle_404 calls “status_header( 404 )”.

    As a workaround, I modified “handle_404” to lay off the 404 if “BB_PATH” is defined (i.e. when a bbPress page is loading). This seems to work ok.

    Here’s the new “handle_404” at around line 445 in “wp-includes/classes.php”.

    function handle_404() {
    global $wp_query;

    if ( !defined( 'BB_PATH' ) && (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {

    // Don't 404 for these queries if they matched an object.
    if ( ( is_tag() || is_category() || is_author() ) && $wp_query->get_queried_object() ) {
    if ( !is_404() )
    status_header( 200 );
    return;
    }
    $wp_query->set_404();
    status_header( 404 );
    nocache_headers();
    } elseif ( !is_404() ) {
    status_header( 200 );
    }
    }

    #79017

    In reply to: theme integration?

    gerikg
    Member

    It’s not too hard but it does take a while. You first have to figure out which profile you want your user to use, wordpress or bbpress.

    johnnydoe
    Member

    yeah that’s what i’m doing since 2 days (i allways try things first befor i ask), and this is kinda annoying if you’re in a “productive flow” with your template design.

    aaaaanyway i may find this pisser … one day :D

    thanks kawa

    Nooo idea where they are then sorry, try using something like Find in Files with Programmer’s Notepad to search for the line

    johnnydoe
    Member

    just the the other way round haha , i need to hide those existing messages completely. :D

    #79038

    In reply to: Logo?

    Mark
    Member

    I know WordPress has a page full of ’em that you can use here: https://wordpress.org/about/logos/

    Not so sure if bbpress has put up such a page or not though. They don’t seem to have a similar page yet, but the team at Automattic are usually pretty damn cool about things like that (if you wanted to pull one from somewhere in the public domain), so long as you make it plain that you’re not a subsidiary.

    #79059

    I checked the above mentioned section, and yes, it seems that it will be alright. I will give it a try when my customer requests this.

    Thank you so much, Kawauso. Arigato gozaimasu.

    Not quite sure what you’re asking, but if you’re just trying to display a message to non-logged in users, use something like:

    <?php if ( !bb_is_user_logged_in() ) : ?>
    Welcome, please log in or register!
    <?php endif; ?>

    in front-page.php

    My coding is pretty terrible too ;P I just learn from poking around in bbPress and WordPress and breaking things a lot, so you’re going about it the right way :P

    johnnydoe
    Member

    well not really kawa i’ve just copy & pasted the message from this forum here (@chand it’s right on top of this forum), my forum is in german and i thought that sounds maybe chinese for a few if i post the german message so i copied the one from here. :D

    other than that , kawa you’re right i’m one of the most brilliant php coders you’ve ever seen, my backend know how is like …well ughhh beyond words lol

    however, i use your trick with those fields, but yet an advice regarding to the “guest welcome/login message” ?

    #79058

    It should be. There’s an option in the Advanced Options section of the WordPress Integration section to specify different settings for the user database, so you’d just have to use that. The rest of the bbPress database could be stored locally.

    #31719

    Is it possible to integrate bbPress membership with a remotely hosted WordPress?

    Thank you very much for your kind help.

Viewing 25 results - 20,151 through 20,175 (of 26,846 total)
Skip to toolbar