Author |
Topic |
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 30 October 2003 : 17:21:36
|
I've been playing around with the Site Integration mod...very cool BTW
The only problem I have is that it doesn't do exactly what I need it to do. The readme file specifically states: 'Please note that due to the way that the MOD is implemented, any table structures that are used in the 'area' files must be complete'
Based on the way my web site design is setup (see it here http://www.mathtv.com/blank.htm), I want to use a header and footer that splits in the middle of a table. Is there any way to do this? or should I just try to find a creative way to get it as close as possible? |
Edited by - slopo on 30 October 2003 17:30:04 |
|
D3mon
Senior Member
United Kingdom
1685 Posts |
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 30 October 2003 : 18:09:20
|
Exactly!
With the "body" being the forums. |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 30 October 2003 : 18:25:35
|
Where the MOD code was addded to inc_header.asp add the lines in red:
if strSiteIntegEnabled = "1" then
response.write "<table width=""100%"" border="""
if strSiteBorder = "1" then
response.write "1"
else
response.write "0"
end if
response.write """ cellspacing=""0"" cellpadding=""0"">" & vbNewLine
if strSiteHeader = "1" then
response.write " <tr>" & vbNewLine & _
" <td"
if strSiteLeft = "1" or strSiteRight = "1" then
if strSiteLeft = "1" and strSiteRight = "1" then
Response.write " colspan=""3"""
else
Response.write " colspan=""2"""
end if
end if
response.write ">"
%><!--#include file="inc_site_header.asp"--><%
response.write "</td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
response.write "</table>" & vbNewLine & _
"<br />" & vbNewLine & _
"<table width=""100%"" border="""
if strSiteBorder = "1" then
response.write "1"
else
response.write "0"
end if
response.write """ cellspacing=""0"" cellpadding=""0"">"
response.write " <tr>" & vbNewLine & _
" <td valign=""top"">" & vbNewLine
if strSiteLeft = "1" then
%><!--#include file="inc_site_left.asp"--><%
response.write "</td>" & vbNewLine & _
" <td valign=""top"">" & vbNewLine
end if
end if
See if that works for the Header... |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 30 October 2003 : 19:02:59
|
Ohh...it's so close! Check it out: http://www.mathtv.com/forums/default.asp
I can't get the white table cell backgroud to show up. I have the bgcolor set in the inc_site_header.asp file. I'll try messing around with it some more. Any suggestions?
Also, I have the body tag in the inc_site_header.asp file to set the background image. Is this ok or not? I know it says in your readme file not to use html, head, and body tags in the header. |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 31 October 2003 : 06:26:33
|
Yes, you can't use HTML,HEAD and BODY tags becasue they already exist in the document (defined in inc_header.asp) so any subsequent repetitions will be ignored or cause errors. It would help the debugging if you add these lines to your inc_site_header.asp file:
Put this line at the very top: <!-- Header starts -->
and this line at the very bottom: <!-- Header ends -->
This will show you which code was inserted by the inc_site_header.asp file when you view the HTML source. |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
Edited by - D3mon on 31 October 2003 06:34:09 |
|
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 31 October 2003 : 12:26:02
|
quote: Put this line at the very top: <!-- Header starts -->
and this line at the very bottom: <!-- Header ends -->
This will show you which code was inserted by the inc_site_header.asp file when you view the HTML source.
Good idea. I just added the comments to the header and footer files. How can I specify a background image on the page? Can it be set in the inc_header.asp file instead? |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 31 October 2003 : 13:15:33
|
Oh, my bad. I guess I should have checked that before asking. |
|
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 31 October 2003 : 15:08:53
|
Ok, I'm starting to get the hang of this (I think). I've been viewing the source in the browser everytime I make a change to make sure the HTML matches up. I had to strip out some of the code from the inc_header.asp file to get it to work. Is that ok?
I got the white table background to show up, but now the tables for the forum are acting weird. They got narrower and shifted to the left edge of the table defined in the inc_site_header.asp file http://www.mathtv.com/forums/default.asp
Any idea how I can fix this? |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 31 October 2003 : 15:30:10
|
quote: Originally posted by Nikkol
it's probably due to what you took out of inc_header. what did you modify?
I took out some code around line# 282 - mostly response.write's that defined some of the HTML table tags. They were reduntant with the HTML that is in my inc_site_header.asp file. I don't think that messed anything up because the combined HTML source in IE is matching up correctly as far as I can tell. Am I wrong? |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
slopo
Starting Member
Bahamas
23 Posts |
Posted - 31 October 2003 : 15:38:14
|
ok, i'll revert back to my backup file. I'm starting to think that site integration isn't gonna work with my design. |
|
|
|
Topic |
|