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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Site Integration Mod - How can I fully integrate?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

slopo
Starting Member

Bahamas
23 Posts

Posted - 30 October 2003 :  17:21:36  Show Profile
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

Posted - 30 October 2003 :  17:58:51  Show Profile  Visit D3mon's Homepage
Ok, so you want it like: header - gap - body - gap - footer, with the background showing through the gaps is that right?


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

slopo
Starting Member

Bahamas
23 Posts

Posted - 30 October 2003 :  18:09:20  Show Profile
Exactly!

With the "body" being the forums.
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 30 October 2003 :  18:25:35  Show Profile  Visit D3mon's Homepage
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"
Go to Top of Page

slopo
Starting Member

Bahamas
23 Posts

Posted - 30 October 2003 :  19:02:59  Show Profile
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.
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 31 October 2003 :  06:26:33  Show Profile  Visit D3mon's Homepage
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
Go to Top of Page

slopo
Starting Member

Bahamas
23 Posts

Posted - 31 October 2003 :  12:26:02  Show Profile
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?
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 31 October 2003 :  12:46:42  Show Profile  Visit D3mon's Homepage
You can do that via the Snitz admin pages.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

slopo
Starting Member

Bahamas
23 Posts

Posted - 31 October 2003 :  13:15:33  Show Profile
Oh, my bad. I guess I should have checked that before asking.
Go to Top of Page

slopo
Starting Member

Bahamas
23 Posts

Posted - 31 October 2003 :  15:08:53  Show Profile
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?
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 31 October 2003 :  15:11:58  Show Profile
it's probably due to what you took out of inc_header. what did you modify?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

slopo
Starting Member

Bahamas
23 Posts

Posted - 31 October 2003 :  15:30:10  Show Profile
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?
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 31 October 2003 :  15:35:21  Show Profile
taking out table tags will definitely cause problems. you probably took out a tag that defined the width of the table.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

slopo
Starting Member

Bahamas
23 Posts

Posted - 31 October 2003 :  15:38:14  Show Profile
ok, i'll revert back to my backup file. I'm starting to think that site integration isn't gonna work with my design.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07