Welcome Guest! To enable all features please
Login or Register.
I have added a master page to my yaf project and I have got the default working with that. I now have yaf running inside a table (2 col - 1 for forum, 1 for ads) and I now want to break the yafheader (which displays the 'logged in as:' and the 'login'/'logout' links about my 2 column table.
I have been looking but I'm not 100% sure how to break the yafheader out. Has anyone done anything like this before or is there another way?
There's no easy way to do that. You could modify the source to hide the menu bar, then create your own. Search the forums on how to hide the menu bar, it's just a single bool value set from true to false. The next release will contain a config key to hide/show the menu bar easily.
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 🙂 )
Create a control that is derived from the yaf.Header. Then assign it in forum specification:
<YAF:Forum id="Forum1" Header="MyYafHeader" />
Works with the footer too. YAF will use the header control supplied.
EDIT: This is for YAF v1.9.1.x
do you mean the user control needs to be derived from YAF.Controls.Header?
This is what I have done:
public partial class myheader : YAF.Controls.Header
protected void Page_Load(object sender, EventArgs e)
but it won't compile and when I use yaf.header it won't compile either as yef.header isn't an option in the drop down.
Can you show me what I need to do to break the header out?
Which version of YAF are you using?
Jaben is it possible in the RC2 version of YAF?
As a rule I do not assist with customizations or programmers lack of knowledge. But if you provide exactly WHY it's not compiling maybe someone would assist.
This is mostly your leg work -- don't expect us to do much.
- 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.