Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

Page: 1 2
# easfaw 7/22/2005 8:54 AM
When porting a module from IBuySpy to Cuyahoga - is it necessary to
use NHibernate - or is it possible to directly use the SqlData... classes
if we know that the module will only use SqlServer?
(I have no idea what NHibernate does - I'm assuming it is some sort of DAL)

Thanks Martin,

Elias
# martijnb 7/22/2005 9:31 AM
Hi Elias

Every module in Cuyahoga can use its own data access solution. A perfect example is this forum. It uses DataReaders and SP's.

But, when developing new modules, i highly recommend NHibernate. Once you get a little bit familiar with it, it's so much more fun developing and saves you a lot of cumbersome work.
# sthomas 8/4/2005 10:07 AM
Hello Martin,

can u tell me how to modify yaf for this wunderfull cuyahoga?

thank you
Thomas
# martijnb 8/4/2005 1:20 PM (edited 8/4/2005 1:24 PM)
Hi Thomas

Yaf requires some very little changes (version 0.9.9). I attached the changed files. Config.cs and Data.cs belong in the /classes folder and ForumPage.cs in the /pages folder.

Besides that, there is a Cuyahoga.Modules.YetAnotherForum module in the SVN repository: http://tijnthuus.demon.nl/svn/repos/cuyahoga/trunk/Yaf/. You can obtain that with a subversion client like tortoisesvn.

- You have to build both, the changed yaf sources and the Cuyahoga module. - After building, create a Yaf folder in /Web/Modules/ and move the all the yaf files to that folder that are required to run it (aspx, ascx, images etc.).
- Also copy CuyahogaYaf.ascx to to that folder.
- Copy yaf.dll and Cuyahoga.Modules.YetAnotherForum to the /bin folder of Cuyahoga.
- Merge the web.config that comes with yaf with the Cuyahoga web.config.
- Add an entry for the forum in the cuyahoga_moduletype table.
- Add two settings to the cuyahoga_modulesetting table: BOARDID (System.Int32, required) and CATEGORYID (System.Int32, not required).

After this, you can add a new section with a forum.


Disclaimer: Yaf is GPL software, so I don't know if it's completely legal to post the modified sources here on the forum. If not, please some one let me know and I'll remove them.
# sthomas 8/5/2005 10:04 AM
Hello Martin,

thank you for the information (and for the files). it works!

any ideas why i have a javascript error when i will click the calendar control in editarticle? (both ie6 and firefox)

Thomas
# martijnb 8/5/2005 3:18 PM
sthomasthank you for the information (and for the files). it works!

That's great. Are we going to see the result somewhere? :)
any ideas why i have a javascript error when i will click the calendar control in editarticle? (both ie6 and firefox)

Hmmm that's strange. Maybe the path to the calendar .js files is invalid?
# sthomas 8/6/2005 4:36 AM
Hi Martin,

my javascript error is now located. when i use the language file calendar-en.js in place of calendar-de.js it works fine.

i change also a line in the file RemoteContentModule.cs:

StreamReader sr = new StreamReader(receiveStream, Encoding.UTF8);

to

StreamReader sr = new StreamReader(receiveStream, Encoding.Default);

for German "Umlaute" (ä, ö,ß etc.)

i like the Cuyahoga Framework, a great concept, congratulations! :-)

for a limited time here is my test-installation:
http://test.photosource.de

Thomas
# martijnb 8/6/2005 5:06 AM
sthomasmy javascript error is now located. when i use the language file calendar-en.js in place of calendar-de.js it works fine.

I'll create a JIRA issue for this that will remind me to give it a look.
i change also a line in the file RemoteContentModule.cs:

StreamReader sr = new StreamReader(receiveStream, Encoding.UTF8);

to

StreamReader sr = new StreamReader(receiveStream, Encoding.Default);

for German "Umlaute" (ä, ö,ß etc.)

I've never really thought about that, but now you put it here, it makes more sense to use the encoding of the RSS source. Another JIRA issue :).
i like the Cuyahoga Framework, a great concept, congratulations! :-)
for a limited time here is my test-installation:
http://test.photosource.de

Nice!

# rbfigueira 1/9/2006 2:22 AM
Hi Martin,

>>I attached the changed files. Config.cs and Data.cs belong in the /classes folder and ForumPage.cs in the /pages folder.

The link is broken. I can’t download the file.
Can you put other new link your send to me that file ?

I will appreciate.

Thanks :P

# rbfigueira 1/10/2006 1:23 AM (edited 1/11/2006 1:33 AM)
Can anyone send me the files (Config.cs and Data.cs belong in the /classes folder and ForumPage.cs in the /pages folder.) ?

I want to integrate the forum in cuyahoga framework !!

Thanks ! ;-)

# martijnb 1/10/2006 3:00 PM
Guys, the attachments work again. Last week I moved the site to a different physical directory and forgot to set the right permissions to the forum attachments directory. Sorry for the inconvenience.
# pmgahan 10/4/2006 5:46 PM
Hello Martin,

I've followed your instructions and could not get YAF to work with the latest Cuyahoga svn.

The first error I have is due to the CuyahogaYafModule.cs file, I can't geti to compile under VS2005 so I have to modify this:
public CuyahogaYafModule(Section section) : base(section)
into this:
public CuyahogaYafModule() : base()


Then I could build the module.

Now I'm having the following error after installation and when trying to acces a page with a forum section:

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
yaf.pages.ForumPage.ForumPage_Load(Object sender, EventArgs e) +2558
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Thanks for your help!
Patrick
# martijnb 10/5/2006 3:18 AM
At least the forum is trying to load which means that the Cuyahoga module works.
Could you try to access the forum directly and see if that works? If you just copied all Yaf files to the module directory, you should be able to run the forum via http://your-host/Modules/Yaf/default.aspx.
# pmgahan 10/5/2006 5:49 AM
I get the same error:

[NullReferenceException: Object reference not set to an instance of an object.]
yaf.pages.ForumPage.ForumPage_Load(Object sender, EventArgs e) +2558
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

when accesing directly by the yaf page: http://www.itiar.com/Modules/Yaf/default.aspx

The YAF module created the tables, but it mentioned that I may have to login as administrator before using the forum, could this be the problem? If so, how can I log in as administrator to yaf?

Thanks,
Patrick.
# pmgahan 10/5/2006 5:51 AM
Why is it that I had to modify this to compile?

public CuyahogaYafModule(Section section) : base(section)
into this:
public CuyahogaYafModule() : base()

Thanks,
Patrick.
# martijnb 10/5/2006 3:01 PM
pmgahanI get the same error:
when accesing directly by the yaf page: http://www.itiar.com/Modules/Yaf/default.aspx

So something is wrong in the forum. Are you in a position to debug it? Do you have the correct yaf section in the web.config?
The YAF module created the tables, but it mentioned that I may have to login as administrator before using the forum, could this be the problem? If so, how can I log in as administrator to yaf?

You must log in on Cuyahoga with an account that has the same username as the admin that was created after installing the forum. Yaf knows that it is running under Cuyahoga, so it doesn't display login or registration links, but directly logs you in with the Cuyahoga identity (and creates an account in the forum if there is no matching account).
# martijnb 10/5/2006 3:04 PM
pmgahanWhy is it that I had to modify this to compile?

public CuyahogaYafModule(Section section) : base(section)
into this:
public CuyahogaYafModule() : base()

That's because Cuyahoga 2.0 has a different way of loading modules. This removes the need to supply a section in the constructor (and to be honest, it was quite ugly).
# pmgahan 10/6/2006 1:36 AM
Ok, thanks Martin, I will try to debug.

Patrick.
# pmgahan 10/6/2006 9:20 AM
I've found that on line 203 of Forumpage.cs

m_pageinfo = DB.pageload(
HttpContext.Current.Session.SessionID,
PageBoardID,
User.Name,
HttpContext.Current.Request.UserHostAddress,
HttpContext.Current.Request.FilePath,
browser,
platform,
categoryID,
forumID,
topicID,
messageID);


HttpContext.Current.Session.SessionID is null.

This is what is causing the problem.

Do you know how to solve this?

Thanks,
Patrick.
# pmgahan 10/6/2006 9:51 AM
I think that the problem could come from the we.config file, root element for yafnet

What do you use here?

I use /Modules/Yaf/



Thanks,
Patrick.
Page: 1 2