Website header (menu) on forum pages - Posted (2256 Views)
Junior Member
gary b
Posts: 267
267
My forum is embedded in the website. A menu item in the header opens (links to) the forum. However, once you are in the forum, there is no link back to the website. For my Users, that is a big problem. The solution would be to have my website header displayed on the forum pages. The following MODification inserts your header in the forum pages. To me, this should be an integral part of site integration.
***** Original Snitz code inc_header.asp Lines 273 to 283

"</head>" & vbNewLine & _
vbNewLine & _
"<body" & strTmpPageBGImageURL & " bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _
"<a name=""top""></a>" & vbNewLine & _
vbNewLine & _
"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td valign=""top"" width=""50%""><a href=""default.asp"" tabindex=""-1"">" & getCurrentIcon(strTitleImage & "||",strForumTitle,"") & "</a></td>" & vbNewLine & _
" <td align=""center"" valign=""top"" width=""50%"">" & vbNewLine & _
" <table border=""0"" cellPadding=""2"" cellSpacing=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _

***** End Original Snitz code
[Watch for line wrapping!]
Modification requires addition of only one line of code
Revisions are in red bold ***** Revised code Lines 273 to 284

"</head>" & vbNewLine & _
vbNewLine & _
"<body" & strTmpPageBGImageURL & " bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _
"<a name=""top""></a>" & vbNewLine & _
vbNewLine%>
<!--#include file="../asp/header.asp"-->
<%Response.Write
"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td valign=""top"" width=""50%""><a href=""default.asp"" tabindex=""-1"">" & getCurrentIcon(strTitleImage & "||",strForumTitle,"") & "</a></td>" & vbNewLine & _
" <td align=""center"" valign=""top"" width=""50%"">" & vbNewLine & _
" <table border=""0"" cellPadding=""2"" cellSpacing=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _

***** End Revised code

This MOD may not be suitable if you use a header with significant height. But try it... it works out very well for my forum! Remember to make a backup copy of inc_header.asp before you make the changes... just in case! bigsmile
<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Or you could just use the Site Integration MOD... wink<
Posted
Junior Member
gary b
Posts: 267
267
Yep... thought about that.

But all I needed/wanted was website menu on forum pages. If that is all someone else needs, it takes only one line of code. Configuring this change was a whole lot easier! bigsmile<
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
That's all it really does...
But if you're happy and you got what you wanted, I won't argue. smile<
 
You Must enter a message