Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Website header (menu) on forum pages
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gary b
Junior Member

USA
267 Posts

Posted - 10 August 2007 :  08:32:15  Show Profile  Visit gary b's Homepage  Reply with Quote
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  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Or you could just use the Site Integration MOD... <
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 10 August 2007 :  09:19:09  Show Profile  Visit gary b's Homepage  Reply with Quote
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! <
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 10 August 2007 :  09:22:14  Show Profile  Visit AnonJr's Homepage  Reply with Quote
That's all it really does...

But if you're happy and you got what you wanted, I won't argue. <
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07