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
 table alignment query - Site Int MOD 3.4.xx v1.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

webmister
Starting Member

United Kingdom
24 Posts

Posted - 25 June 2003 :  11:06:02  Show Profile
Hi all, I wonder if anyone out there can help ? I'm using the excellent site int mod 3.4.xx v1.1 and I'd like to alter table & cell widths for the forum main table and indeed all our tables.
I also want all the tables to be aligned "left" as opposed to "center". The test URL is http://www.pilottravelshop.co.uk/mod3/default.asp

However, finding the right snippets of code is like finding a needle in a haystack. Let alone the right file to alter. I can't get some of the sizes and alignments to change. I want each table's pixel width to match the Pilot banner. This is approx 760 pix rather than a percentage width so it works on both 800 x 600 and 1024 x 768 screen res.

I've tried aligning the forum navigation table - Profile, Register etc - left myself, but if I do, it pushes the main forum table way, way right. If it were a "regular" html page, I could add a <br /> tag to push the main forum table to a new line and I could align it left. But html embedded in asp is a very different animal. I have no idea where to position any <br /> tag, if indeed asp excepts it.

How do I change the name for link in the forum navigation from home to Forum home and change the link itself ? I think all these links are variables but I haven't got a clue which variables they are. As you can see, I've temporarily left in all the table and area borders as a visual aid. Again Unlike say the area files, where I just modify the code just once and it's applied to the whole site, I guess I need to modify the code in each of the forum navigation links. Which bits of code, though ?

Don't worry, as directed I'm leaving the "powered by Snitz" link and copyright stuff at the bottom of the page. Although, I'd like the copyright bar to be aligned "left" to match up with the forum table.

'no comment

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 25 June 2003 :  11:15:43  Show Profile  Visit D3mon's Homepage
Change this line in the modified inc_header.asp:

if strSiteIntegEnabled = "1" then
response.write "<table width=""100%"" border="""

to:

if strSiteIntegEnabled = "1" then
response.write "<table width=""760"" border="""

that should resize the whole page to a maximum size of 760 pixels.


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

webmister
Starting Member

United Kingdom
24 Posts

Posted - 26 June 2003 :  09:23:57  Show Profile
I tried changing the 100% width to 760 (pixels) as directed above (approx line 281 of the modified inc_header.asp). I then got this error in default.asp

Microsoft VBScript compilation error '800a0400'

Expected statement

inc_header.asp, line 311

end if

If I keep the width at 100% no error message occurs.

Here is the code around line 311, starting at line 281, that produces the error. Excuse the lack of indentation here. It's not how it appears in my text editor, it's just what happens when you cut and paste it here.

if strSiteIntegEnabled = "1" then
response.write "<table width=""760"" 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

The second end if is line 311

'no comment
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 26 June 2003 :  09:39:55  Show Profile  Visit D3mon's Homepage
Don't change anything else except replacing the 100% with 760


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

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 26 June 2003 :  09:40:11  Show Profile
quote:
Originally posted by webmister

Excuse the lack of indentation here. It's not how it appears in my text editor, it's just what happens when you cut and paste it here.
Then use the [code] tags.

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

webmister
Starting Member

United Kingdom
24 Posts

Posted - 26 June 2003 :  10:38:23  Show Profile
All I did was change the 100% to a 760. Nothing else I swear.

'no comment
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 26 June 2003 :  10:43:17  Show Profile  Visit D3mon's Homepage
which editor are you using? Is it possible it could have automatically 'cleaned up' the code?


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

webmister
Starting Member

United Kingdom
24 Posts

Posted - 26 June 2003 :  10:54:56  Show Profile
Dreamweaver to view the code - it has line numbers which makes my life a hell of a lot easier.

'no comment
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 26 June 2003 :  10:57:55  Show Profile  Visit D3mon's Homepage
The code you posted appears to be syntactically correct. Try re-applying that section of code from the Site Integratiom mod and make the change again.


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

webmister
Starting Member

United Kingdom
24 Posts

Posted - 26 June 2003 :  11:31:12  Show Profile
Good old Dreamweaver - it always does something to the code. I'll stick to notepad next time.

'no comment
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 1.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07