Search Results for 'code'
-
Search Results
-
Hi,
I’m having trouble connecting to my database that I have set up. Firstly it looks like the first step of the install process is changing the forum database (causing the DB Error: cannot select’, as in this forum post:
I went ahead and changed the config file manually, but when this happens I get the ‘ERROR: Could not establish a database connection’.
I have a feeling it is to do with leaving the MYSQL hostname as localhost. If so, where should I get the alternate hostname?
Here is the config file:
<?php
/**
* The base configurations of bbPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys and bbPress Language. You can get the MySQL settings from your
* web host.
*
* This file is used by the installer during installation.
*
* @package bbPress
*/
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for bbPress */
define( ‘BBDB_NAME’, ‘Forum’ );
/** MySQL database username */
define( ‘BBDB_USER’, ‘XXXXXXXXXXXXXX’ );
/** MySQL database password */
define( ‘BBDB_PASSWORD’, ‘XXXXXXXXXX’ );
/** MySQL hostname */
define( ‘BBDB_HOST’, ‘localhost’ );
/** Database Charset to use in creating database tables. */
define( ‘BBDB_CHARSET’, ‘utf8’ );
/** The Database Collate type. Don’t change this if in doubt. */
define( ‘BBDB_COLLATE’, ” );
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
*
* @since 1.0
*/
define(‘BB_AUTH_KEY’, ‘Y]YVAAW{KX<z8*H4,E`8t2%j#F{yFuz?6yZDR-|}Ot@m <P8|TKIpyaF]Mh_N*RO’);
define(‘BB_SECURE_AUTH_KEY’, ‘lgS<S0vo^-ojBRp(_i6@9uUa<e|36aXV)_B|8#Eqb^M|
|ZY{.(`-?wBu>NTOdV’);define(‘BB_LOGGED_IN_KEY’, ‘;
+XoB4ti%4.!RhNcuE3|n_1~Va,oQ6>1%b9O>^A ;:{^XXzCi=G`f))q9 B{!u’);define(‘BB_NONCE_KEY’, ‘d44;tp-T)%z:p;fz}P{4PzGrdp8DfIt$g@O?}-)bqn_lE|@;L^sEIO75zC-(I#J@’);
/**#@-*/
/**
* bbPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$bb_table_prefix = ‘bb_’;
/**
* bbPress Localized Language, defaults to English.
*
* Change this to localize bbPress. A corresponding MO file for the chosen
* language must be installed to a directory called “my-languages” in the root
* directory of bbPress. For example, install de.mo to “my-languages” and set
* BB_LANG to ‘de’ to enable German language support.
*/
define( ‘BB_LANG’, ” );
?>
Any help would be greatly appreciated, thanks in advance.
Tristan
Topic: Custom breadcrumb
Hello everybody,
first sorry for my english, i’m a french bbpress user then i don’t speak a very good english.
I’m trying to custimize the breadcrumb on my forum but i don’t succeed what i’m trying to do.
By default, the breadcrumb is like this :
Forum name >> Category name >> Forum name
What i want is to delete the “Category name” from the bbcrumb. Then i went into functions.bb-template.php file but don’t found the codeline i have to edit. I found the bb_get_forum_bread_crumb() function but don’t know how to do.
Does someone can help me ?
In resume, i’m trying to change :
Forum name >> Category name >> Forum name
to :
Forum name >> Forum name
on forum pages.
Last question, how to add “topic name” at the end of the bbcrumb on the topics page ?
Thanks in advance.
Hello,
I have sorted out my migration from a standalone 1.0 installation in a separate db to a 2.0 plugin installation on my own, and now I would like to restore the functionality of bbpress 1.0 of having a log in/out link and a username for the logged-in user at the top of every forum page. I don’t want this at the top of every page on my site, just on every forum page. Here is the approximate code I would use if I were to add this to a WP header somewhere:
<?php if ( is_user_logged_in() ) { ?>
get_currentuserinfo();
<p>
echo ‘Welcome ‘ . $current_user->user_login . Click here to log out“n”;
</p>
<?php } else { ?>
<p>” title=”Login”>Log in to post if you are registered, or /wp-register.php”>register an account.</p>
<?php } ?>
Can someone help me integrate the same functionality into bbp-common-template.php or wherever it ought to go in order to be shown on every forum page but not on any pages that aren’t part of my forum? I would like it to appear right below the breadcrumbs on every page.
While I’m here, I’d like to strongly recommend building this functionality into the bbpress plugin, since there are probably many people other than me who don’t want to encourage login attempts (or use up primary menu navigation space) for any pages other than their dedicated forums.
Thank you!
Anyhow, stay swayable!
