Author |
Topic |
|
gary b
Junior Member
USA
267 Posts |
Posted - 10 August 2007 : 08:32:15
|
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!
< |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 10 August 2007 : 08:59:06
|
Or you could just use the Site Integration MOD... < |
|
|
gary b
Junior Member
USA
267 Posts |
Posted - 10 August 2007 : 09:19:09
|
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! < |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 10 August 2007 : 09:22:14
|
That's all it really does...
But if you're happy and you got what you wanted, I won't argue. < |
|
|
|
Topic |
|