I’ve been inputting my
Database name
Database user
Database password
exactly how they appear in “wp-config” (copy & pasted) but it keeps telling me
“There was a problem connecting to the database you specified.
Please check the settings, then try again.”
I’m guessing it has something to do with the advanced settings, which I have not changed. I’m with GoDaddy but it said in 99% of all cases you should leave it the same.
Any help guys?
Why not load the bbPress environment and then call function to check is user is logged in? I have done the same in WP, so I think it might be possible in bbPress very easily too.
For WP
// load the WP environment so that I can call on the WP functions to make sure that user is logged in before accessing members area
require( dirname(__FILE__) . '/wp-load.php' );
if (!is_user_logged_in()) // You can't access the members area without login. Now can you?
{
auth_redirect();
}
For bbPress, it should be like
require('./bb-load.php');
// find the name of the function you will need
Thanks guys. I must say this forum is very friendly. I will definately give this a go. If I have any problems I won’t hesitate to come back
Hmm..it looks like they say to use the functions.php file (for the theme) to add the code, but I don’t see such a functions file…am I missing something obvious?
The allowable HTML tags are in an array called bb_allowed_tags. I think you could create a plugin that just empties that array.
https://bbpress.org/forums/topic/hooks-038-filters-docu#post-6740
I’ve only seen people requesting the opposite, allowing additional HTML markup, so I’m not sure exactly how to do this.
I use this to stop people accessing the profile page unless logged-in;
<?php if ( !bb_is_user_logged_in() ) {
show_error_page('log-in to access profiles');
exit;
} ?>
Something along those line should work with a link to somewhere else, assuming they’re in a bbPress page to begin with.
Hi everyone,
I want to disable HTML codes in posts. I am using “BBcode Lite for bbPress” and I dont need html codes to edit my post. When my member want to add a HTML code that is useful to forums the code works and havent seen properly. How can I disable?
Now I get an odd behavior:
– if the user logs in inside WP, he appears logged in in both WP and BB, but he can’t post in BB. If he has admin rights, he can’t see bb-admin.
– if the user logs in inside BB, everything works ok in both WP and BB.
So I redirected all logins to BB.
In mu-plugins I added the following:
function rk_login_redirect() {
if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && $_GET['action'] != 'logout' ) {
$url = 'http://foros.ryuuko.cl/bb-login.php';
$redirect = urlencode(wp_get_referer());
$url = add_query_arg('redirect_to', $redirect, $url);
wp_redirect($url);
}
}
add_action('init', 'rk_login_redirect');
In a plugin in my-plugins I added:
add_filter('wp_redirect', 'rk_redirect_location');
function rk_redirect_location($location, $status = 302) {
$arr = array();
$ref = wp_get_referer();
$url_array = parse_url($ref);
parse_str($url_array['query'], $arr);
if (isset($arr['redirect_to']) && !empty($arr['redirect_to'])) {
$url = urldecode($arr['redirect_to']);
$url_array = parse_url($url);
if (strpos($url_array['host'], 'ryuuko.cl') !== false)
$location = $url;
}
return $location;
}
Yes, you can integrate your user databases and then cookie integrate. 
Two questions:
* Do you want to combine your two user account systems? If so, how will you handle it when two accounts have the same name in each system?
* What version of WordPress are you using?
I think maybe it’s a bug? The code at line 657 is:
return sprintf('<img src="$1%ssupport-forum-$2%s.png" alt="[$3%s]" title="[$3%s]" style="vertical-align:top; margin-right:0.3em; width:14px; height:14px; border-width:0;" />$4%s', $this->iconURI, 'sticky', __('sticky', 'support-forum'),$label);
Instead of $ 1 % (added spaces so it’d render on bbpress) shouldn’t it be %1$? c.f. http://us3.php.net/manual/en/function.sprintf.php
Likewise, replace all the other integers, e.g. it should be %2$.
Oddly, this function was changed in 3.0.2.
You can reverse the $ and % signs here and in the other function at line 680.
This, however, is still true. Has anyone else encountered this trouble?
Trying to determine if it’s a plugin in need of update, or if it’s an error on my part, or an actual issue in RC3.
Ok, so I’ve just revisited the additional code issue for my forum and it is indeed the “Allow Images” Plugin that triggers this behaviour. Not only does it scramble your IMG codes, but all other codes as well. It didn’t do this up to RC1 though.
It’s working now for me and I used the chance to also upgrade my custom theme to Kakumei RC3 Standards which, yes, involved the deactivation of the external Page Links plugin.
Works good now.
topic_tags() will invoke the topic-tags.php file in your template (or if that file doesn’t exist in your template, in the default template).
At the bottom of the code in that template, there is a tag_form(); invocation. To not have the form appear, you could try invoking the rest of the code on that page (without that tag_form invocation).
The “delete tag” link will appear as long as you are logged in as an admin. It won’t appear to most users when you’re not logged in. So you shouldn’t worry about that appearing.
You aren’t inside a function so there’s no need to globalise $bbdb.
This will get you every user (including all meta) into the array $users:
$user_ids = $bbdb->get_col( "SELECT ID FROM $bbdb->users WHERE user_status = 0 ORDER BY id;", 0 );
$users = bb_get_user( $user_ids );
print_r( $users );
Hopefully this is only a typo here, not in your actual code:
global $bddb;
Should be $bbdb.
I am guessing you need to change your
RewriteBase
from
RewriteBase /
to
RewriteBase /forum/
where forum is the name of your subfolder.
I want to display a list of all the users on my blog (wbs80.com) and their profile information.
I have been looking at the bbpress code and trying several tests…but unfortunately without success.
My approach is to get the list of profile keys, get the list of users and for each user display the username and profile information. The code segment that I have is:
<?php
require_once (‘../../bb-load.php’);
global $bddb;
$profile_keys = get_profile_info_keys();
//print_r($profile_keys);
$userinfo = $bbdb->get_results(“SELECT * FROM $bbdb->users WHERE user_status = 0 ORDER BY ‘ID'”);
//print_r($userinfo);
foreach ($userinfo as $key) {
$metainfo = $bbdb->get_results(“SELECT * FROM $bbdb->usermeta WHERE user_id = $key->ID”);
// ???
}
?>
I don’t know how to use the “profile_keys” value(s) to access the “metainfo” data structure and extract the data.
Any help would be greatly appreciated!
This plugin should do something similar, and hopefully won’t give you any errors. 
https://bbpress.org/plugins/topic/members-online/
The .htaccess code redirects all POST requests to register.php to another url if the request doesn’t have a referer from my own forum.
The code is originally from here: http://wpmututorials.com/how-to/spam-blogs-and-buddypress/
Ah, that I haven’t. I copied it into the folder. Mind you, it doesn’t seem to have anything defined in it which points to the old path. Here’s the content;
Options -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^pm/?(.*)$ /my-plugins/bbpm/index.php?$1 [L]
RewriteRule ^page/([0-9]+)/?$ /index.php?page=$1 [L,QSA]
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /forum.php?id=$1 [L,QSA]
RewriteRule ^forum/?$ / [R=302,L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /topic.php?id=$1 [L,QSA]
RewriteRule ^topic/?$ / [R=302,L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ /profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /rss.php [L,QSA]
RewriteRule ^rss/topics/?$ /rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ /rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/topics/?$ /rss.php?tag=$1&topics=1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ /rss.php?view=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [L]
</IfModule>
I have no idea what any of it does!
That table name looks wrong (based on the table name from the Simple Online List you posted in the other topic). What version of bbPress are you using and how are you getting the avatars to show? Plugin?
monstet5_bbp01.bb_online
Looks like monstet5_bbp01 is the database name, and bb_ is the table prefix, and online is the table name created by the Simple Online List?
If that’s the case there, how do you have an options table here with no table prefix, just a database name?
Unless you used bbp01. as your table prefix instead of bbp01_?
Also, can you get phpinfo() for your server? Just put this into a file and call it up in a browser:
<?php
phpinfo();
?>
If you save that as a file called info.php, you can load in your browser at http://www.example.com/info.php or http://www.example.com/bbpress/info.php depending on where you installed it.
When you run this query, does your old URI show up anywhere?
SELECT * FROM bb_topicmeta WHERE meta_key=’uri’
As for the word “slugs”, I’m pretty sure it comes from typesetting. 
http://en.wikipedia.org/wiki/Slug_(typesetting)