Hi
Here is the "Proof of concept" forum module that I'm working on.
The reason for putting the code here is that I need some help with the graphical part - I'm a developer, not at graphics artist :)
I would also like some feedback on the way that the module handles communication within the module.
What you can do with the module:
Create forum categories
Create forums
Post to a forum - simple textarea
There is still A LOT of work to do and:
It's NOT ready for production!
Please take a look and give me some feedback.
Thanks in advance.
Steen
I instal your forum there is something wrong in fact
when I start or when I'm in Forum Home I see two text "Label" and "hyperlink",
If I create a forum without category it doesn't appear in teh list of forum,
If i try to open a topic it gives an error "Invalid command found in pathinfo."
that's all, I'm running using my SQL I create a script for install it
Hi
I'll include the Mysql script in the next "version" which I will upload during the weekend - just want cleanup the code.
Next version will also include "reply to" functionallity.
Best
Steen
I will check for Update
Moreno
I just checked the forum source and I think you did it just right. Didn't try how it worked though, I'm merely interested in how it's built right now.
I see one little problem and that is the possible size of the ForumModule. It might be better to put the concrete NHibernate stuff in dedicated repository classes to and let the ForumModule class only be the glue that ties everything together.
In the next version of Cuyahoga there will be a little change where the module controller class (ForumModule in this case) gets a little bit more power to determine which view is presented to the user: Before loading the user control, the module is called to parse the pathinfo. This gives the module the opportunity to decide which user control should be loaded. After that, the PageEngine just requests the CurrentViewControlPath of the module, loads the UserControl and inserts the control in the right placeholder. This way there is no need anymore for a central UserControl that loads the other UserControls. Check the /Modules/User/ProfileModule.cs in SVN to see how this works.
Hi
Size is also my concern... I'll split the code.
I'll check SVN for updates :)
Thanks
Best
Steen
Hi
Here is a new version.
Still NOT ready for production!
What's new:
Code cleanup
Number of posts gets counted
Number of view gets counted
Number of replies gets counted
Most basic functionality is implemented
Module re-designed to confirm with the new method of loading usercontrols.
MySQL - Thanks to cechov
Be aware: it is based on the latest SVN code base!
The layout is still "developer" style :)
Best
Steen
Looks nice! (that is, the code ;))
Were the changes in the SVN version any useful? I saw that you implemented IActionConsumer (empty). This is only necessary when you want other modules to communicate with the forum.