ktt
  •  ktt
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
2009-05-18T03:35:57Z
Hi,

Can someone guide me in the right direction here?

I want to add a page with a custom user control on it.
The page should contain a header and foot just like most other YAF pages.

Additionaly i want a link to this page in the toolbar, next to "Inbox" and "Search".

Can someone give me a link to an example or tell me where i need to make some modifications.

I am using 1.9.3.

Thanks

/Ktt
Sponsor
mddubs
2009-05-18T04:18:46Z
It's probably easier if you make your own toolbar and then just duplicate the links that you see for YAF when you hover over "Inbox", "Search" etc. You can then ShowToolBar=false in the web.config and the YAF toolbar will disappear.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
ktt
  •  ktt
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
2009-05-18T04:23:46Z
Ok, then when i create a link to ex: http://yaf/default.aspx?g=myCustomPage

How do it get it to render my custom ascx file instead of the default one that shows the root of the forum?

I still want the header and the "Active discussions" / "Information" to be there, i just want to replace the "Forum" part with something else.
ktt
  •  ktt
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
2009-05-18T04:58:20Z
Ah, you just need to put the ASCX in the "pages" folder and add its name to the ForumPages ENUM.
EP
  •  EP
  • 63.8% (Friendly)
  • YAF Camper
2009-05-23T14:07:43Z
and also add an entry in the english.xml file for your new page.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved