I want to use nGallery as part of the site.
I understand that this is not easy to create it as a module [sadly (brb) ]
However, what I want is to use just one part (the side bar) inside nGallery, is this possible? nGallery would run as another Asp.Net application, so I guess that is not likely.
How would I go about integrating it into Cuyahoga?
[Another thing to note: the MySql support is for version 4.1 and above, since those are the versions that support sub-quries]
Ayende RahienI want to use nGallery as part of the site.
I understand that this is not easy to create it as a module [sadly (brb) ]
Last weekend I looked at the CS (CommunityServer) sources and no, it won't be easy to integrate the components in Cuyahoga. Mainly because they use separate aspx pages.
How would I go about integrating it into Cuyahoga?
They do use ServerControls do display almost everything. Maybe you can write a Cuyahoga module that loads the appropriate CS ServerControls based on a querystring or pathinfo, but you also need something then to intercept the urls or something.
They say it will be possible to integrate it with DotNetNuke, so we can wait and see how it is done.
[Another thing to note: the MySql support is for version 4.1 and above, since those are the versions that support sub-quries]
That true. I thought I mentioned it somewhere here on the site. But: there is only one place where subqueries are needed: GetAvailableCategories() in ArticleModule.cs. I think it shouldn't be too hard to rewrite that to not use subqueries. The reason they are used now is mainly because I felt like doing some fancy HQL just to see if it worked (and that was before MySQL was supported) :).
I really hate to re-invent the wheel again. But it seems that it would be easier to do it myself than integrate another application.
I propbably post something by the end of the week (hoepfull (a) )
BTW, the changed require is to replace the HQL in ArticleModule.cs, Line 67 to "select distinct c from Category c, Article a where a.Id = c.Id and a.Section.Node.Site.Id =:siteId"
BUT, then you get an error saving the article.
Exception: MySql.Data.MySqlClient.MySqlException
Message: Column 'DateOnline' cannot be null
(I had to change the SQL Scripts to creat the DB so they would work on 4.0, so that may be it.)
Ayende RahienI really hate to re-invent the wheel again. But it seems that it would be easier to do it myself than integrate another application.
I propbably post something by the end of the week (hoepfull (a) )
Yes I feel the same way about re-inventing the wheel. The positive thing here is that you'll probably end up with something that supports multiple databases :).
(I had to change the SQL Scripts to creat the DB so they would work on 4.0, so that may be it.)
I'm not a MySQL expert at all. Can you give an indication if supporting MySQL 4.0 would break 4.1 support? If not, it would be wise to rewrite some things to obtain 4.0 support, especially because many hosting providers don't use 4.1 yet.