•  ktt
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter

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.


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.
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
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
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
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
Ah, you just need to put the ASCX in the "pages" folder and add its name to the ForumPages ENUM.
  •  EP
  • 63.8% (Friendly)
  • YAF Camper
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