XFileSharing Pro - Help with Main Index Page

Message
Author
H1M
Posts: 8
Joined: Nov 10, 2008 9:49 pm

Help with Main Index Page

#1 Postby H1M » Nov 19, 2008 12:43 am

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

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Nov 19, 2008 7:06 am

In index.cgi find

Code: Select all

if($sub && $ses->getUser)
{
   &$sub;
}
else
{
   &UploadForm;
}
and replace

Code: Select all

&UploadForm;
with

Code: Select all

&News;

H1M
Posts: 8
Joined: Nov 10, 2008 9:49 pm

#3 Postby H1M » Nov 20, 2008 2:09 pm

Thank you very much. Now that I have done that, how do I go about making the upload form on another page?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Nov 21, 2008 2:15 pm

lol, sure
after

Code: Select all

    login         => \&LoginPage,
add

Code: Select all

    upload         => \&UploadForm,