Search Results for 'code'
-
Search Results
-
Topic: Configuring Config.php file?
Hello,
Need some support configuring my bbPress Config.php file at http://patrimoineacadien.com/bbpress . My WordPress blog can be found at http://patrimoineacadien.com .
Have patience reason I don’t have advance programming knowledge.
Please continue reading below to find my bbPress Installation related questions.
Thanks a million for your support.
Robert Richard.
_______________________________________
A) Did create a new MySQL database title patrimoi_bbpress, in my cPanel, for my new bbPress installation. Then, I inputted my already known/existing MySQL username and password. Is this correct?
<?php
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘***’); // The name of the database
define(‘BBDB_USER’, ‘***’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘***’); // …and password
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
Everything seems to look fine for the URL. What do you think?
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = ‘http://patrimoineacadien.com’; // Example: ‘http://bbpress.example.com’
// There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.
$bb->path = ‘/bbpress/’; // Example: ‘/forums/’
// What are you going to call me?
$bb->name = ‘Babillard PatrimoineAcadien.com’;
// This must be set before running the install script.
$bb->admin_email = ‘***’;
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = true;
// The number of topics that show on each page.
$bb->page_topics = 30;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = 60;
C) Getting the –1 years behavior. I’m Eastern Standard Time. How do I resolve?
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = -4;
D) Did create new folder title languages in the following path bb-includes/languages; then I added fr_FR.mo file into above new folder. French language doesn’t seem to be working. How can I resolve?
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’
// to enable German language support.
define(‘BBLANG’, ‘fr_FR’);
E) Did I input the Akismet key at the right location?
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at
// http://wordpress.com/api-keys/
$bb->baacc67278bb = true;
F) How do I configure the following in order to integrate my bbPress with my existing WordPress?
// The rest is only useful if you are integrating bbPress with WordPress.
// If you’re not, just leave the rest as it is.
$bb->wp_table_prefix = false; // WordPress table prefix. Example: ‘wp_’;
$bb->wp_home = false; // WordPress – Options->General: Blog address (URL) // No trailing slash
$bb->wp_siteurl = false; // WordPress – Options->General: WordPress address (URL) // No trailing slash
/* Stop editing */
define(‘BBPATH’, dirname(__FILE__) . ‘/’ );
require_once( BBPATH . ‘bb-settings.php’ );
?>
Hi,
in the standart install i get the alternate colors of the td´s in a dark pink, in firefox or opera i get the greenish hover color. Can you give me a hint where the dark pink in IE comes from or where it is coded in style.css.?
Best,
Karl-Heinz
Topic: different layout ?
how to change layout?
now, the layout of my forum is like: http://n22.awardspace.com/forums
header
—-tag
last disc.–
forums—-
view
footer
i want to change it to :
header
last disc.
forums
tag
view
footer
(center all those things)
what should i do?
and how about adding a background wallpaper just like this bbpress forums?
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
Thank you for bbpress!
This thread comes close to answering my question but misses an important concept “where should bbpress code reside to integrate best with wordpress?”: http://bbpress.org/forums/topic/38?replies=29
The directory structure I am planning on using:
domainname.com (splash screen, redirect to /blog or whatever)
|
|—/blog/ (wordpress code in this subdirectory)
|
|—/forum/ (bbpress code in this subdirectory)
…
Incase the spaces compress I’ll show that another way:
http://domainname.com/blog/ (wordpress)
http://domainname.com/forum/ (bbpress)
Am I making a mistake to not use this directory structure:
domainname.com
|
|—/blog/
… |
|—/forum/
…
http://domainname.com/blog/ (wordpress)
http://domainname.com/blog/forum/ (bbpress)
OR here’s a silly one. Noting that wordpress and bbpress seem to share the same filename only with index.php, should all code be in the same directory: http://domainname.com/ (wordpress and bbpress code here with some magic done to the index.php file? like index.php for wordpress and renaming bbpress’ to index-bb.php)
Which directory structure is going to make for the happiest co-existence of wordpress and bbpress with the intention of having them seemlessly interact? My gut feeling is that it just doesn’t matter as long as wp-config.php gets included within the config.php for bbpress.
Thank you!
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