livibetter (@livibetter)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 145 total)
  • @livibetter

    Member

    @livibetter

    Member

    Check Step 2 of https://codex.wordpress.org/Installing_WordPress#Detailed_Instructions

    It’s written for WordPress, but you can use it for installing bbPress.

    @livibetter

    Member

    I just noticed I gave you wrong link to rss.php

    This is the correct one: http://llbb.pastebin.com/f1aee01cf

    @livibetter

    Member

    Are you using bbPress 0.8.3?

    @livibetter

    Member

    I have no problems on my test forum.

    When you see that error, right click, view source, then paste that source here.

    @livibetter

    Member

    The generated result, when you navigate to /wrdp2/bbp1/rss/.

    The thing starts with <?xml

    @livibetter

    Member

    Could you paste complete RSS feed source?

    @livibetter

    Member

    Did you make the theme? It’s great!

    In reply to: Excerpts

    @livibetter

    Member

    @fel64: I agree. If I use this on my forums, I will put it in my-forums-only plugin. However, this is a simple help, I don’t want to show them a complicated solution. Yes, easiness can be hardness later, that’s a trade-off.

    Moreover, even I do what you suggestion, that is still not an art in my mind. It manipulates something, it’s not beautiful.

    edit: One off-topic thing, where is the location of your website? I hardly to connect to it. Sometimes, I got Server not found.

    In reply to: Installation woes

    @livibetter

    Member

    Well I updated WP…

    You probably need to ask in WordPress Support.

    Here is a document: https://codex.wordpress.org/Upgrading_WordPress_Extended#Detailed_Upgrade_Instructions_for_1.5.x.2C_2.0.x.2C_2.1.x.2C_or_2.2.x_to_2.3.1

    @livibetter

    Member

    What is that line of generated RSS? <link></link>? (posting completely to pastebin would be better to find out)

    Have you set $bb->uri in your config file?

    What browser are you using?

    @livibetter

    Member

    !defined('DB_NAME') is redundant, since you should be only one can code on your files.

    I will use

    if ( !strpos($_SERVER["PHP_SELF"], 'bb-admin') )
    require_once('../wp-blog-header.php');

    Anyway, you did a great job!

    PS. could you show us your forums?

    @livibetter

    Member

    745 is not for fixing unix socket connection.

    Try this: https://bbpress.org/forums/topic/cannot-select-db-error?replies=11#post-12434

    @livibetter

    Member

    Here is a temporary solution:

    rss.php: http://llbb.pastebin.com/f5c1a8a37

    rss2.php of template: http://llbb.pastebin.com/f24cd6fd3

    If you need the last post content of each topic, please find a recent topic Excerpt and combine this with it.

    Edit: Oops… just find out you are also the starter of that topic.

    @livibetter

    Member

    Is this close to what you want? Topic Feeds

    If so, just be patient.

    @livibetter

    Member

    I believe the time for next release will be soon. If you like to try, you can check out the trunk, the installing process and options page are great!

    @livibetter

    Member

    The workaround won’t work for plugins.

    @sambauers: I think there is no complete working solution if you don’t touch the core files.

    First, load_default_textdomain and load_plugin_textdomain are WordPress version, they only look language files in WordPress directories. So, in bbPress, all text won’t be translated since language file are not loaded because WordPress load_*_textdomain won’t find language files in bbPress’ directories.

    Second, WordPress and bbPress both use default as textdomain when calling __() or _e() without assigning textdomain, that means we can only use either WordPress’ or bbPress’ language files at the same time, not both.

    (edit: plugin’s problem can be solved by add a bb_load_plugin_textdomain, but bbPress’s part. If we don’t want to use something like bb__(), bb_e(), maybe we can try to merge bbPress translations into WordPress’ in runtime? or search bbPress’ first, then WordPress’ if can’t find)

    @livibetter

    Member

    Sorry, didn’t read bbPress source carefully. Replace first if clause with

    if ( defined('BBLANG') && '' != constant('BBLANG') ) {
    if ( function_exists('load_default_textdomain') ) {
    global $l10n;

    $locale = BBLANG;
    $mofile = BBPATH . BBINC . 'languages/' . "$locale.mo";
    if ( is_readable($mofile) ) {
    $input = new CachedFileReader($mofile);
    $l10n['default'] = new gettext_reader($input);
    }
    }
    else {
    include_once(BBPATH . BBINC . 'streams.php');
    include_once(BBPATH . BBINC . 'gettext.php');
    }
    }

    PS. That “..” is how you put variable to be parsed in string in PHP ( Variable parsing )

    @livibetter

    Member

    Seems you will use a lot of stuff from WordPress. If your WordPress template is already written in German, then you should have no problems. If not or some functions use gettext functions, then you will see many text in original language.

    @livibetter

    Member

    This is a quick workaround:

    if ( defined('BBLANG') && '' != constant('BBLANG') ) {
    if ( function_exists('load_default_textdomain') ) :
    global $l10n;

    $locale = BBLANG;
    $mofile = BBLANGDIR . "$locale.mo";

    load_textdomain('default', $mofile);
    else:
    include_once(BBPATH . BBINC . 'streams.php');
    include_once(BBPATH . BBINC . 'gettext.php');
    endif;
    }
    if ( !( defined('DB_NAME') || defined('WP_BB') && WP_BB ) ) { // Don't include these when WP is running.
    require( BBPATH . BBINC . 'kses.php');
    if ( !function_exists('load_default_textdomain') )
    require( BBPATH . BBINC . 'l10n.php');
    }

    It should drops WordPress’ language file, and replaces with bbPress’. That means translations need to be done in WordPress won’t be translated since this code drops language file. This wont happen when you read your blog. However, I don’t have any language files, so this is coded by guessing.

    This is not a solution, just a temporary fix. I will file a ticket.

    @livibetter

    Member

    I think this needs to change bbPress core and even WordPress’.

    What’s the WordPress function that you are planning to use?

    @livibetter

    Member

    Reproduced.

    I didn’t use any language files. But after I put a language code in bb-config.php (for r988) and wp-config.php, I got a blank page.

    Don’t know if I can fix this.

    @livibetter

    Member

    Then, you should trace in bbPress’ code to find out where causes an exit.

    BTW, you can also test error_log(get_option('blogname')); to make sure WordPress loaded database correctly.

    PS. debugging with no debugger is a crazy thing. You have to guess by experiences for best shot.

    @livibetter

    Member

    I don’t have any clues to solve you problem.

    If I were you, I will

    1. put error_log('WordPress loaded'); after that request_once to make sure wp has been loaded.

    2. check error log for WordPress loaded, if I get that, that means the problem should be on bbPress, or on WordPress.

    3. keep using error_log, find out where causes a program end.

    This is my no-debugger-debugging method.

    @livibetter

    Member

    Well, I didn’t mean that kind of error message. If your hosting provider gives you cpanel, there should be a “Error Logs”

    And put that line top of original config.php is correct, but to bottom isn’t.

    Maybe you can try to use relative path? (I don’t think this will help…)

    What are the versions of WordPress and bbPress which you are using?

    Still need the error log.

Viewing 25 replies - 26 through 50 (of 145 total)