Author |
Topic |
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 31 August 2002 : 08:27:10
|
Added an extra option to switch the border on/off between areas. Can be useful in diagnosing <table> syntax problems in the includes or even just for effect.< |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
joatham
Junior Member
United Kingdom
169 Posts |
Posted - 31 August 2002 : 14:58:15
|
Hi D3mon, great mod! You need to update inc_header.asp with the Application("down") bugfix if you haven't already done so!
Also, I've found a couple of (minor) bugs in the admin_config_integration.asp page:-
- <!--#INCLUDE FILE="inc_func_common.asp"--> is needed at the top of the file so that the chkRadio function will work correctly.
- The lines which call chkRadio need to be amended for them to read the values, changing chkRadio(strSiteIntegEnabled,0,false) and chkRadio(strSiteIntegEnabled,0,true) to chkRadio(strSiteIntegEnabled, "0", false) and chkRadio(strSiteIntegEnabled, "1", true) (and following the same logic on the other radio boxes) did the trick for me, so you might want to add that to your file.
Top MOD, saved me a ton of work, now I've just got to decide what to put in the asp include files !
John
(edit: The "bug" doesn't seem to be a bug after all!)< |
Edited by - joatham on 31 August 2002 23:27:53 |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 31 August 2002 : 18:25:16
|
I inserted the application "down" bugfix, but cannot see the need for the other changes. What functionality will this provide?
inc_func_common.asp is included in inc_header.asp which is included in admin_config_integration.asp. Any functions defined in inc_func_common.asp will be available for calling in admin_config_integration.asp.
What problems did you find with the un-quoted values in the ChkRadio function? Seems OK here..< |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
joatham
Junior Member
United Kingdom
169 Posts |
Posted - 31 August 2002 : 23:25:13
|
Without the changes, when I loaded the admin page it didn't remember the settings, and when I included the page and made the changes it did. However, I've now changed it back and it works fine, so must've been something else I did at the time, maybe I hadn't made the changes correctly to config.asp to put the variables in.
I've edited the above post now, as it doesn't seem to be a bug after all
Once again, this is a brilliant MOD, incredibly useful to me, thanks!
John< |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 01 September 2002 : 06:30:53
|
Up until very recently the readme files were a little unclear about the changes needed to config.asp, so that may be why.< |
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 01 September 2002 06:32:50 |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 09:00:07
|
your readme.htm does NOT say to insert the file admin_confi_intergration.asp into your forum directory :)
Also the code to look for in inc_header.asp is different in 3.4.02< |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 09:09:44
|
yea - following the instructions for inc_header and footer.asp code modifications in 3.4.02 I get the following error for each::
Microsoft VBScript compilation error '800a03ea'
Syntax error
/forum/inc_header.asp, line 283
if strSiteIntegEnabled = "1" then
< |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 03 September 2002 : 09:34:51
|
Hmm. looks like the readme files need more work!
Did you apply the changes to the database yet? and also make the chages to config.asp? It seems to be saying it doesn't recognise that variable name..< |
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 03 September 2002 09:37:32 |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 09:36:53
|
yeasp (used this mod in 3.4.01) and i love it!!
So I have made all the nessasary changes. If I search for the code you say to find in incheader+footer it is different to what is there.....< |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 03 September 2002 : 09:40:24
|
The line above:
if strSiteIntegEnabled = "1" then
Does it end like this?
& _
If so, knock off the & _ and on the next line after my code, add in response.write before the " Hope this make sense.< |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 09:49:01
|
"<a name=""top""></a><font face=""" & strDefaultFontFace & """>" & vbNewLine & _ vbNewLine & _ "<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _
is the code i have< |
|
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 03 September 2002 : 10:00:45
|
OK, change it like this (get rid of the red text, add in green text)
"<a name=""top""></a><font face=""" & strDefaultFontFace & """>" & vbNewLine & _ vbNewLine & _ "<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _ [Mod code goes here] response.write " [whatever the next lines are]< |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 10:13:04
|
and the end of mt footer.asp
Response.Write getCurrentIcon("logo_powered_by.gif||","Powered By: " & strVersion,"") else Response.Write "Snitz Forums 2000" end if Response.Write "</acronym></a></font></td>" & vbNewline '## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write " </tr>" & vbNewLine & _ "</table>" & vbNewLine & _ "</font>" & vbNewLine & _ "</body>" & vbNewLine & _ "</html>" & vbNewLine
my_Conn.Close set my_Conn = nothing %>< |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 10:22:01
|
I went from:
else Response.Write "Snitz Forums 2000" end if Response.Write "</acronym></a></font></td>" & vbNewline '## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write " </tr>" & vbNewLine & _ "</table>" & vbNewLine if strSiteIntegEnabled = "1" then if strSiteRight = "1" then Response.Write " </td>" & vbNewLine & _ " <td>" & 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" then if 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
Response.Write "</font>" & vbNewLine & _ "</body>" & vbNewLine & _ "</html>" & vbNewLine
my_Conn.Close set my_Conn = nothing %>< |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
|
Topic |
|