Forum Replies Created
-
In reply to: Extended descriptions for forums?
Keep our eyes on https://trac.bbpress.org/ticket/663
In reply to: define database name ? – config.phpCheck Step 2 of https://codex.wordpress.org/Installing_WordPress#Detailed_Instructions
It’s written for WordPress, but you can use it for installing bbPress.
In reply to: Limiting RSS Feed to First Post OnlyI just noticed I gave you wrong link to
rss.php
This is the correct one: http://llbb.pastebin.com/f1aee01cf
In reply to: Limiting RSS Feed to First Post OnlyAre you using bbPress 0.8.3?
In reply to: Limiting RSS Feed to First Post OnlyI have no problems on my test forum.
When you see that error, right click, view source, then paste that source here.
In reply to: Limiting RSS Feed to First Post OnlyThe generated result, when you navigate to
/wrdp2/bbp1/rss/
.The thing starts with
<?xml
In reply to: Limiting RSS Feed to First Post OnlyCould you paste complete RSS feed source?
In reply to: Having trouble integrating WP functionsDid you make the theme? It’s great!
In reply to: Excerpts@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 woesWell 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
In reply to: Limiting RSS Feed to First Post OnlyWhat 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?
In reply to: Having trouble integrating WP functions!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?
In reply to: DB access problem in the first installation step.745 is not for fixing unix socket connection.
Try this: https://bbpress.org/forums/topic/cannot-select-db-error?replies=11#post-12434
In reply to: Limiting RSS Feed to First Post OnlyHere is a temporary solution:
rss.php
: http://llbb.pastebin.com/f5c1a8a37rss2.php
of template: http://llbb.pastebin.com/f24cd6fd3If 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.
In reply to: Limiting RSS Feed to First Post OnlyIs this close to what you want? Topic Feeds
If so, just be patient.
In reply to: DB access problem in the first installation step.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!
In reply to: Having trouble integrating WP functionsThe 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)
In reply to: Having trouble integrating WP functionsSorry, 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 )
In reply to: Having trouble integrating WP functionsSeems 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.In reply to: Having trouble integrating WP functionsThis 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.
In reply to: Having trouble integrating WP functionsI think this needs to change bbPress core and even WordPress’.
What’s the WordPress function that you are planning to use?
In reply to: Having trouble integrating WP functionsReproduced.
I didn’t use any language files. But after I put a language code in
bb-config.php
(for r988) andwp-config.php
, I got a blank page.Don’t know if I can fix this.
In reply to: Having trouble integrating WP functionsThen, 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.
In reply to: Having trouble integrating WP functionsI don’t have any clues to solve you problem.
If I were you, I will
1. put
error_log('WordPress loaded');
after thatrequest_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.
In reply to: Having trouble integrating WP functionsWell, 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.