Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a link or button

Published on November 8th, 2009 by heredia21

How can I add a link or a button right next to where it says send post? Like create a button similiar to that, that will be a link.

Spam comments.

Published on November 8th, 2009 by InvTrdr

Is there something in bbPress that can help stop spam comments?

Thank you.

Features I love to see in BBpress

Published on November 8th, 2009 by Archie Webmaker

I want a feature that will enable user to add their own blogs plus display the blogs feeds in a public profile page.

Intergration problem?

Published on November 8th, 2009 by vanbroeK

Well first of all I am really happy with bbPress, it’s great for my simple site.

My problem is the integration between my wordpress blog an my forum. When i log in to the forum i get logged out of wordpress and visa versa. Just wondering whether or not this is supposed to happen? What can i do if its not?

Help would be great.

PHP Warning: include(../../ for plugin files

Published on November 8th, 2009 by hatter

This is meant as a solution to a common issue when including template files within plugin files.

Some plugins use their own files for outputting information to the browser. Usually, the instructions will tell you to modify the file to include files within the template you are using. I have found that most people will simply include, or require the file needed using a relative path, such as “../../bb-templates/kakumei/top-div.php”. Usually this is fine, unless the plugin file is called in such a way that the relative path doesn’t work. The best way around this is to use the function bb_get_template, which will get the file as an absolute path, using the current template, if applicable, or the default template if necessary. An example of this would be:

include(bb_get_template(“top-div.php”));

Hope this helps.

ERROR: bbPress database error – "MySQL server has gone away" for query …..

Published on November 8th, 2009 by hatter

After researching this error for a while, I finally found a solution and wanted to share to hopefully help someone else out, so they don’t go through the same headache.

Searching for this issue within bbPress lead nowhere, so I abandoned that approach and looked at it from strictly a MySQL perspective. Finally I found that there wasn’t enough time being given to queries. Once the timeout was reached, an error would be thrown, and the query would be abandoned. For one of my client sites I found that, even though we had a dedicated server, the host used a default .cnf file for db settings, and had set the wait_timeout = 10, meaning if a query didn’t respond in 10 seconds (even if the server was under load at the time), the query would fail. This issue was resolved with the following settings:

interactive timeout = 25

wait timeout = 45

Note: The settings may need to be different for your site, and your host may not let you change these settings. I just wanted to mention this in case it can help you.

PHP Warning: parse_url

Published on November 8th, 2009 by hatter

In the php_errorlog, there is a common warning, “PHP Warning: parse_url(…..”. This warning is caused within the bb_get_path function in bb-includes/functions.bb-core.php. The common cause of this issue is due to urls being passed to this function in the following format:

/bb-login.php?re=http://example.com/tags.php?tag=sometag

Due to the http:// within the query string, parse_url will fail and log an error. The way to get around this is to pre-pend the website address and http:// to the beginning of the url, such as:

http://example.com/bb-login.php?re=http://example.com/tags.php?tag=sometag

This format is valid with the parse_url function. To change your code to use this format, change the bb_get_path function in bb-includes/functions.bb-core.php to the following:

function bb_get_path( $level = 1, $base = false, $request = false ) {

if ( !$request )

$request = $_SERVER;

if ( is_string($request) )

{

// parse_url throws a warning for a url that has http:// as a query parameter and doesn’t start with http://

$pos = strpos($url, “http://”);

// Check if we found http:// in the string and it’s not at the beginning, and the url starts with a forward slash

if ($pos !== false && $pos > 0 && substr($request,0,1) == “/”)

{

// We got here, so it’s not at the beginning and is in the url. Add in the domain to the beginning

$oldRequest = $request; // Use a new variable since some PHP versions don’t like re-assigning

$request = “http://”.$_SERVER[“HTTP_HOST”].$oldRequest;

}

$request = parse_url($request);

}

if ( !is_array($request) || !isset($request) )

return ”;

$path = rtrim($request, ” tnrx0B/”);

if ( !$base )

$base = rtrim(bb_get_option(‘path’), ” tnrx0B/”);

$path = preg_replace(‘|’ . preg_quote($base, ‘|’) . ‘/?|’,”,$path,1);

if ( !$path )

return ”;

if ( strpos($path, ‘/’) === false )

return ”;

$url = explode(‘/’,$path);

if ( !isset($url[$level]) )

return ”;

return urldecode($url[$level]);

}

Doing this will get rid of the common error in your error log, and prevent site issues.

Note: This will need to be changed if your site is using SSL, such as https://

bbRating FF issue

Published on November 8th, 2009 by Doobus

Posted this in the bbRating plugin section, but figured my issue would have more exposure if I posted here.

I have bbPress 1.0.2 on a test server with bbRating 0.8.5.

bb_rating() and bb_rating_dingus() work correctly on IE8 and Safari, and oddly does not work in FireFox. Firefox simply doesn’t show anything, looking at the source code it shows the same thing as IE8 and Safari, with my limited coding knowledge I’m not sure what the issue could be.

Also bb_top_topics, which I assume lists the highest rated threads doesn’t do anything on any of the browsers.

Thanks.

BBPages

Published on November 7th, 2009 by heredia21

Who has gotten this to work? I put it in my plugins folder, but it is not showing up under plugins in the admin panel.

BB Seo Tools Bugs

Published on November 7th, 2009 by alegria

There’s some conflicts in the bb seo tools plugin with human test. This is the error:

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /web/htdocs/www.alegria.it/home/forum/my-plugins/bb-seo-tools.php on line 178

Skip to toolbar