Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Header/Footer Configuration (3.4.01)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mafe
Starting Member

44 Posts

Posted - 23 August 2002 :  19:18:57  Show Profile
For Snitz 3.4.01

http://www.bonustrack.net/admin_config_header.txt

rename to .asp

in config.asp add

at line 125


Dim strHeader
Dim strFooter


at line 392


strHeader = Application(strCookieURL & "STRHEADER")
strFooter = Application(strCookieURL & "STRFOOTER")


inc_header.asp

search for (line 299)

		"<a name=""top""></a><font face=""" & strDefaultFontFace & """>" & vbNewLine & _


add after this (line 300)

		"" & strHeader & "" & vbNewLine & _


inc_footer.asp

search for (line 76)

				"</table>" & vbNewLine & _


add after this (line 77)

		"" & strFooter & "" & vbNewLine & _


in admin_home.asp add this link (line 139 for example)

		"                <LI><span class=""spnMessageText""><a href=""admin_config_header.asp"">Header/Footer Configuration</a></span></LI>" & vbNewLine & _


done... i hope :D

Edited by - mafe on 24 August 2002 14:33:47

mafe
Starting Member

44 Posts

Posted - 23 August 2002 :  19:23:32  Show Profile
for example.... u can add in header

<!-- HEADER -->
<table align="center" border="1" cellPadding="0" cellSpacing="0" width="766">
<tr>
<td>
<!-- END HEADER -->


and in footer

<!-- FOOTER -->
</td>
</tr>
</table>
<!-- END FOOTER -->

Edited by - mafe on 23 August 2002 20:30:30
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 23 August 2002 :  19:52:21  Show Profile  Visit D3mon's Homepage
Nice, needs a </td> in the footer.


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

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  20:01:42  Show Profile
wouldn't it be easier to use includes? Only two files to edit to install the "mod" and then all changes can be made to those two includes...
Go to Top of Page

mafe
Starting Member

44 Posts

Posted - 23 August 2002 :  20:32:53  Show Profile
i know, i only make an admin frontend.... u can do it the way u want :)

the include way:

inc_header.asp

line 299

change


		"<a name=""top""></a><font face=""" & strDefaultFontFace & """>" & vbNewLine & _ 		vbNewLine & _ 		"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _


with


		"<a name=""top""></a><font face=""" & strDefaultFontFace & """>" & vbNewLine %> <!--#INCLUDE FILE="inc_my_header.asp" --> <% Response.Write	"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _


and in inc_footer.asp

in line 76

change


		"</table>" & vbNewLine & _ 		"</font>" & vbNewLine & _


with


		"</table>" & vbNewLine %> <!--#INCLUDE FILE="inc_my_footer.asp" --> <% Response.Write	"</font>" & vbNewLine & _


now create inc_my_header.asp

and put there this code

<!-- HEADER --> 
<%
Response.Write "<table align=""center"" border=""1"" cellPadding=""0"" cellSpacing=""0"" width=""766"">" & vbNewLine & _
"<tr>" & vbNewLine & _
"<td>" & vbNewLine
%>
<!-- END HEADER -->


and in inc_my_footer.asp

<!-- FOOTER -->

<%
Response.Write " </tr>" & vbNewLine & _
"</table>" & vbNewLine
%>

<!-- END FOOTER -->


now u only need to make the table u want in inc_my_header and close it in inc_my_footer

u can use pure html without response.write too

Edited by - mafe on 23 August 2002 20:37:13
Go to Top of Page

mxc369
Starting Member

41 Posts

Posted - 28 August 2002 :  22:07:41  Show Profile
I am new to HTML and wanted to know if there is any way to do this through frontpage?
Thanks
Mike
Go to Top of Page

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 29 August 2002 :  06:21:34  Show Profile
quote:
Originally posted by mxc369

I am new to HTML and wanted to know if there is any way to do this through frontpage?



Don't use frontpage with asp files!
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 29 August 2002 :  06:34:14  Show Profile  Visit D3mon's Homepage
Don't use Frontpage with asp files!


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

Dunamis
Starting Member

29 Posts

Posted - 29 August 2002 :  15:19:24  Show Profile
I know everyone says don't use M$ FrontPage to edit ASP files - but why? I have used FP for quite sometime with no probs. Is it just because it is a M$ product?

BTW I have now graduated to using Source Edit

Dunamis
Go to Top of Page

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 29 August 2002 :  15:38:05  Show Profile
If you open an asp file in FP and click on "preview", I think it gives a warning, if you ignore this warning sometimes in you asp code FP adds html tags.
For only HTML, if you change some options, it's a nice product.
Go to Top of Page

bravado
Starting Member

USA
1 Posts

Posted - 04 September 2002 :  23:41:10  Show Profile  Visit bravado's Homepage  Send bravado an AOL message  Send bravado a Yahoo! Message
The problem with FrontPage is that it was never designed to be a proper ASP editor. Sure...there's also Visual InterDev...but even it uses a FrontPage interface. I abhore anything dealing with FrontPage, even if it's InterDev. I just do not see the sense in using FrontPage extensions nor do I care for it's bastard idea of CSS style encoding.

My advice....use a better editor like Dreamweaver or Homepage! Stick with the stuff that offers clean ASP coding and doesn't alter your stuff with proprietary code. Compatibility is the key to good coding and FrontPage simply doesn't offer it.

Nuff said! L8R!


Jeff Whitfield
horizoninnovations@hotmail.com

"If you don't like the smell...then get your face out of it!"
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 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07