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)
 Home Page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

l2k man
New Member

United Kingdom
74 Posts

Posted - 13 December 2009 :  04:37:43  Show Profile
I have a problem, in that I want to set a home page that is special, not the general forum. My problem is that I have to circumvent default.asp to achieve that. In topic 67241 I think you imply that we can change the file priorities to set another file higher in the list than default.asp. If so, how? In our current site (http://www.laser2000.org.uk/) we have managed to do it by putting the forum in a sub directory. I would like to avoid that if I can, as the homepage in the new site I am working on, is better integrated.

Please excuse me if this has been dealt with elsewhere, but I couldn't find anything, and being very new to asp and Snitz I am on a very steep learning curve.

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 December 2009 :  19:11:11  Show Profile  Send ruirib a Yahoo! Message
You need to have control of the properties of your website to be able to define the priorities of the default documents. If your hosting control panel doesn't allow that, you will need to talk to your host about it.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 14 December 2009 :  12:55:21  Show Profile  Visit MaD2ko0l's Homepage
or, you can rename default.asp to somthing like forum_Home.asp

then replace all instances of dfault.asp with forum_home.asp in all forum files.

you can get a program to bulk "search and replace" this, its simple enough to do and i have done it before.

© 1999-2010 MaD2ko0l
Go to Top of Page

l2k man
New Member

United Kingdom
74 Posts

Posted - 17 December 2009 :  07:54:12  Show Profile
Many thanks for your help. It appears I cannot change priorities at the host. I have achieved what I want by changing default.asp slightly with this at the top of the script;

if Request.QueryString("CAT_ID") = "" then
callmyhomepage
else if Request.QueryString("CAT_ID") <> "" (etc.etc)
....
....
and at the end

function callmyhomepage
%>
<!--#INCLUDE FILE="inc_home.asp" -->
<%
end function
%>

Then I have changed all instances where default.asp is called to default.asp?cat_id=all, which seems to work, except where I have missed them. In those cases the home page gets called.

Edited by - l2k man on 17 December 2009 07:55:53
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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07