jpweber
  •  jpweber
  • 94.4% (Exalted)
  • YAF Commander Topic Starter
2012-03-24T18:45:25Z
I want to add a link to our home page on the top navigational bar, such as below:

USS HOME PAGE FORUM ACTIVE TOPICS SEARCH HELP LOG IN REGISTER

I tried modifying the controls/YafHeader.ascx, but no luck. In what file(s) can I modify this in to include a link to my home page?

Thanks!
Jason Weber
USS Vision YAF 
"Money is better than poverty, if only for financial reasons"
Sponsor
tha_watcha
2012-03-24T20:41:30Z
You need to edit the YafHeader.ascx

<ul class="menuList">
                <asp:PlaceHolder ID="menuListItems" runat="server">
                </asp:PlaceHolder>
            <li> <a href="http://www.ussvision.com/">USS HOME PAGE</a></li>
            </ul>

UserPostedImage
jpweber
  •  jpweber
  • 94.4% (Exalted)
  • YAF Commander Topic Starter
2012-03-24T21:08:26Z
Hey Tha_watcha -- I feel like a complete idiot now. lol .... this is bad. I have YAF in a separate folder, and then I copied the entire folder into my website. I was editing the file in the proper place, but I was uploading the wrong YafHeader.ascx from the wrong folder.... lol .... boneheaded mistake that I spent an hour on until posting here.

But your post just ensured I was doing the right thing, so it made me look at it a little more .. otherwise, I would have left it alone. So thanks a bunch for responding!

For anyone else interested in doing something like I did, for instance, on your top navbar:
USS VISION HOME PAGE FORUM ACTIVE TOPICS SEARCH HELP LOG IN REGISTER

Just go to your controls/YafHeader.ascx page, and find these lines:

Quote:

<li class="menuGeneral"><a target='_top' href="<%=YafBuildLink.GetLink(ForumPages.forum) %>">
Forum</a> </li>
<%if (this.PageContext.IsGuest)
{%>
<li class="menuGeneral"><a target='_top' href="<%=YafBuildLink.GetLink(ForumPages.mytopics) %>">
<%=this.PageContext.Localization.GetText("TOOLBAR", "ACTIVETOPICS")%></a> </li>
<%
}%>



Just above that, I inserted this:

Quote:

<li class="menuGeneral"><a target='_top' href="http://www.ussvision.com">
USS Vision Home Page</a> </li>



Thanks again Tha Watcha!
Jason Weber
USS Vision YAF 
"Money is better than poverty, if only for financial reasons"

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