Hi,
I would like to work with subforums and sub-sub forums,
but obviously that takes a lot of room on my front page..
Does anyone have the same problem and has a solution for that?
I suggest doing something like this:
Forum
– Subforum1
–Subsubforum1, Subsubforum2, Subsubforum3, Subsubforum4
-Subforum2
–Subsubforum1,Subsubforum2
does anyone know how to? 
thx!
The first warning disappeared!
Only three warnings left:
Warning: mysqli_get_server_info() expects exactly 1 parameter, 0 given in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php on line 80
Warning: Cannot modify header information - headers already sent by (output started at /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php:80) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/install.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php:80) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/functions.php on line 1898
Line 78 in db-mysqli.php looks like this:
$this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, $server->port );
I thought the order of the parameters was important, and should be:
host, user, pass, dbname, port, socket
From looking at line 78, it would seem that the dbname is set to null, and the socket is not used since it’s just not there. Is that intentional? Maybe the database name is set someplace else and is not needed here for this connection? Just asking because it seemed weird to me.
Thanks.
I just checked out r951 and I can duplicate this on a vanilla install without integration. I think the problem is with line 80 in db-mysqli.php:
if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') )
I think mysql_get_server_info() should be mysqli_get_server_info()
Since the connection was made a couple lines earlier with @mysqli_connect, there is no mysql_connect link identifier, and none is passed in, so line 80 generates a warning and the setting of the charset errors out, and would never happen.
If you add the i to line 80, the warnings go away. I added my comments to the trac ticket.
From lasir’s config file, it looks like a common theme may be that the error message says:
Access denied for user 'thechamp'@'localhost' (using password: NO)
but the config file specifies a different user: thechamp_risal. (Can the others who are experiencing this problem please post the DB details of their setup as well?).
This often indicates that the specified user doesn’t exist (or possibly doesn’t have access) in the specified database.
Lasil, I’m not sure what this post is showing. Are you looking at users in the wrdp1 database or in thechamp_wrdp1?
The other commonality here may be that all of you are using the mysqli extension. It could be that there’s a bug there that’s only now popping up since most people use the mysql extension.
You can try overwriting /bb-includes/db-mysqli.php with /bb-includes/db.php (so that you have two copies of db.php) to see if that helps.
I would like to use bbpress as soon as possible, I would appreciate it if some adventerous soul took a crack at it and made a few code edits.
Thanks.
Hi!
I am trying to install bbpress with WP 2.3.
In the config-file for bbpress I have written EXACTLY the same databasename, username and password as in the config-file for WP.
Still, when I run the install.php for bbpress I get several lines of “warnings”/error messages before the installation text “Welcome to…”
Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user ‘nicuuorg’@’localhost’ (using password: NO) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php on line 80
Anyone understanding what’s going on.
The WP runs without any problems.
Could it be related to that the username is not correctly read from the config.php-file. The username is nicuuorg_stefanj, but access is denied for 'nicuuorg'@'localhost' according to the warning above.
Ok, thanks for the post.
I wish I could “sick” it on account creations and not posts. All my spam is in new spam accounts.
I know I know… write a plugin
Sorry about that folks! It is back online obviously!
At my site http://www.doublepeace.se , when you log in, I’d like to have the users forum avatar displayed in the header. I tried just pasting <?php post_avatar(); ?> up there, and that didn’t work
To get Akismet working, you need an Akismet key. You need to register at http://wordpress.com/signup/ – you can check the radio button that says “Just a username, please.” and once you have an account, your Akismet key is in their somewhere (been a while since I had to look for it – but I think it’s “My Account > Edit Profile” and they “wordpress.com” key is there.) Once you have the key, you put it in your config.php like this:
$bb->akismet_key = ''; // Example: '0123456789ab
Just put your key in between those quotes, and you’re done.
I have both the My Views and Support Forums plugins installed. They work well together except for 1 thing. Both plugins add a new filter to bb_views.
If both plugins are running the new views from My Views are the only ones to show up. The Support Forums views are not listed. After poking through the code I was able to fix it by making sure that the Support Forums bb_views filter was added AFTER the My Views bb_views filter. To do so edit support-forum.php .
Replace line 432
add_filter('bb_views', array(&$this, 'addViews'));
With
add_filter('bb_views', array(&$this, 'addViews'), 200);
You should now be able to see the views from both plugins.
I’m no expert, but it seems like when My Views is adding my_views_init to the bb_views filter its overwriting whatever Support Forums has already added to the filter. Just a guess. I’m sure ck, so1o, mdawaffe, or SamBauers will know exactly what is going on.
Enjoy!
bbPress is installed in /forums and WPMU is installed in /blogs .
The cookie and database integration works fine.
I am able to access bbPress functions from within WPMU by adding this to the end of /blogs/wp-config.php
// Include bbPress functions in WPMU
define('WP_BB', true); // Avoid duplicate function declarations
require_once( ABSPATH . '../forums/bb-load.php');
I’m trying to add WPMU functions to bbPress. I’ve tried adding this to the beginning of /forums/config.php . I’ve also tried putting this in the beginning of the file.
require_once( dirname(__FILE__) . '/../blogs/wp-blog-header.php')
When I go to /forums/ I’m redirected to the WPMU sign up page (/blogs/wp-signup.php?new=%2F).
I’ve also created a simple file ( /test.php ) and tried to integrate it with wpmu. It it also redirected to the WPMU sign up page.
Test Start
<?php
require_once( dirname(__FILE__) . '/blogs/wp-blog-header.php');
?>
Test End
Do I need to create a WPMU rewrite rule in the wp_1_options rewrite rulerecord? There shouldn’t be any need for an .htaccess rewrite rule since /forums and /blogs are not in subfolders of either.
Any ideas how to make this work?
Hey neyoung! Cool to know you use the plugin 
I don’t use stickies or those poll or bugtracking plugins so I didn’t know. Thanks for the info, I’ll include your stuff in the next release.
You have tried to include this javascript:
http://www.popcultureshock.com/forum/my-plugins/js_quicktags.js
But that file cannot be found. So, where is that js_quicktags.js file?
Looks like you added the proper code to your template. Did you activate the plugin in your admin panel? Or is it in a different location?
I use this plugin ported from a Vanilla Extension:
<?php
/*
Plugin Name: Video Tags
Plugin URI: http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=33
Description: Ported from SirNot's HtmlFormatter for Vanilla
Author URI:
Version: 0.1
*/
//allow youtube and google videos to be posted, tags are:
//<video type="google">docid</video> (google video) -or-
//<video type="youtube">video id</video> (youtube) -or-
function video_embed($texto){
$sReturn = preg_replace_callback(
'/<video(?>s+)type=(["'
])((?>w+))1(?>s*)>([A-Za-z-_d]+?)</video>/is’,
‘VideoLink’,
$texto
);
return $sReturn;
}
function VideoLink($Matches)
{
$Type = strtolower(trim($Matches[2]));
$ID = $Matches[3];
switch($Type)
{
case ‘google’ : return (‘<embed style=”width: 400px; height: 326px;” id=”VideoPlayback” ‘.
‘type=”application/x-shockwave-flash” src=”http://video.google.com/googleplayer.swf?docId=’.$ID.'”></embed>’);
case ‘youtube’ : return (‘<object width=”425″ height=”350″><param name=”movie” value=”http://www.youtube.com/v/’.$ID.'”></param>’.
‘<embed src=”http://www.youtube.com/v/’.$ID.'” type=”application/x-shockwave-flash” width=”425″ height=”350″></embed>’.
‘</object>’);
default : return $Matches[0];
}
}
function allow_video_tags( $tags ) {
$tags = array(‘type’ => array(‘maxlen’ => 10));
return $tags;
}
add_filter( ‘bb_allowed_tags’, ‘allow_video_tags’ );
add_filter( ‘post_text’, ‘video_embed’ );
?>
`
It allows you to embed video only from YT or Google Video.
Thanks. I’ll just sit back and relax then
I second nolageek’s request
Kahil, your method works well if your users use their login name as their display name. However if a user who’s login is user23 changes his display name to John Doe then your code looks for this image. /forum/avatars/John Doe.jpg instead of the correct avatar image which would be /forum/avatars/user23.jpg. I couldn’t figure out a clean way to fix this (I’m using wpmu, not wordpress). But here’s a dirty hack.
<?php
$comment_author_dn = get_comment_author();
$comment_author = $wpdb->get_row("SELECT <code>user_login</code> FROM <code>wp_users</code> WHERE <code>display_name</code> = '$comment_author_dn'");
echo '<img id="comment-avatar" height="50" width="50" src="/forums/avatars/' . (empty($comment_author->user_login) ? "default" : $comment_author->user_login) . '" alt="avatar" />';
?>
That code should find images for a user if they use a display name or not.
/shrug
I haven’t fully tested it, but it seems to work ok.
Oh sorry for misleading. Nothing I do really helps the codebase other than to nag about bugs
I don’t consider myself experienced enough in that regard.
But I do try to write my share of plugins and themes and I hope to help attract other coders for the actual codebase.
Sounds like permalinks are creating a problem. Turn them off in your config.php and see if you can view posts.
Make this line in your config.php look like this:
$bb->mod_rewrite = false;
(maybe it says true or slugs now)
I don’t believe an .htaccess files comes with a default install. You would need to create one, so there won’t be one anywhere unless you created it, and it goes in the root folder of your forum. You can take care of that later, once you can at least see your posts.
hey folks,
i even found a new problem!
i can’t add links to my posting in my mainblog. i succesfully integrated wpmu with bbpress and now the links don’t work anymore.
when i add a link, the post only shows <a>words</a>.
did i allready tell you guys that i’m using wpmu?
any ideas?
thx,
jaithn
hey folks,
i even found a new problem!
i can’t add links to my posting in my mainblog. i succesfully integrated wpmu with bbpress and now the links don’t work anymore.
when i add a link, the post only shows <a>words</a>..
did i allready tell you guys that i’m using wpmu?
any ideas?
thx,
jaithn
this whas kinda my persuasion to choose for bbpress, so I could login from Iframes.. I knew nothing about forums (only phpBB: but this wasn’t easy to work with in iframes)… what a shame
hmmm but Iframes is so handy
I also use it for my photo albums… Thanks btw!