YAFLogo

tylerw-savatronix
2013-10-25T08:32:22Z
Is it possible to change the location that the forum logo banner link points to?

https://forums.savatronix.com  ). I'd like that link (and only that link) to point to my main website; www.savatronix.com

I ran a search on the entire solution for the ID of the hyperlink and came up empty handed so I'm assuming that code is buried in a dll >.< (here's hoping I'm wrong though).

Thanks!

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.0
2013-10-25T09:35:10Z
Originally Posted by: tylerw-savatronix 

Is it possible to change the location that the forum logo banner link points to?

https://forums.savatronix.com  ). I'd like that link (and only that link) to point to my main website; www.savatronix.com

I ran a search on the entire solution for the ID of the hyperlink and came up empty handed so I'm assuming that code is buried in a dll >.< (here's hoping I'm wrong though).

Thanks!

Yes the link is hard coded under YAF\Modules\PageLogoHandlerForumModule.cs. But there is a solution just open the default.aspx file and change the line...


<asp:HyperLink runat="server" id="BannerLink">
            <img src="~/YafLogo.png" runat="server" alt="logo" style="border: 0;" id="imgBanner" />
        </asp:HyperLink>

to


<asp:HyperLink runat="server" id="BannerLink" Visible="false">
        </asp:HyperLink>
       <asp:HyperLink runat="server" id="BannerLink2" NavigateUrl="https://savatronix.com">
            <img src="~/YafLogo.png" runat="server" alt="logo" style="border: 0;" id="imgBanner" />
        </asp:HyperLink>


UserPostedImage
tylerw-savatronix
2013-10-25T15:46:37Z
doh! why didn't I think of that >.<

I'm a horrible developer lol.

Thanks much!