PHP Forums Archive

SEO Tools for bbpress - Updated version

Tags: plugin, seo, meta, noindex, entity codes

Olaf posted on 2009-08-13 11:46:58 #

Just noticed that the old version of the bbpress SEO pluging doesn't work with the current bbpress version (1.02).
Because the old method to handle and meta keywords stopped working we did a quick update.

This is a required update for user of bbpress 1.x!

Using the old version with bbpress 1.x will result in loosing rankings search engine result pages!

What is changed:

  • We fixed the code that is responsable for the meta keywords and the "noindex" option.
  • Optimizations of the admin page (information, spellcheck).

Download the new version here:
bbPress SEO tools

Comments / discussions

calebeaires posted on 2009-08-13 17:07:28 #

Olaf,

The link to the seo-tools.zip has failed! Could you give us another one?

Olaf posted on 2009-08-13 18:17:15 #

lol the link on that page was wrong since the first release :D

please try it again

calebeaires posted on 2009-08-13 20:27:02 #

Hi again!

The plugin was wrong on topics pages.

Warning: Invalid argument supplied for foreach() in (....) my-plugins/bb-seo-tools/bb-seo-tools.php on line 102

I am using bbpress 1.02

What I must do to fix it?

Olaf posted on 2009-08-13 20:35:31 #

strange, don't have that error (maybe there are no tags on that topic?)

replace this code from row 102

foreach ($tags as $val) {
	$ttags[] = $val->name;
}

with

if (count($tags) > 0) {
	foreach ($tags as $val) {
		$ttags[] = $val->name;
	}
}

Olaf posted on 2009-08-13 20:39:10 #

just tried the old code on topics without tags and didn't see an error :(

maybe your PHP config shows unwanted errors?

calebeaires posted on 2009-08-13 22:03:13 #

question I have considered:

The server is configured on PHP 5.
The topics has tags included
The Version that I have download from here: (Version 1.0) bbpress SEO tools
On Line 102 it is:

102 foreach ($topic_tag_cache as $tag_array) {
103 if (is_array($tag_array)) {
104 foreach ($tag_array as $val) {
105 $ttags[] = $val->raw_tag;

The Forum:

forum.gattune.blog.br

Olaf posted on 2009-08-14 04:28:30 #

Hi,

the new version is 1.01, here is the download link (from the page linked above)

calebeaires posted on 2009-08-14 12:35:13 #

Hi again!

its works very good, you have done a good plugin!

but, what do think about accent entity codes to foreign language. on meta description it is used on this version.

Is it good for seo purposes?

Olaf posted on 2009-08-14 12:40:01 #

Hi,

Meta information is not used anymore for SEO. It's only the description you need for the Google snippets in result pages.

Do you ever noticed a problem there (in Google result pages?)

EDIT: this thread has one quote entity in the meta description. I think this page is in the google index after another 24 hours. For foreign characters it should work if you use utf-8 encoding.

ANOTHER EDIT: I see that I use the function htmlentities for the meta description. I used that function because of unwanted characters ??? (can't remember). I will check this and I think I will use some Wordpress or bbpress function to return the right characters to the meta description

imperfectclark posted on 2009-09-18 16:54:41 #

Hi,
I am recommending this for a client and cannot test it before sending. Please help me answer a few questions before I suggest it to them:

  1. What is the minimum version of bbPress it works for?
  2. When it installed will it immediately alter URLs?
  3. Can it be used to create global rules for meta descriptions and keywords? Or must they be entered one by one
  4. If yes, does it apply those rules for old topics or only topics created afterward?

They already have SEO friendly URLs and good page titles; I just want to use this to help them implement global meta descriptions and keywords.

Olaf posted on 2009-09-18 18:07:18 #

1. the current version 1.02 (I don't test older branches because bbpress is software under strong development)

2. the plugin doesn't rewrite the URLs, the seo friendly URLs from bbpress are used (if enabled)

3. Yes the plugin is using the existing content from the first post on each page

4. To all topics, the next version will have also a manual replacement for meta description and page title. Check this post about downloads as example.

imperfectclark posted on 2009-09-18 18:55:17 #

Awesome, I think it will get the job done.

Having it applied retroactively to old topics is preferred, so no problem there.

Are there screenshots of the UI anywhere?

Thanks Olaf, this plugin looks to really come through for me and my client.

Olaf posted on 2009-09-18 19:05:05 #

Quote from: imperfectclark
"
Are there screenshots of the UI anywhere?"

Check this screenshot

calebeaires posted on 2009-09-18 19:15:52 #

It is different on mine. I have upload again, but the older version is still there, could you give us the new link to the new version?

Olaf posted on 2009-09-18 19:31:04 #

Quote from: calebeaires
"It is different on mine. I have upload again, but the older version is still there, could you give us the new link to the new version?"

you need to clear your browsers cache (or you a second browser)

imperfectclark posted on 2009-09-18 20:25:27 #

That screen shot is great, thanks. So the tags field would apply the same meta tags to all forum topics?

And friendly heads up, following typos/misspellings noticed:
titels (should be titles)
seperators (should be separators)

Cheers!

calebeaires posted on 2009-09-21 13:15:13 #

The new versin is on conflit with anonymous plugin post. Is there something we can do!

http://www.adityanaik.com/projects/plugins/bb-anonymous-posting/

Olaf posted on 2009-09-21 14:03:14 #

Sorry calebeaires, I don't wanna test that plugin.

do you get an error?

calebeaires posted on 2009-09-21 14:07:55 #

the las version use to work with it, but now, it is showing an array issue.

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in (http://....) on line 178

Olaf posted on 2009-09-21 14:27:10 #

it's about this code?

foreach($mods as $val) {
	if (array_key_exists($val, $arr)) {
		$is_mod = true;
		break;
	}
}

I guess this happens because no user is logged in.

calebeaires posted on 2009-09-21 14:32:01 #

There is something I can do to fix it? Or not?

(for instace, I would like to translate you plugin to portugese, may I do it?

Olaf posted on 2009-09-21 15:00:08 #

Add this row to that function "is_moderator"

if (!is_array($arr)) return false;

right after

$arr = unserialize($row->role);

(for instace, I would like to translate you plugin to portugese, may I do it?

I have no plans to add an multi language feature to this plugin (all text is used in the admin area)

calebeaires posted on 2009-10-02 21:22:51 #

I did it. Then I noticed that the error was because some array. Seo Tools For BBpress is causing a corupt with an adsense plugin:

This one: http://www.2diabolos.com/blog/plugin-bbpress-adsense-injection/

Is there something You can do. Could you help me?

Olaf posted on 2009-10-03 05:43:24 #

I'm sorry but I'm not using that adsense plugin maybe you can change the priority from both plugins. Please open a new topic because I think this is not related to the SEO plugin script release.