Author |
Topic |
|
gareth_moore_2000
Junior Member
United Kingdom
262 Posts |
Posted - 27 October 2002 : 08:30:16
|
I have a block of HTML code to add to the page, which is basically the header and footer of my pages. This includes a table where the forum will sit.
Where is the exact place I can add it in the header/footer.asp pages ?
Currently I add these to the very top and the very bottom of the pages with my own <HTML> tags. It works fine- but I know this is not 100% correct ! So can someone help me out ? |
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 27 October 2002 : 08:54:12
|
Try doing a search on "site integration" and you should get enough topics to help you figure it out. D3mon had a rather lengthy discussion about it with someone in this forum approx. a month ago. |
|
|
gareth_moore_2000
Junior Member
United Kingdom
262 Posts |
Posted - 28 October 2002 : 03:42:02
|
I look at those topics, the big one by D3mon inparticuler. I followed what was said on their at one point but it did not work for me. I think because I have many tables within a table that create the actual structure of my site.
Would it be possible for someone just to take a quick look at the header.asp and footer.asp pages ? I know its asking a lot but I would be very grateful !
http://www.harchester.net/inc_header.txt http://www.harchester.net/inc_footer.txt |
|
|
gareth_moore_2000
Junior Member
United Kingdom
262 Posts |
Posted - 28 October 2002 : 15:33:38
|
sorry to be a pain, but I would be so gratefull if someone could at least point me in the right direction !
As I explained, I have a template of my site (created in pure HTML), this I have just copied and pasted into the inc_header & footer.asp pages, inserting my own <html> tags at the very top and bottom.
I know this is not the correct way of doing it. Ideally, do I need to convert this into .asp ? |
|
|
DoraMoon
Average Member
Taiwan
661 Posts |
Posted - 28 October 2002 : 16:24:06
|
hi~ gareth, i think you just put your extra header/footer code in a wrong place! you know, the ASP code must enclosed with <% and %> in v3.4, almost all html code be transfer to Response.Write "<html...>" so you need to find the right place to insert carefully.
in your inc_header.asp about line.318, 319 insert between, and need some modifiedchange to these two lines
"<a name=""top""></a><font face=""" & strDefaultFontFace & """>" & vbNewLine '########## BEGIN HEADER : remove & _ in above line and add %> below ########## %> <!--- the <html><body> is no need here, just start your outer table.---> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%" align="center"> : : <td width="750"> <% '########## END HEADER : add <% above, and Response.Write in below one line ########## Response.Write "<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _
and inc_footer.asp, about line.63, line.64 the same rule with above inc_header.asp code insert method
"</table>" & vbNewLine '########## BEGIN FOOTER : remove above & _ and add %> below ########## %> </td> </tr> <tr> : : </tr> </table> <!--- </body></html> no need here. ---> <% '########## END FOOTER : the same... ########## Response.Write "</font>" & vbNewLine & _ "</body>" & vbNewLine & _ "</html>" & vbNewLine
|
|
|
gareth_moore_2000
Junior Member
United Kingdom
262 Posts |
Posted - 28 October 2002 : 18:18:58
|
Thanks so much ! I am just starting to get to grips with modifying asp myself without how to be told (as in installing MODS) !
The forum looks the same as it did before- but at least now I know its done properly !
|
|
|
|
Topic |
|