Author |
Topic  |
|
webmister
Starting Member
United Kingdom
24 Posts |
Posted - 25 June 2003 : 11:06:02
|
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
|
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" |
 |
|
webmister
Starting Member
United Kingdom
24 Posts |
Posted - 26 June 2003 : 09:23:57
|
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 |
 |
|
D3mon
Senior Member
   
United Kingdom
1685 Posts |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 26 June 2003 : 09:40:11
|
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 ~ |
 |
|
webmister
Starting Member
United Kingdom
24 Posts |
Posted - 26 June 2003 : 10:38:23
|
All I did was change the 100% to a 760. Nothing else I swear. |
'no comment |
 |
|
D3mon
Senior Member
   
United Kingdom
1685 Posts |
|
webmister
Starting Member
United Kingdom
24 Posts |
Posted - 26 June 2003 : 10:54:56
|
Dreamweaver to view the code - it has line numbers which makes my life a hell of a lot easier. |
'no comment |
 |
|
D3mon
Senior Member
   
United Kingdom
1685 Posts |
Posted - 26 June 2003 : 10:57:55
|
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" |
 |
|
webmister
Starting Member
United Kingdom
24 Posts |
Posted - 26 June 2003 : 11:31:12
|
Good old Dreamweaver - it always does something to the code. I'll stick to notepad next time. |
'no comment |
 |
|
|
Topic  |
|