free blog engine hosting

All In One Blog Engine Posts Widget With Image Support

by Jitendra Singh 10. April 2011 15:08

Recent post or Random post widgets are very common widgets in blog engine and every one place these widgets on their blogs. Unfortunately the default blog engine post widget only support post title and meta data only and recent posts. For every other setting one need to find different widgets and finally it becomes a long installation.

We have created a new blog engine All-In-One post widget which has every possible options to generate recent post, random posts, most rated posts and most commented posts with supports of display images, description, title and metadata in very compact form.

It provides easy customization and provide functionality to end users to customize it as per their own wish and no need to find other post widgets. User can show or hide every possible property and set images height and width too. Below are four awesome examples of All-In-One Post widget:

1. Recent Posts With Images and Meta data

Blog Engine Recent Posts Widget Wall

2. Random Posts With Images and Description

Blog Engine Random Posts Widget Wall

3. Most Rated Posts With Ratings

Blog Engine Most Rated Posts Widget Wall

4. Most Commented Posts With Images and Comments

Blog Engine Most Commented Posts Widget Wall

How to set different post widget using only one All-In-One post widget:

First install the All-In-One Post widget using the instruction at the bottom of the post. After installation All-In-Post widget will start appearing in widget list.

All in one post widget select blog engine wall

Add All-In-One post widget on the blog and select edit setting to change the widget type, preferences and other settings.

blog engine all in one posts widget settings wall

And you are done here just choose your wish widget and settings and all set.

How to install All-In-Posts widget to BlogEngine.Net:

1. Download the widget AllInOnePosts_Widget.zip (8.46 kb) and extract files.

2. Copy “others” folder which include PostViewSubBase.cs file into your App_Code folder.

3. Copy “AllInOnePosts” folder to widget folder as per the below screenshot.

All in one post widget installation folder list blog engine wall

Please let me know if you feel any issue while following the above steps. Meanwhile you can subscribe to BlogEngineWall, join us on Facebook or follow us on twitter to keep yourself updated with latest news.

Comments (13) -

HelloJonnyOh
HelloJonnyOh
6/7/2011 7:18:33 AM #

When I use this on my blog that has an xml data source it works fine. When I use this on my blog that has a sql data source i get errors.
This error is on line 243 of AllInOnePosts/widgets.ascx.cs -
HttpCompileException was unhandled by user code
c:\inetpub\wwwroot\blog.myretvi.com\widgets\AllInOnePosts\postdisplay.ascx(66): error CS0246: The type or namespace name 'Post' could not be found (are you missing a using directive or an assembly reference?)

THIS ERROR HAPPENS WHEN I CLICK THE ADD BUTTON to add the widget to the widget zone

Reply

blogenginewall
blogenginewall
8/2/2011 11:36:05 AM #

I replied to this answer on codeplex forum forgot to post here.

We have updated the code and uploaded it on the same post. Please download the latest version.
In your case you just need to update the file "widgets\AllInOnePosts\postdisplay.ascx".
Let me know if problem still persist.

Reply

Andrew Maxwell
Andrew Maxwell
6/14/2011 4:56:12 AM #

Hi Jitendraapi,

This looks like a great widget. Can I ask how it is sourcing the thumbnail / image? I would like to have the option of supplying my own image for some posts rather than it scraping the image from the post content.

A lot of times our blog posts include custom graphics rather than standard 3:2 aspect photos and the like so they would become quite crushed looking when thumbnailed.

Keep up the good work.

Many Thanks,

Andrew

Reply

blogenginewall
blogenginewall
8/2/2011 11:41:08 AM #

Yes, you are right. If we use the main image then it will be appeared as crushed. But the thing is when you publish the post with windows live writer it will automatically create thumbnail for those images. Hence in a script we are referring those thumbnail images.
I am not sure whether this is the correct answer for your question or not. Please revert me if you are looking for something else.

Reply

Abhishek
Abhishek
7/22/2011 4:49:13 AM #

Hello,

I am try to use this widget. Its' looking good, but there is Bug in the widget. When I try to set description lengths from edit section, It's not working. When check out the code, I found following error,

if (ps.Description != null && ps.Description.Length > 0) return ps.Description + "... <a href=\"" + link + "\">[More]</a>";

I think it should be

if (ps.Description != null && ps.Description.Length > 0)
        {
            if (ps.Description.Length < pos)
            {
                return ps.Description;
            }
            else
            {
                return ps.Description.Substring(0, pos) + "... <a href=\"" + link + "\">[More]</a>";
            }
        }


Please, correct me if I am wrong.

Thanks
Abhishek

Reply

blogenginewall
blogenginewall
8/2/2011 11:57:29 AM #

Yes, Abhishek.

You are right.

Reply

Stevphanie
Stevphanie
7/31/2011 9:42:11 AM #

Replace this line of code :

string query = Request.QueryString["theme"];
        string theme = !string.IsNullOrEmpty(query) ? query : BlogSettings.Instance.Theme;
        string path = string.Concat(Utils.RelativeWebRoot, "themes/", theme, "/", useControlNamed);
        //Control.MapPath()


with this one to make this widget work for child blog in BlogEngine 2.5

        string query = Request.QueryString["theme"];
        string theme = !string.IsNullOrEmpty(query) ? query : BlogSettings.Instance.Theme;
        string path = string.Concat("~/themes/", theme, "/", useControlNamed);

cheers...


Reply

blogenginewall
blogenginewall
8/2/2011 11:55:49 AM #

Thanks Stevphanie.

Reply

Stevphanie
Stevphanie
7/31/2011 9:44:45 AM #

ups..sorry miss place the comment..its suppose to be in frontpage image thumbnail post

Reply

blogenginewall
blogenginewall
8/2/2011 11:56:34 AM #

Yeah Smile

Reply

markm75
markm75
11/2/2011 8:19:02 PM #

I've tried your plugin with blog engine 2.5 and sql server.. it is almost working.. i did one based on number of comments with images set to 37x37.. just the titles and an icon next to each line.. for some reason the lines are overlapping..  basically the titles are overlapping.

Any ideas why this may be happening?

Also.. shouldnt it be sorting by # of comments per thread.. ascending order?  Doesnt appear to be offhand.

Thanks

Reply

blogenginewall
blogenginewall
11/2/2011 10:48:06 PM #

for overlapping you need to change the CSS as per you site. And yes as of now there is no such option for sorting in this widget.

Reply

markm75
markm75
12/22/2011 9:33:12 AM #

Is there a way to modify the code so that it would sort based on number of page views.. putting the most viewed post at the top and descending down? (Either via Google Analytics or built in BlogEngine routines, in my case 2.5 BE).

Thanks

Reply

Pingbacks and trackbacks (1)+

Add comment




biuquote
  • Comment
  • Preview
Loading


Adverts

follow us

facebooktwitter rss

Featured Stories

{#advanced_dlg.about_title} {#advanced_dlg.about_title} {#advanced_dlg.about_title}

Recent Posts

RecentComments

Comment RSS

Disclaimer

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

© Copyright 2011