YAFLogo

ktt
  • ktt
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
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
  • mddubs
  • 100% (Exalted)
  • YAF Developer
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
and also add an entry in the english.xml file for your new page.