Yo Programo .NET

SEO Pack for Blogengine.NET

June 15, 2008 20:35 by fabian
Categorías: BlogEngine
Optimizes your BlogEngine for Search Engines (SEO)

Features:

  • Optimizes your titles for search engines
  • Generates META tags automatically
  • You can override any title and set any META description and any META keywords you want (Only on Home Page).


Installation:

  • Download SEO-Pack.ZIP file.
  • Copy seopack.cs into your BlogEngine extensions directory.
  • Copy "seo" folder into root of your BlogEngine application.
  • Disable the option "Use blog name in page titles" on your configuration blog.
  • Only for Upgrade instalations: Delete settings file "datastore/extensions/seopack.xml"


Bugs:

Comments

August 26. 2008 18:15 chicaseo.com
pingback
Pingback from chicaseo.com

BlogEngine.NET vs Wordpress - Chica Seo
August 27. 2008 23:45 Davide Espertini
Davide Espertini
I think it's a good Extension! Good work Fabian!!
September 22. 2008 10:49 Darren
Darren
Great idea, but I'm having issues with other pages. Pages such as category or Author pages keep the same title as the last post you saw. http://oberdata.com.ar/blog/author/fabian.aspx has a title of "Oberdata - SEO Pack for Blogengine.NET" for me, and that seems wrong.
September 22. 2008 23:09 Fabián
Fabián
@Davide: Thanks! ;)

@Darren: Thanks for report this problem, i will solved this bug on new version (3.0)
October 24. 2008 05:48 Emanuel
Emanuel
Hola Fabian,

Sounds great set it up but when I look at the HTML code on the specific pages I dont see the meta list of keywords.

Desculpa.
Emanuel Australia
October 24. 2008 06:17 Emanuel
Emanuel
Hi FAbian,

I can find the keywords I entered into your tool on the main blog page but in the posts the keywords are only what in the Tags.

Is it suppose to be like this??

Obrigado,
Emanuel
October 25. 2008 12:45 Emanuel
Emanuel
Hi Fabian

Should we use NOFOLLOW on the category section?
I am getting confusing results in google sitemap

Thanks
February 14. 2009 09:58 fabian
fabian
Emanuel. Hello. You can use NOFOLLOW on the pages of categories with the Ver:0.3.3
February 14. 2009 21:20 John
John
get the following error when trying to edit you extension settings.  Yes, i did copy the files exactly as you said above and disabled the option
"Use blog name in page titles".

Server Error in '/blog' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 88:         }
Line 89:        
Line 90:         if (GetValue("UseNoIndexForCategories").ToUpper() == "YES")
Line 91:         {
Line 92:             check_use_noindex_for_categories.Checked = true;


Source File: e:\web\johnthomcom\htdocs\blog\Seo\Admin.aspx.cs    Line: 90

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   seo_Admin.setForm() in e:\web\johnthomcom\htdocs\blog\Seo\Admin.aspx.cs:90
   seo_Admin.Page_Load(Object sender, EventArgs e) in e:\web\johnthomcom\htdocs\blog\Seo\Admin.aspx.cs:20
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
February 15. 2009 10:48 fabian
fabian
Hello John.

You must delete the SEOPACK.xml file. This file is placed on /datastore/extensions/ folder.
February 25. 2009 04:47 Sanghino
Sanghino
Great Job !!!

First i try your extension and after write a post about it.

I have a question for you: SEO pack work only in BE.NET 1.4.5 ?

Bye
Francesco aka "Sanghino"
Florence, Italy
February 25. 2009 08:34 Morten
Morten
SEs don't use metatags anymore.
February 25. 2009 09:09 fabian
fabian
Sanghino: I tested SEO Pack extention with 1.4.5 only. Thank you for your post ;)

Morten: I think you're wrong

March 3. 2009 01:16 Ashok
Ashok
Awesone control, thanks a lot !

SE definetly using metatags, just use Goolge Webmaster tools and run them against your website, my biggest problem with BlogEngine used to be meta tags...
April 4. 2009 00:21 Brad
Brad
I guess I missing something here. The default implementation uses the tags you select with the selector tool and the description you enter. This code uses the categories and the first 200 couple lines of content. SEO would be better going with the default implementation. Also this code does an explict cast into a regular page and break functionality that is dependent on a BlogBasePage.
April 5. 2009 00:45 byter
byter
I think this is a great control.. but I am not having success getting it to work with 1.5 .. is 1.5 supported?
the problems are with
if (GetValue("GenerateTextForDescPost").ToUpper() == "YES")
and
if (GetValue("UseNoIndexForCategories").ToUpper() == "YES")
being null, even when using try catch with default values more other errors occur..

byter
April 5. 2009 02:56 fabian
fabian
byter: Read this:

"Only for Upgrade instalations: Delete settings file 'datastore/extensions/seopack.xml'"

Laughing
April 5. 2009 04:53 byter
byter
I installed it on a fresh new 1.5 ..
so this deletion isn't valid for me..
anything else
April 5. 2009 10:52 byter
byter
I am installing it on fresh 1.5 ..
does it work for 1.5?
April 6. 2009 10:40 fabian
fabian
Byter:

Yes, I use SEO Pack VER:0.3.6 with BE 1.5.
What Version of Seo Pack Are You Using?


April 7. 2009 06:53 byter
byter
it's 0.3.6 from this post, and using the instructions..
that's weird, are there any modification should I do?
April 7. 2009 13:34 byter
byter
well. I deleted it from the db (am using dbprovider not xml),
added 2 try and catches for the above reinstalled.. and now it works..
thanks for the extension.
byter
April 9. 2009 01:21 Andrea Moro
Andrea Moro
Version 1.4.5.8, works fine, but some suggestion for you.

First rename your web page in something like seoextr.aspx and provide some useful instruction to insert into the admin toolbar.

Second, strip out the double space that sometimes are contained into the words.

Third, in presence of additional tags, that you stripped, add an extra white space, otherwise words join together forming non-sense phrase.

Fourth, leave non ascii char as written. It doesn't make sense convert it into the meta tag (or eventually provide an option checkbox for that).

Thanks for your work.
April 9. 2009 20:19 Prisbasbelopp
Prisbasbelopp
I get an error on the /syndication.axd URL.

Unable to cast object of type 'BlogEngine.Core.Web.HttpHandlers.SyndicationHandler' to type 'System.Web.UI.Page'.

There should be a check whether the handler is System.Web.IU.Page or not before casting it.
April 9. 2009 20:36 Prisbasbelopp
Prisbasbelopp
In order to fix the casting error on /Syndication.axd, add:

if(context.CurrentHandler is System.Web.UI.Page)

on line 59 in seopack.cs, just before

AddMetaRobotTagNoIndex((System.Web.UI.Page)context.CurrentHandler);

so it looks like this:
if(context.CurrentHandler is System.Web.UI.Page)
   AddMetaRobotTagNoIndex((System.Web.UI.Page)context.CurrentHandler);

And all will fine and dandy..
April 11. 2009 20:40 anigalla
anigalla
sounds great.. let me give a try..
Byter, thanks for the extension..
April 27. 2009 02:45 hhy89
hhy89
thanx man ;)

but can u do links make html ? and remove "/post"
i mean
oberdata.com.ar/.../...Pack-for-BlogengineNET.aspx

it has been
oberdata.com.ar/.../...Pack-for-BlogengineNET.html

thanx
April 28. 2009 13:52 Jeff
Jeff
I like the
Generates META tags automatically
part

Thanks for sharing I just downloaded the code and will go though it tomorrow.
May 7. 2009 17:35 dwhite
dwhite
Fabian -
Thanks for creating this extension.  One problem though, it seems that the Admin.aspx/cs in the 0.3.6 download zip file (from above) is still for version 0.3.4.  Can you please update the download?  

Thanks,
-Damien
June 6. 2009 23:06 Murat Duman
Murat Duman
Hi Fabian,
Thanks for this extension. I just want to report something. When I entered a "Home Title: " in seopack extension settings, it also changes page titles of tags, which in turn creates duplicate title in google bot crawls. Tag pages like http://muratduman.net/?tag=/murat-duman
So, I left empty Home Title box. It solved my problem. FYI.
Thanks.
June 6. 2009 23:08 Murat Duman
Murat Duman
By the way Extensions page shows the version as 0.3.6 but seopack settings page, definition label show it as Ver: 0.3.4. FYI
June 15. 2009 03:21 Ben
Ben
Hello there,

i am using BE 1.5 and i am having same problem with the above..

can you help us on it !

great work on the extension!
December 19. 2009 11:27 Magnus
Magnus
Thanks for this extension.

Add comment


(Will show your Gravatar icon)

biuquote
Loading