Search Results for 'code'
-
Search Results
-
Topic: bbp_is_forum (bbpress 2.0)
Hi, trying to integrate in my template BBP, but i need to made some special changes in sidebar.php when the user are in forum’s.
to initial check i write in the sidebar.php
<?php if( bbp_is_forum() ) { echo "iam_forum";
}
?>
but the echo is visible in every page/post not only in the forum… what’s wrong?
hey guys, i’v installed and integrated these two friends.
BBPress is recognizing wpmu users and allow to login but when i login with my super user in BBPress, i dont have any administration ability,
i set the rules for wordpress super user in bbpress settings, but its not working, and i cant in anyway go to bb-admin and change any setting

any suggestion ?
thanks.
How to get topics first 100 or 150 characters in post link title (in front page) ?
is possible to Gettting posts index while hovering post link?
tried post_text, in frontpage.php but didn’t work:
<a href="<?php topic_link(); ?>" title="<?php post_text(); ?>"><?php topic_title(); ?></a>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
Anyhow, stay swayable!
