Welcome Guest Search | Active Topics | Log In | Register

Using YAF Controls on non-forum pages? Options · View
pboudreau
#1 Posted : Friday, August 15, 2008 4:32:28 PM

Rank: YAF Forumling


Joined: 8/15/2008
Posts: 5
I have 1.9.3 installed in a seperate folder (<root>/Forums) - aspnet 3.5 + iis7 (classic app pool). Specifically, I'd like to put the Active Discussiona and Forum Stats on the master page, or on the <root>/Default.aspx page. Is that possible? I've tried dragging the related controls onto the <root>/Default.aspx page, but I get a variety of errors. Without using the primary YAF:Forum control it appears that some "foundation" code is missing from the individual YAF controls. Is there away around this?

Thanks!
test2005
#2 Posted : Saturday, August 16, 2008 12:39:34 AM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 923
Location: Italy
Each of the YAF controls has it's own namesspace. If you "import" (sorry, VB programmer!) the proper namespace, it should work fine.
.....the man in black fled across the desert..........and the gunslinger followed.....

pboudreau
#3 Posted : Saturday, August 16, 2008 1:47:48 AM

Rank: YAF Forumling


Joined: 8/15/2008
Posts: 5
Thanks for the help!

I tried "using" (sorry, c# programmer Cheesy Grin ) all the YAF namespaces I could find. I seem to keep getting the "Object reference not set to an instance of an object." error on the PageContext object. I'm getting it in the LocalizedLabel class.

Thanks again!
test2005
#4 Posted : Saturday, August 16, 2008 2:38:24 PM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 923
Location: Italy
Do you have everything inside the same app directory?
.....the man in black fled across the desert..........and the gunslinger followed.....

pboudreau
#5 Posted : Monday, August 18, 2008 10:28:46 PM

Rank: YAF Forumling


Joined: 8/15/2008
Posts: 5
I believe so.

<root folder>
-/App_Code - Some YAF Classes here - as described in setup docs
-/Bin - Some YAF dlls here - as described in setup docs
-/Forums - YAF Content. The forums work correctly, so I believe the install is correct (installed in subfolder of site...).
-/cfg files - as described in the setup docs
-/Default.aspx - trying to use controls here

Any more ideas?

Thanks!

pboudreau
#6 Posted : Thursday, August 28, 2008 10:25:55 PM

Rank: YAF Forumling


Joined: 8/15/2008
Posts: 5
HELP! Smile

Any more ideas I can try/look at?

Thanks!
test2005
#7 Posted : Saturday, August 30, 2008 12:52:22 AM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 923
Location: Italy
Does the site compile? If so, make sure you copy the YAF.DLL into the test site.

If not, look at the stack trace. It should pint you to where the error is. It may be something as simple as a typo!
.....the man in black fled across the desert..........and the gunslinger followed.....

Jaben
#8 Posted : Sunday, August 31, 2008 9:03:39 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,961
Location: Honolulu, HI
Yeah... what you are trying currently won't work -- I will need to come up with a method around this problem... no sure how just yet. Give it till RC1.
"When you are grateful, fear disappears and abundance appears”."

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.102 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET