Search Results for ' . default . '
-
Search Results
-
<p class="soapbox">
Having hacked at the default bbPress template I’m conscious that it makes extensive use of element identities for it’s formatting.
i.e. elements have an
id="xyz"
or aname="xyz"
attribute, and in the css there is a corresponding#xyz { color: #FFF; }
.With a pluggable base model such as bbPress it makes sense to specify “how to render things like this” rather than “how to render the thing called this”.
Thus my request and suggestion is that anyone considering designing bbPress themes in the future seriously considers using CSS classes instead of IDs for formatting.
The use of classes has the same effect as id’s, but there is a key benefit: an ID can only appear once on a page, so if a page element is repeated, and it’s formatting is based on an ID, then the template breaks.
</p>
Because I like to be difficult, I have my WordPress installed at ~/siliconholler.com/blog/ and mapped to http://blog.siliconholler.com/. My bbpress installation is in directory ~/siliconholler.com/forum/ and mapped to http://forum.siliconholler.com/
It mostly works. When I try to look at the default topic http://forum.siliconholler.com/topic/1?replies=1 I get a 404. If I try to view a profile http://forum.siliconholler.com/profile/1 I also get a 404.
.htaccess currently has Options +MultiViews and I have also tried the code generated by /bb-admin/rewrite-rules.php
My config.php reads:
// ** MySQL settings ** //
…
$bb_table_prefix = ‘bb_’;
$bb->domain = ‘http://forum.siliconholler.com’;
$bb->path = ‘/’;
$bb->name = ‘Reality Me Discussions’;
$bb->admin_email = ‘validemailaddyhere’;
$bb->mod_rewrite = true;
$bb->page_topics = 30;
$bb->edit_lock = 60;
$bb->gmt_offset = -5;
define(‘BBLANG’, ”);
$bb->akismet_key = ‘properkeyhere’;
$bb->wp_table_prefix = ‘wp_’;
$bb->wp_home = ‘http://blog.siliconholler.com’;
$bb->wp_siteurl = ‘http://blog.siliconholler.com’;
/* Stop editing */
define(‘BBPATH’, dirname(__FILE__) . ‘/’ );
require_once( BBPATH . ‘bb-settings.php’ );
Any suggestions?
Doug McCaughan
Hi everyone, I’ve just had one hell of a night trying to figure out this bbP/wP integration stuff. Eventually, I thought I’d do a clean test install and work from there to see if I could isolate the issue, so I installed:
BBpress 0.7.3
WordPress 2.0.5
on
Apache 2.0.59
mySQL 5.0.19
PHP 4.4.4
via MAMP on Mac OS 10.4.8
with WP in root and BBpress as subdirectory “discussions”.
I then configured wp-config.php and config.php like so:
<?php
define('DB_NAME', 'database');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
define('DB_HOST', 'localhost:8889');
$table_prefix = 'wp_';
define ('WPLANG', '');
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
and
<?php
require_once(dirname(dirname(__FILE__)) . '/wp-config.php');
define('BBDB_NAME', 'database');
define('BBDB_USER', 'root');
define('BBDB_PASSWORD', 'root');
define('BBDB_HOST', 'localhost:8889');
$bb_table_prefix = 'bb_';
$bb->domain = 'http://192.168.0.149:8888';
$bb->path = '/discussions/';
$bb->name = 'the Forum';
$bb->admin_email = 'email@email.com';
$bb->mod_rewrite = false;
$bb->page_topics = 30;
$bb->edit_lock = 60;
$bb->gmt_offset = -8;
define('BBLANG', '');
$bb->akismet_key = '***********';
$bb->wp_table_prefix = 'wp_';
$bb->wp_home = 'http://192.168.0.149:8888';
$bb->wp_siteurl = 'http://192.168.0.149:8888';
define('BBPATH', dirname(__FILE__) . '/' );
require_once( BBPATH . 'bb-settings.php' );
?>
(the 8888/9 ports are MAMP defaults; 192.168.0.149 is the LAN IP of the computer I’m running this on)
Then I ran the install scripts, and lo and behold, everything seemed to be working great. Then I began to add plugins one by one, and, to make a long story short, found that:
Whenever the Sidebar Widgets plugin was activated along with a separate widget (including those included with it, del.icio.us and google, as well as akismet, which has a widget built-in), trying to load a BBpress page would yield a blank page. However, if Sidebar Widgets was activated but no widget plugins were, it would work fine–I could even use the integrated widgets (RSS, categories, calendar, etc) on the blog. Likewise, if Sidebar Widgets is deactivated, but all the widgets are activated, it still works fine.
Also: the Front Page Topics plug-in for bbPress, regardless of any other plugins in wP or bbP, yields a similar blank page on posting a new reply, starting a new topic, making a new forum, or logging out. If I go back and refresh, the topic/reply/forum HAS been created… but the logout attempt is UNsuccessful. Like I said, I tried this with no bb or wp plugins, as well as a variety of them, and its always the same result.
Ok, its 4:15 in the morning, I have class at 8 and I’m going to go pass out, but hopefully this is enough information for someone to tell me what gives…
Thanks for reading/any help.
-G
The topic-tags.php template is being explicitly included through the topic_tags() method of template-functions(), so replacing it in my-templates has no effect.
This makes me wonder if, generally, a
bb_include
andbb_require
method could be used for all includes which would check the template system before resorting to a default folder.this could possibly replace the oft repeated:
if (file_exists( BBPATH . 'my-templates/whatever.php' ))
require( BBPATH . 'my-templates/whatever.php' );
else require( BBPATH . 'bb-templates/whatever.php' );
I thought it worth mentioning because theme developers might find it useful from the outset.
Topic: error when installing
I’m trying to install bbPress but I got this error
“Fatal error: Call to undefined function: load_default_textdomain() in /home/.nevermore/wererabbit/demon.wererabbit.net/bbpress/bb-settings.php on line 132”
What I’m supposed to do?
Topic: User management, WP and BBP
I am setting up a web site that has two main groups of users: The (WP) blog editors, and the readers, who are supposed to be able to make contributions through comments or in the forums. The registered WP users can use the bbPress forum seamlessly, however, there’s a bit of a problem on the other end, with the users who first register themselves in bbPress. It seems that when someone registers as a bbPress user, they are also automatically a WP user. This would be fine and dandy, if only their user level was set low enough to keep them out of the WP backend. But it doesn’t work like that. I’ve set the default user role for new users to “Subscriber”, but something in the communication between bbP and WP goes wrong, and they are granted some mutation of the administrator role instead: They aren’t able to publish, or edit posts from users with a higher level, but they can edit each others drafts, and they can change both their own and others user levels and passwords. Or edit the templates.
So what I want is a way for registered WP-users to flow freely into bbPress, but not vice versa. I don’t want the forums users in the WP dashboard area at all. I’ve tried the bbpress-integration.php-plugin, but it doesn’t seem to make any difference, its only option is to set the bbPress prefix to bb_ (the bbP-tables already has this).
Topic: languages?
Hi, i’m just steppin’ in in Bbpress, and i’m very impressed.
I’ve used WP in the past, and I like it a lot.
BBPress has same carisma.
I’m just wondering about changing the default language.
In Wp that’s done throug a compiled file, and with BBP?
hi,
can anyone help me out for the following…why it dosent move after 2nd step…
“Second Step
Now we’re going to create the database tables and fill them with some default data.”