16 December 2006
PostIcon Updated

You can download The MiXX Collection that includes the updated PostIcon AddOn from these urls:

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

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

Change Log:
2006-12-16 (v0.9.3.25764)
 - Changed from throwing exceptions to just logging exceptions, to
   allow the rest of the page/site to load without redirecting to an
   error.  To debug, look in your CSExceptions for UnknownError and
   FileNotFound errors logged. 
 - Added in parsing of the regex groups in the config file. This
   allows for custom regex patterns to be used, and you can
   explicitly set what group this module will parse the needed values
   for.
 - Fixed a small issue to where the PostIconModule was using the last
   used AnchorPosition specified in a post as the default for the
   time the AppPool was running.

Updated previous version, and deleted old files.

Reader's Comments

You can download The MiXX Collection here that includes the updated PostIcon AddOn. Change Log: 2006-12-16

# 16 December 06 9:59 PM
Russ Goldin said:

Wow!  This looks awesome.  A real enhancement to the workflow and UI.  I can't wait to test it out.

# 18 December 06 12:41 PM

Eric, I was trying this out and it is working nicely (once I got around my own stupidity). In the ReadMe file where it lists out the logic it mentions:

3 use the Author's avatar with the UseAuthorsAvatar boolean set to true

Where do we set this? It doesn't appear to be on the control. Is this set in the config file?

# 21 December 06 11:25 AM

Hey Dan!

I haven't quite built that portion out yet, as I was waiting for others to ask about it first.  But just for you, I'll add it in for the next release.  :)

It seems everyone hasn't had any issues.  So the next release should include the source.

Thanks to all again!

# 21 December 06 7:20 PM
techSage said:

I was really looking forward to trying this out, but then I got the dreaded SiteUrls.config error followed by the friendly CS "Oops" error after I installed this.

I kept undoing changes to the skin file, touching web.config and refreshing and it wasn't fixed until I commented out the add module line in communityserver.config.

Any suggestions?

Running CS 2.1 SP2 (Build: 61129.2) on ASP.NET 2.0

# 22 January 07 4:01 PM

Check your Exceptions log for anything with MiXX in the namespace, and note the date/time.  This was a new attempt at error capturing and CS, to log within the exceptions table instead of halting the application.

There's two main issues that have popped up.  Make sure you have write access to your web directory, and that the /configs/ folder exists, and the config file with in.

I'm coming up with a slight variance of what's in the config.  Working just like the seperate file does not, but give the option to put the settings inline of the CSModule line of cs.config.

Let me know!

# 22 January 07 8:31 PM
techSage said:

Eric, sorry for the trouble - I copied the contents of \Web\Configs\ into \Web instead of copying the directory into \Web.  After I created the Configs directory and put the .config file in, it works fine.  Nice job.

I like the idea of putting the config inline with the CSModule line of cs.config though - it seems to be the norm and easier to manage all of these customizations.

# 22 January 07 11:33 PM

Yep, others have expressed that same "liking" of putting it inline of hte CSModule line.  The next update will allow either.

But personally, once you start installing dozens of AddOns, upgrades start to become a real bitch due to having to constantly change your cs.config file.

THis way, just add one line when you upgrade.  Done.

# 23 January 07 11:28 AM

Is there anything special that we should know when using this with CS2007? In my install, the thumbnail images are being created properly, but I cannot get them to pull correctly on the page.

Amazing module, Eric. Well done!

# 17 April 07 5:38 PM

Hey Joshua:

I've been meaning to test it out with CS 2k7, but haven't gotten around to it yet.  Within the next week or two, I will.

If the PostIcon is being created on disk, then that tells me the Config and CSModules are working.  It's just a matter of accessing the extended attributes of the Post object, which might have changed with CS 3.0.

Try this: Get a PostID of one of your posts (if you edit a post in the control panel, look at the URL - it will tell you the PostID of the post).

Once you have the PostID, run this in your database:

SELECT PostID, PropertyNames, PropertyValues FROM cs_Posts WHERE PostID = 11

And replace "11" with whatever PostID you have.  Copy and paste the results and email me at eric -at- eduncan911.com so I can see if things are being set right.

Well, it's either that or wait a few weeks until I get the bandwidth to install CS 2k7 and do some testing.

# 17 April 07 6:07 PM
Doug said:

Hey Eric, I'm trying to get this running (CS2007) and running into a snag... the control renders on the page, but the image isn't there, just the IE red X icon as if it can't find the image.

Looking at your previous instructions I looked at the post entry in dbo.cs_Posts and here it is:

PropertyNames

-------------

enableAllOwnerNotification:S:0:4:

EnableRatings:S:4:4:

EnableTrackBacks:S:8:4:

enableCrossPosting:S:12:5:

CommentModerationType:S:17:9:

feedbackNotificationType:S:26:1:

PostIconUrl:S:27:29:

EverPublished:S:56:4:

PropertyValues

--------------

True

True

True

False

Anonymous

2

~/blogs/PostIcons/doug//0.jpg

True

So it looks like the entry in question is:

PostIconUrl = ~/blogs/PostIcons/doug//0.jpg

Checking the server, the following WAS created:

/website/blogs/PostIcons/doug/0.jpg

And checking the file 0.jpg it is in fact a small version of the <IMG> I put in my test post.

In the PostIconUrl property why the double slash? (//)

My username is "doug" and the blog folder/name is "doug_clyde" - is your module supposed to be creating subfolders based off of name or blog name?

Thanks in advance for any pointers you have!

# 26 April 07 1:46 AM

Hey Doug:

I'm sorry but Joshua and I have been emailing offline for a resolution (this is why I like public posts, so everyone can see the resolution). Basically

we've traced it to the PostIcon Image writer Control for the page. It has a bug where CS 2k7 changed the PostAttachment logic (yet again!), and broke backwards compatibility (yet again!).  I haven't updated my version yet.

Joshua above was able to get it working "for now" by using the PostID and generating the url directly with something like (this is my untested thought/code to use as a "hack" for now, until I release another update):

 <img src="~/blogs/PostIcons/doug/<%# DataBinder.Eval(Container.DataItem, "PostID") %>.jpg" runat="server" />

Not sure if that will parse (remove the runat, and the tilda "~" if it doesn't work).  But basically, the image is named from the PostID.  

And to answer your questions: The double-slash comes from a config setting (it doens't hurt anything, as browses ignore double slashes). And the path "~/blogs/PostIcons/doug/" is generated from the Username that posted the image (so to trace who posted what image where - in case there are multiple authors for a single blog) - it does not derrive from the Blog's AppKey.

I'll get an updated version soon (about 3 days behind on figuring this out, busy @ work at the moment).

# 26 April 07 5:53 AM
Doug said:

Pssh... busy at work!?  What's your problem?

By the way, something else I just noticed for your consideration: the image created was "0.jpg" - which is NOT the post ID for the related post (PostID is in the 2000 range).

Seriously I appreciate all your help.  It's nice for us lower on the programming ladder to have someone who's willing to help us climb!

# 26 April 07 10:33 AM

Hey Doug:

Humm, so 0.jpg eh?  That's not what Josh and others reported.  Something else is a-miss here.

Looks like I'm going to have a lot of fun with CS 2k7 soon.

ETA, EOW next week - if you can wait?  :)

# 26 April 07 1:05 PM
Doug said:

No problem at all - I'm in no hurry and am happy to test out whatever you want whenever.  Don't rush on my account!

# 26 April 07 4:45 PM
fractalnavel said:

thought i'd add another observation:

the PostID seems to always be 0 when using Windows Live Writer to publish a new post.  the icons end up as "0.jpg", and is referenced as such in the extended attributes.  however, reloading the post from the blog and re-publishing will fix the problem.

the strange part of this effect is if WLW is used to publish several new posts, without reloading etc., they will all share the latest 0.jpg created.

nice feature ;-)

(using CS2.1)

# 04 May 07 11:05 AM

They are always "features", not bugs.  :)

I promise guys!  Soon I'll update it!

Just... need... time... to... install... CS2k7... and to work in it (got a demanding client at the moment).

# 04 May 07 5:52 PM
Julio Casal said:

Hi Eric. I´d also love to use the PostIcon control on my CS 2007 website, so please let me know when you have the new version available.

Thanks!

# 06 May 07 5:39 PM

Eric and all,

First Eric, sorry I haven't been in touch lately. We ended up reverting back to CS2.1 for the last install we were doing. That said, we have a new project and we are determined to get PostIcon working with 2007 this time. I will certainly respond back to this post if/how we get it up and running. Thanks again Eric for a cool add on to CS.

Hopefully will be back in touch soon with cool news!

Thanks!

# 17 May 07 10:21 PM
# 05 June 07 12:34 PM
Doug said:

You rock, thanks!

# 08 June 07 9:48 PM
Seth said:

Wow!looks awesome!!!

Is there anything special that we should know when using this with CS2007?

# 20 November 07 3:26 AM

Hey Seth:

It works for CS2007.  But in CS2007.1, this does require a configuration change.

CS 2007.1 changed a fundimental node in CommunityServer.config from "Modules" to "CSModules".

I need to update the readme for yet another change to CS 2007.1.

Now, there are two different sets of instructions.  

- CS 2007, use <Modules>.  

- CS 2007.1, use <CSModules>.

# 20 November 07 9:59 AM
Seth said:

Wow..I really appreciate this...

Thank you so much for the tips...I hope it work on.

All the best!!!

# 20 November 07 9:02 PM
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