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)
 Modifying the Site Integration Mod
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Panhandler
Average Member

USA
783 Posts

Posted - 08 October 2008 :  14:11:49  Show Profile  Visit Panhandler's Homepage  Reply with Quote
How difficult would it be to change the two supporting columns so that they are on the "outside" of the inc_site_header and inc_site_footer includes?

I would like to make the two outside "Site left" and "Site right" columns extend all the way to the top and bottom, thus sandwiching the header and footer between them, unlike the current configuration shown below:

<

Etymon
Advanced Member

United States
2385 Posts

Posted - 08 October 2008 :  14:33:43  Show Profile  Visit Etymon's Homepage  Reply with Quote
This is one thing that I do like using FrontPage for ... drawing a table and then looking at the code to see how it was done. Do you by chance have a copy of FrontPage? Ah, nevermind ... it took a little longer, but I did it in MS Word.

You'll have to do some messing around with the way the table is laid out in the MOD, but below has the rowspan values in which you may be interested. I commented what should go where. Save the code below as a .html file and then view it in your browser.

This is the HTML structure you want:

<html>

<head></head>

<body>

<div>

<table border=1>
<tr>
<td width=30 rowspan=3 valign=top>
Left Side
</td>
<td width=528 valign=top>
Top
</td>
<td width=30 rowspan=3 valign=top>
Right Side
</td>
</tr>
<tr>
<td>
Middle<br><br><br><br>
</td>
</tr>
<tr>
<td width=528 valign=top>
Bottom
</td>
</tr>
</table>
</div>

</body>

</html>


This is the HTML structure you have:

<html>

<head></head>

<body>

<div>

<table border=1>
<tr>
<td width=588 colspan=3 valign=top>
Top
</td>
</tr>
<tr>
<td width=30 valign=top>
Left Side
</td>
<td width=528 valign=top>
Middle
</td>
<td width=30 valign=top>
Right Side
</td>
</tr>
<tr>
<td width=588 colspan=3 valign=top>
Bottom
</td>
</tr>
</table>

</div>

</body>

</html>
<

Edited by - Etymon on 08 October 2008 14:46:23
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 08 October 2008 :  14:57:48  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
ok..try this, the values are hardcoded for what u want, so u wont be able to use the admin panel to turn on/off the sectiosn u want, but i have left it so it can be enabled/disabled and the borders shoudl work.

ok here we go.


fine this bit of code in inc_header.asp

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 " <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


replace it with this

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 & _
"<tr>" & vbNewLine & _
" <td rowspan=""3"">" & vbNewLine

%><!--#include file="inc_site_left.asp"--><%

response.write " </td>" & vbNewLine & _
" <td>" & vbNewLine

%><!--#include file="inc_site_header.asp"--><%

response.write " </td>" & vbNewLine & _
" <td rowspan=""3"">" & vbNewLine

%><!--#include file="inc_site_right.asp"--><%
response.write " </td>" & vbNewLine & _
"</tr>" & vbNewLine & _
"<tr>" & vbNewLine & _
" <td>" & vbNewLine
end if



find this in inc_footer.asp

if strSiteIntegEnabled = "1" then
if strSiteRight = "1" then
Response.Write " </td>" & vbNewLine & _
" <td valign=""top"">" & vbNewLine
%><!--#include file="inc_site_right.asp"--><%
end if
Response.Write " </td>" & vbNewLine & _
" </tr>" & vbNewLine
if strSiteFooter = "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_footer.asp"--><%
Response.write " </td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
Response.write "</table>" & vbNewLine
end if


replace it with this

if strSiteIntegEnabled = "1" then
response.write " </td>" & vbNewLine & _
"</tr>" & vbNewLine & _
"<tr>" & vbNewLine & _
" <td>" & vbNewLine

%><!--#include file="inc_site_footer.asp"--><%

response.write " </td>" & vbNewLine & _
"</tr>" & vbNewLine & _
"</table>" & vbNewLine
end if



so now u shodu lhave the layout that u want.

and for gods sake MAKE BACKUP COPIES OF ANYTHING THAT YOU CHANGE as i havent tryed this code<

© 1999-2010 MaD2ko0l
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 08 October 2008 :  18:34:20  Show Profile  Visit Panhandler's Homepage  Reply with Quote
MaD2Ko0l: dat's da bomb!
It worked right out of the box. . .but like you mentioned, no turning off/on from the admin panel.
I think I can work with that. . .thanks!

Etymon:
Got it. . .but not sure what to do with it.




<


"5-in-1 Snitz Common Expansion Pack" - five popular mods packaged for easy install
". . .on a mote of dust, suspended in a sunbeam. . ."
HarborClassifieds
Support Snitz Forums


Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 08 October 2008 :  20:14:55  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
:-) glad i coudl help.

i did what Etymon did to find out what/where i needed to move the tags then compared it to the original site intergration mod code then just formated it into snitz codeing.

i suppose it could be changed so that you coudl turn on/off each section but i couldnt get my head around it at the time, a little busy here atm, and i have nowhere to test it out, so i made the next best thing :-)<

© 1999-2010 MaD2ko0l
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 09 October 2008 :  10:52:48  Show Profile  Visit Panhandler's Homepage  Reply with Quote
Oops. Not so fast. . .it works in Firefox but not IE7

inc_header isn't showing the login & menu in IE


Scratch that. . .i think i messed something else up.


<

Edited by - Panhandler on 09 October 2008 11:02:47
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 09 October 2008 :  11:19:56  Show Profile  Visit Etymon's Homepage  Reply with Quote
Yeah, you have to think about forums as a box or a square and think about the Site Integration as a perimeter or a border that is around or outside of the square.

The tags for the configuration of the perimeter are contained within the perimeter itself and not within the square. So try not to mush the whole concept of getting the Site Integration MOD to work successfully with your forum as something that is dependent upon the nature of your forum's HTML setup. Focus on what is going on inside the perimeter.
<
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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07