Share extension for BlogEngine.NET

by Juan 28. March 2009 12:37
Share on Facebook

Share is a new extension for BlogEngine.NET. What it does is pretty simple, it adds a “Share on Facebook” link on top of every post, so you can share them on facebook as a link.

After you install this extension (instructions below), you will see the link as follows

image 

The extension uses a custom page for its configuration, where you can select the text of the link, and the link type, as explained on facebook’s help page.

image

And, as advertised, when you click the share link, you get the pop up window to post the link to your facebook profile

image

Optionally, you can add a link to the head section of the site.master of your theme, to have facebook pull that image as a thumbnail, you do that like this

<link rel="image_src" href="<your_url>" />

Where <your_url>, is the url of the image you want to display.  

To install this extension, simple unzip the following files on your BlogEngine.Web root directory

Important Note: This code is an extension for BlogEngine.net version 1.4.5.15 and up. It was tested on this version, because it has a bug fix that made extensions don't work. The bug is present in 1.4.5, I don't really know exactly in which subversion it was fixed, you can check it yourself.

The problem was in the method DataStoreExtension in App_Code\ExtensionManager\Manager.cs, the line

Stream stm = (FileStream)xs.GetSettings();

has to be

Stream stm = (FileStream)o;

That's it! You can download the files below, and you can try it on this very post, just click "Share on Facebook" there on the top

Tags: , ,

Blogging | Programming

Google Reader BlogEngine Widget

by Juan 4. July 2008 12:16
Share on Facebook

I modified my Google Reader Pick's box there on the right to be compatible with the new widget framework of BlogEngine.NET, and here's the code if you want to use it in your own blog.

All you have to do is upload the "Google Reader Picks" folder to the widget folder, and configure it for your account.

The most important property is your User Id, which you can get from your Google Reader homepage, clicking on "Shared Items", like this

image

image

Then, you can go to the configuration file clicking on the edit link

image

  • User ID is the user id you have in your Google Reader Homepage.
  • Color Scheme is the color of the list, you can experiment with it, but for the standard blogengine theme I recommend setting it to "none".
  • Items is how many items to show
  • Show item sources adds a link to the original feed
  • Add Xfn Link adds a hidden link with the rel="me" tag for Google's Social Graph API

And the result looks like this

image

You can download it from the following link, any feedback is appreciated, this is my first widget =)

Google Reader Picks.zip (2.99 kb)

Tags: , , ,

Blogging | Programming

BlogEngine.NET 1.4 Released

by Juan 2. July 2008 01:21
Share on Facebook

As you can see at the bottom of this page, I am now powered by BlogEngine.NET 1.4

If you are still using some standard blogging provider, I recommend you get you own hosting and install this blogging engine, nothing beats having absolute control over everything... yes world, you are next!

Some of the new features include (from the official site):

New database provider
BlogEngine.NET now works with most commercial and open source databases such as MySQL, SQL Server, VistaDB and many others. This allow you to use practically any database supported by your hosting provider. You can still use XML files if you don't want to use a database.

Drag 'n drop widgets
Widgets are the pieces of content most often located at the sidebar. It could be a list of recent posts, latest tweets from Twitter or anything else. You can drag and drop the widgets around in your sidebar and modify the content of them directly on the front-page. The widget works independently of the theme you are using as long as it is implemented in the theme. In BlogEngine.NET it is implemented in the Standard and Indigo themes and many more themes with widgets will be available for download very soon at the BlogEngine.NET website.

Extension settings
The new settings model for extensions have been upgraded to give you a much better experience using third-party extensions. For extension developers, it has never been easier to store your settings and let the user change them from the admin section. The same settings model is used by the widgets as well.

Web 3.0 improvements
BlogEngine.NET 1.4 makes full use of many semantic formats and technologies such as FOAF, SIOC and APML. It means that the content stored in your BlogEngine.NET installation will be fully portable and auto-discoverable. It is possible to filter the RSS feeds based on the visitor's interest defined in her APML file or do a site search with it as well. Read more the APML filtering in BlogEngine.NET.

Author profiles
By utilizing the ASP.NET profile provider it is now possible to let all authors maintain their own profile. This is used in the FOAF document and widget/extension developers can take full advantage of the profiles to provide new exciting visualizations and functionality.

Other new features
We've listened to what you - the user - wanted in BlogEngine.NET 1.4 and here is a list of some of those features that made it.

  • Tag selector when adding new posts
  • Subcategories
  • Password encryption
  • Improved live comment preview
  • Hierarchical pages in the control panel
  • Smarter comment spam protection
  • Link collection widget
  • Various performance improvements
  • and much more...

Tags: , , , ,

Blogging | Programming

A small 'improvement' to CSharpFormat

by Juan 25. June 2008 12:02
Share on Facebook

I don't know why Jean-Claude Manoli's code formatter wasn't working correctly for aspx code even though the code was prepared for it for what I saw; so I modified it a little (the problem may have been me though)

I really HATE regular expressions, so this code I added is most probably far from correct, but I got it working after trial and errors, and debugging. Feel free to improve it, but I'm not interested in lessons on RegEx because I don't really want to have anything to do with them =)

The output from the original code was this:

Orignal code output

And with my little modification, it changes to this:

image

Here is the class I modified

and the entire project with that class in it

All credit goes to Jean-Claude Manoli

The next step is coloring class names like VS.NET 2008, but that is a little more complicated I think... 

Tags: , , , , ,

Blogging | Programming

XFN

by Juan 16. May 2008 12:41
Share on Facebook

I've been reading a lot about xfn and the semantic web, and I really like it... I love the idea of creating a web of connections between everyone I know, of centralising relationships, and all that.

So I've created an endpoint in my blog, in order to exchange links with bloggers and extend this network of relationships, check it out, let me know what you think, and contact me if you are interested in being added to the list.

Oh, and start using xfn in your blogs.

Tags:

Blogging | General

Coding Horror

by Juan 7. March 2008 23:30
Share on Facebook

I recently became aware of a blog called coding horror, by Jeff Atwood (yes, the name is in honor of Steve McConnell's Code Complete), and wanted to recommend it to all my readers =)

You can always read the posts I find more interesting by checking out my Google Reader Picks box right there on the sidebar, but I wanted to recommend the blog in general, and one article in particular that I think is essential everyone reads, called "Remember, this stuff is supposed to be fun". It really inspired me to read it…

Go check it out, but don't forget to come back here!

Tags: ,

Blogging

Powered by BlogEngine.NET 1.4.5.15
Theme by Mads Kristensen Modified by Juan Manuel Formoso

About the Author

Juan Manuel
Networking
View my LinkedIn profile View my Facebook profile View my Twitter feed View my StackOverflow CV

Juan Manuel Formoso
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something more bizarrely inexplicable.

There is another theory which states that this has already happened.

E-mail me Send mail

Hosting is not Free

Google Reader Picks

Most comments

Cristian Cristian
1 comments
co Colombia

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Recent comments

Comment RSS

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in  anyway.

© Copyright 2008