MiXX Collection and PostIcon Updated for CS 2007

05 June 2007

This past weekend, someone gave me a swift kick in the butt to get my MiXX Collection updated for CS 2007.  I didn't realize it was under such high demand.  Nice.  Anyhoot during this upgrade I went ahead and refactored the source to match my other code I've been working with for other clients which lays the groundwork for me to just releasing more addons built into this collection. 

The update for CommunityServer 2007 wasn't so much as code edits (there was one line that needed updating).  But more so that you must run under Full trust.  So I've updated the documentation to detail these steps, as well as giving pointers to those in need of accessing the Post object in the site-wide's BlogPostList repeater (not an individual BlogPostList repeater, that's easy).

Subscribe to The MiXX Collection RSS feed for updates and bug fixes: http://eduncan911.com/archive/tags/The+MiXX+Collection/default.aspx

Here's the change log:

2007-06-02
 - Updated to support CommunityServer 2007. 
 - Now requires you to specify Full trust level due to CS 2k7 change.
 
2007-04-18
 - Re-factored into new MiXX.Core schema shared with other projects.
 - Updated to cast content as WeblogPost or IndexedPost, so PostIcon
   can be shown in search results for Blog posts.
 - Fixed some error logging.
 - Fixed a small bug where the ImageUrl stored in the EA had a double
  "//" in the url.  Not a big bug, so there's no need to go back and
  re-process your old posts.  Most browsers will render it properly.

2007-02-05
 - Fixed the inline <img> parsing bug when using the new ImageQuality
  attribute for saving in a higher quality (a bug that was
  introduced with backend non-released versions for testing).

 

(install only)
http://eduncan911.com/files/folders/2611/download.aspx

(source code-must compile)
http://eduncan911.com/files/folders/5894/download.aspx

Enjoy and post a comment to your siteurl that is using it!

 
Reader's Comments
 
05 June 07 5:47 PM

It's about time. I've been holding off on upgrading to CS2007 because I would lose my PostIcons! :)

Thanks,

Dan

 
Doug said:
09 June 07 4:06 AM

Eric, works great for new posts, but I think I screwed something up: when fudgeing with the previous version I already had some content in the blogs/PostIcons folder.  I wanted to regenerate fresh posticon images, so I purged the PostIcon folder.

So there are still images in the database that have some posticon content in the extended properties, but they no longer work because I deleted the posticon subfolders and images.

Ideas on how I can recreate the images without having to open and republish each blog entry one by one?

Thanks again!

Doug

 
09 June 07 4:51 AM

Heh.  You didn't have to wipe them out as I used the same format.

But yes, there's a way to do all.  Look at the documentation (/Configs/MiXX.PostIcon.txt) and you can see the options for the <MiXX:PostIcon /> server control.

There's an attribute "ParseRealtime".  Read the warning about this first.

But after you set it to True, go view your blog's homepage - the thumbnails will be re-generated all in realtime.  Then all you have to do is go paging.  I set my blog at 50 posts per page and paged through all of mine (three pages) to generate the posticons here.

Make sure to set it back to False when done.  It's hell on the AppPool.

 
Doug said:
09 June 07 10:56 AM

Count me in with a succussful implementation of the 2007 version!

http://keithtaylorfamily.com/

Thanks again for all your help.

 
Gerren said:
09 June 07 7:46 PM

I'm not sure why, but I can't find anywhere to change the trust level in the web.config file... Could someone point me in the right direction?

 
Gerren said:
09 June 07 7:52 PM

Ignore that above. I chose the wrong installation.

 
10 June 07 1:29 AM

It's under the <system.web> node.

http://msdn2.microsoft.com/en-us/library/tkscy493.aspx

You don't have to enter all of that information they have there, only what I put in the readme file.

But by default, CS 2007 is set top "medium".  Try searching for just that keywork.

 
Gerren said:
11 June 07 10:34 AM

I'm having trouble changing the height of the icon without stretching it. Any ideas?

 
11 June 07 11:06 AM

Hey Gerren:

The height/width is set in two places.  Once in the ~/Configs/MiXX.PostIcon.config.  Make sure you set this to the actual size you want stored on disk.  

And it is set (more-so "displayed" in the size you want) in the document you entered the <MiXX:PostIcon runat="server" /> control.

If you are just changing the latter, then most likely it will look funny as the default size stored in the config file is different then your server control sizes.

 
David Voss said:
20 June 07 1:16 PM

This is very awesome!

One thing that was causing me a bit of grief until I figured it out, is that the editor was stripping out the domain for the image url.  So rather than http://mydomain.com/photos/test.jpg it was now /photos/test.jpg.  The PostIcon wouldn't generate for urls w/o the domain (either img tags or posticon bbcode).  When I added the domain back to the url for the [posticon] tag, it worked.

I'd love to be able to have it automatically generate posticons from the first img tag in the post, but if it's stripping out the domain, then I'll have to use the bbcode option w/ the entire url which takes some effort to find if using an attachment.

I remember there was a way to force the editor to not strip out the domain, but I kind of like it the way it is.

If the PostIcon could work off of relative urls, that would rock!

 
20 June 07 4:55 PM

Thanks David!

It's the TinyMCE editor that is stripping it out.  And yes, I've thought about making PostIcon support these modified paths.

But actually, TinyMCE only strips out the domain if the domain matches the current website (something I've never agreed in their logic).  If you have another URL (i.e., put a WWW in front of your domain) that should work/let MCE ignore it.

Let us know!

 
David Voss said:
20 June 07 10:25 PM

Adjusting how TinyMCE deals with the url is fairly straightforward.

http://wiki.moxiecode.com/index.php/TinyMCE:FAQ

I do have a case where using the relative url is nice though.  That is when working on site redesigns where the new site is being developed under a different (temporary) path.  With the use of relative urls, this allows for content to be added to the site and later switched to it's permanent path w/o having to change the paths in the content.

 
14 February 08 4:52 PM

While we were testing your AWESOME control out, we noticed that on some pages you might need to specify that the "Post" object makes reference to <%# WeblogControlUtility.Instance().GetCurrentWeblogPost(this) %>

 
14 February 08 4:53 PM

Did I mention that this control is awesome, because it is.

Thank you.

 
14 February 08 6:46 PM

@pregamepouncy: Thank ya. Yeah, that would help a bit by grabbing from the Context.  Thanks for the tip!

 
Lynque said:
09 July 08 2:41 PM

Will the postIcon work in CS 2.1 as well?

Leave a Comment
Comment Policy: HTML is not allowed. Links and line breaks are converted automatically.
(required) 
(optional)
(required) 

 


  
Enter the anti-spam code you see above (required)

 

Comment Notifications
Subscribe to this post's comments using RSS

If you would like to receive an email when updates are made to this post, please register here