We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Plugin: SEO gadget

Development and Programming

silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

This plugin analyzes the referrer data stored in exp_referrers and displays search phrases, search engines, keywords and rankings.

It’s just a little toy for your personal information. You’ll probably want to use it on a non-public template much like the referrer-list.

       
Daniel Walton's avatar
Daniel Walton
553 posts
17 years ago
Daniel Walton's avatar Daniel Walton

Very nice indeed :D

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

Saw this on your site last night, silenz - nicely done. You’ve been very busy with plugins!

       
Greg Salt's avatar
Greg Salt
3,988 posts
17 years ago
Greg Salt's avatar Greg Salt

Very cool indeed Silenz 😊

       
Derek Jones's avatar
Derek Jones
7,561 posts
17 years ago
Derek Jones's avatar Derek Jones

Just a note that I have some referrers where the ref_from is not a valid URL, resulting in “Undefined index: host” errors, so you might want to make sure that parse_url() returns what you are expecting before accessing indexes of the returned array. Other than that, it’s rather nifty and a useful way of displaying the information from that table.

       
silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

Still needs some fiddling here and there, yes.

What troubles me especially is that I seem to be unable to properly decode the html-entities in the stored ref_from strings which results in many scrambled special chars.

       
silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz
…I have some referrers where the ref_from is not a valid URL…

That has been taken care of.

[quote author=”myself”]I seem to be unable to properly decode the html-entities Thanks to a tip by Derek that is also resolved :cheese: The plugin’s output is utf-8 now.

Other than that I updated this plugin to version 1.2 and added to new variables / parameters:

{top_referrer}: lists referrers (hosts) by number of referrals

{eesearch_cloud}: shows search phrases used with the EE search module in a cloud view Since I found lots of spam in the Search Term Log I’m filtering out any HTML, BBCode and URLs there, though.

       
Willem de Boer's avatar
Willem de Boer
142 posts
17 years ago
Willem de Boer's avatar Willem de Boer

If i install the plugin and would put it on an empty template, i get this error, wat could it be?

Fatal error: Call to undefined function: mb_strtolower() in /www/url/plugins/pi.seo_gadget.php on line 255
       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
17 years ago
Ingmar Greil's avatar Ingmar Greil

mbstring is a non-default extension, which must be enabled explicitly by the host. Talk to them.

       
Willem de Boer's avatar
Willem de Boer
142 posts
17 years ago
Willem de Boer's avatar Willem de Boer

Ohkee, i’ll ask them

       
asozzi's avatar
asozzi
262 posts
17 years ago
asozzi's avatar asozzi

First off: This is a really nice plugin! Important info at a glance, hats off.

I ran into an error though

Warning: parse_url(file://D:\WebSoft\Aptana\EHS.SFU.CA_trials\.2007.06.15_ImpPathogens.html): Unable to parse url in ./hart/plugins/pi.seo_gadget.php on line 348

Due working in Aptana under windows and sometime clicking a live link in the work environment I assume. Q:Could this be checked for (sorry my PHP knowledge is minimal).

I also ran into the mb_strtolower problem. I just turned all calls back into

strtolower($result[1])

instead of:

mb_strtolower($result[1,"UTF-8"])

which works for me (no umlauts etc) (no chance of getting the mb_strtolower installed here)

       
Willem de Boer's avatar
Willem de Boer
142 posts
17 years ago
Willem de Boer's avatar Willem de Boer

It works, the mbstring is now on 😊

       
silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

Thanks to Ingmar for the support. I have been away for two weeks.

When I find the time, I’ll build in a fallback to strtolower if Multibyte String Functions are not installed.

Considering the warning with file://-referrers… that has been taken care of in version 1.3.1

       
Gerazo's avatar
Gerazo
28 posts
17 years ago
Gerazo's avatar Gerazo

New EE user here… Could you share how to make it so this posts to a private template?

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

Just add it to a template and click the Access link to the right of that template, set it to “No” for all those member groups =)

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.