Author |
Topic |
|
DJGray
New Member
USA
68 Posts |
Posted - 03 April 2014 : 17:00:54
|
Greetings all. I'm trying to perform the required steps to use the Site Integration MOD. The instructions in D3mon's MOD appear to be written for the 3.4.03 code base. I just downloaded and set up 3.4.07, and the instructions are really close with the exception of the footer. There D3mon has us look for the following:
"</table>" & vbNewLine & _
"</font>" & vbNewLine & _
... around line 76ish in the footer include. I cannot find anything even close to that.
That is to be replaced by:
"</table>" & vbNewLine
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
response.write "</font>" & vbNewLine & _
Tried a number of things to get the code to be what it should be. Every attempt yields a lovely 500 error on my site.
Can someone more savvy than I suggest what modification should be done to the footer to allow the Site Integration MOD to function?
Thanks a ton!
- damon |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 April 2014 : 03:53:51
|
if you have an unmodified footer, then look for code similar to this
Response.Write " </tr>" & vbNewLine & _ "</table>" & vbNewLine & _ "</body>" & vbNewLine & _ "</html>" & vbNewLine
You need to put the code between the table and body, the font tags are no longer used so should go. Your new code should look something like this
Response.Write " </tr>" & vbNewLine & _
"</table>" & vbNewLine
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
"</body>" & vbNewLine & _
"</html>" & vbNewLine
"</body>" & vbNewLine & _
"</html>" & vbNewLine
|
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
DJGray
New Member
USA
68 Posts |
Posted - 04 April 2014 : 10:46:44
|
HuwR,
Thank you for the kind reply. Still getting the 500 error.
This is indeed a clean install. Fresh download of the 3.4.07 code base. Zero modifications. Just got it configured to talk to the DB and confirmed it runs. Step 1 was/is to get this integration rocking and rolling.
Tried to walk through the instructions in the readme with great care. I'll do that again with the slight adjustment to the footer that you have suggested.
Here's what I did. Started with this (in the footer):
Response.Write " </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
"</body>" & vbNewLine & _
"</html>" & vbNewLine
my_Conn.Close
set my_Conn = nothing
%>
Per your guidance, inserted this between table and body:
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
Ended up with this:
Response.Write " </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
'### Integration MOD ###
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
'### End Integration MOD ###
"</body>" & vbNewLine & _
"</html>" & vbNewLine
my_Conn.Close
set my_Conn = nothing
%>
As noted above, I'll work the issue again from start to finish and see if I get a better result. If so, I'll post back here that I've had success. Otherwise, I'm sure open to suggestions.
Thanks all!!
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 April 2014 : 12:32:03
|
this is where the error is
Response.Write " </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
'### Integration MOD ###
you need to remove the last & _
so it looks like
Response.Write " </tr>" & vbNewLine & _
"</table>" & vbNewLine
'### Integration MOD ###
|
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 April 2014 : 12:34:40
|
you also need to make a change here
'### End Integration MOD ###
"</body>" & vbNewLine & _
"</html>" & vbNewLine
it needs a Response.Write like this
'### End Integration MOD ###
Response.Write "</body>" & vbNewLine & _
"</html>" & vbNewLine
|
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
DJGray
New Member
USA
68 Posts |
Posted - 04 April 2014 : 14:36:18
|
Shazzam!!!!!
Excellent feedback and analysis!
I'd found and corrected the first error, but neglected to catch the need for the Response.Write after the modification.
Thank you SO much for the generous help! |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 08 April 2014 : 12:34:48
|
DJGray - looks like HuwR and Carefree were able to get your Site Integration question handled.
Sorry I didn't get to your email sooner. Between my day job (which has gotten massively draining lately) and trying to take some classes at night, all my personal development and side projects have been on hold... including checking their email. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 08 April 2014 : 12:36:06
|
quote: Originally posted by AnonJr
DJGray - looks like HuwR and Carefree were able to get your Site Integration question handled.
Sorry I didn't get to your email sooner. Between my day job (which has gotten massively draining lately) and trying to take some classes at night, all my personal development and side projects have been on hold... including checking their email.
I know that feeling |
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
DJGray
New Member
USA
68 Posts |
Posted - 08 April 2014 : 14:07:00
|
Not to worry my friend. The responsiveness and help on this site is nothing short of astonishing.
Yes, the integration issue is resolved, and HuwR pointed me in the right direction on getting it to load properly in an iFrame. Everything is working well so far. Working cosmetic issues, and then I want to use the .Net side's login to feed the Snitz cookies. Never done that before but have found a number of pointers online. Should be able to make that work.
If not, I'll be posting questions later on.
|
Edited by - DJGray on 08 April 2014 14:07:50 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
|
Topic |
|