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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Loading 2nd inc_header.asp file !
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 20 November 2004 :  10:57:32  Show Profile
How do I make a link to my current inc_header.asp file to a another inc_header.asp (let´s call it inc_header2.asp), so that it stays on this new header thoughout the forum ?

Hope you understand what I mean.

Podge
Support Moderator

Ireland
3776 Posts

Posted - 20 November 2004 :  11:08:09  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
rename inc_header.asp to inc_header.asp.old
rename inc_header2.asp to inc_header.asp

or

Within all the asp files replace
<!--#INCLUDE FILE="inc_header.asp" -->

with

<!--#INCLUDE FILE="inc_header2.asp" -->

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 20 November 2004 :  11:32:39  Show Profile
Ok, let me try to explain this better.

I have a inc_header.asp file - I would like to have the option for my forum members to load a different inc_header.asp file. I need help with the code for this, I guess with cookies, so that the different inc_header.asp file will load no matter where these members are at the forum.
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 20 November 2004 :  11:33:29  Show Profile
Something like this:

http://www.swishzone.com/index.php?showanim=false
http://www.swishzone.com/index.php?showanim=true
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 20 November 2004 :  11:48:48  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
if request.querystring("showanim") = "true" then
response.write("your html goes here")
else if request.querystring("showanim") = "false" then
response.write("your alternate html goes here")
else
response.write("your default html goes here")
end if

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 20 November 2004 :  11:49:54  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I don't know of a way to dynamically include a file or even if its possible.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

miperez
Junior Member

Spain
243 Posts

Posted - 22 November 2004 :  03:26:55  Show Profile
Yes, there is a way, not to dinamically include a file, but to simmulate the effect of being doing exactly that, that I found in 4 Guys From Rolla. You can find it here

I used it somewhere in my site; imagine how fine it works that now I cannot even remember where

Best Regards

Mikel Perez

"Hell is the place where everything test perfectly, and nothing works"
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 22 November 2004 :  07:43:29  Show Profile
Wow, this is much more complicated than I imagined.
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.96 seconds. Powered By: Snitz Forums 2000 Version 3.4.07