| View previous topic :: View next topic |
| Author |
Message |
H1M
Joined: 10 Nov 2008 Posts: 8
|
Posted: Nov 19, 2008 12:43 am Post subject: Help with Main Index Page |
|
|
Hello. I am trying to do something I would think to be easy. I want the news page to show up as my main page, and then have to go to upload.html to upload something. I tried changing to htaccess document to something for specific, but the other variables got mixed up. Could you please tell me how to change the index page to the news page and allow uploads to be accessed by upload.html. Actually I just added a rewrite line into the htaccess and had it point to the index.cgi file. That has solved the problem for the upload page, I just need it now for the index page to show the news and not the upload bar.
Thanks |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Nov 19, 2008 7:06 am Post subject: |
|
|
In index.cgi find
| Code: | if($sub && $ses->getUser)
{
&$sub;
}
else
{
&UploadForm;
} |
and replace
with
|
|
| Back to top |
|
 |
H1M
Joined: 10 Nov 2008 Posts: 8
|
Posted: Nov 20, 2008 2:09 pm Post subject: |
|
|
| Thank you very much. Now that I have done that, how do I go about making the upload form on another page? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Nov 21, 2008 2:15 pm Post subject: |
|
|
lol, sure
after
| Code: | | login => \&LoginPage, |
add
| Code: | | upload => \&UploadForm, |
|
|
| Back to top |
|
 |
|