Author |
Topic  |
|
l2k man
New Member

United Kingdom
74 Posts |
Posted - 13 December 2009 : 04:37:43
|
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
|
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 |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 14 December 2009 : 12:55:21
|
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 |
 |
|
l2k man
New Member

United Kingdom
74 Posts |
Posted - 17 December 2009 : 07:54:12
|
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 |
 |
|
|
Topic  |
|