rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Awesoft on December 10, 2007, 10:07:42 PM

Title: "Search" button redirects to main page...
Post by: Awesoft on December 10, 2007, 10:07:42 PM
I have my homepage (.html) and a protected shared folder (hfs) with some folders/files on it.
When I try to search anything, it redirects to the main page.

Where is the problem?
Title: Re: "Search" button redirects to main page...
Post by: Mars on December 10, 2007, 10:22:45 PM
no problem
look into your  template and find it

Quote
{{if| {{get|can recur}} |
  <td nowrap>
    <div class=button>
    <form action='/' style='width:160px'>
    <input name=search size=10 value="{{urlvar|search}}">
    <input type=submit value=search>
    </form>
    </div>

action='/'  redirects you to root page, you can change it  by action='%folder%'  to begin search from current folder

Title: Re: "Search" button redirects to main page...
Post by: Awesoft on December 10, 2007, 10:48:55 PM
no problem
look into your  template and find it

Quote
{{if| {{get|can recur}} |
  <td nowrap>
    <div class=button>
    <form action='/' style='width:160px'>
    <input name=search size=10 value="{{urlvar|search}}">
    <input type=submit value=search>
    </form>
    </div>

action='/'  redirects you to root page, you can change it  by action='%folder%'  to begin search from current folder



It works with action='/Folder/'

Thanks a lot.
Title: Re: "Search" button redirects to main page...
Post by: Awesoft on December 10, 2007, 11:56:09 PM
I have another question:

After doing a search, the "UP" link doesn't works like parent (..), but it backs to the root (in this case, my homepage)

:-\
Title: Re: "Search" button redirects to main page...
Post by: Mars on December 11, 2007, 01:00:13 AM
not for me, all is ok with

{{if| {{get|can recur}} |
  <td nowrap>
    <div class=button>
    <form action='%folder%' style='width:160px'>
    <input name=search size=10 value="{{urlvar|search}}">
    <input type=submit value=search>
    </form>
    </div>


Title: Re: "Search" button redirects to main page...
Post by: rejetto on December 11, 2007, 01:48:26 AM
It works with action='/Folder/'

remove the action='ANYTHING' and it will work.
it's much better.

After doing a search, the "UP" link doesn't works like parent (..), but it backs to the root (in this case, my homepage)

try the solution i told you. the up should work normally.
Title: Re: "Search" button redirects to main page...
Post by: Awesoft on December 11, 2007, 06:40:31 PM
It works with action='/Folder/'

remove the action='ANYTHING' and it will work.
it's much better.

After doing a search, the "UP" link doesn't works like parent (..), but it backs to the root (in this case, my homepage)

try the solution i told you. the up should work normally.

After the search is completed, "UP" button links to "http://localhost" (not "http://localhost/Privado")

 ???

(http://i44.photobucket.com/albums/f36/Awesoft/hfs.png)
Title: Re: "Search" button redirects to main page...
Post by: Mars on December 13, 2007, 01:38:30 AM
your template has a section [up]

can you copy  it into a post?
Title: Re: "Search" button redirects to main page...
Post by: rejetto on December 13, 2007, 01:44:29 AM
as mars guessed, the [up] of your template is probably not compatible.

it should link to ".."
Title: Re: "Search" button redirects to main page...
Post by: Mars on December 13, 2007, 01:51:25 AM
Another possibility is that you confuse the information

if you make a search in folder privado, he is the current folder and up is the link to root

add a folder under privado like test and go to it

make a search in test, you  receive NO FILES

place your mouse over the link UP and see what is the url in your status bar
Title: Re: "Search" button redirects to main page...
Post by: Awesoft on December 13, 2007, 11:24:12 PM
Main "shared" page:

(http://i44.photobucket.com/albums/f36/Awesoft/1-2.png)

Searching a file:

(http://i44.photobucket.com/albums/f36/Awesoft/2-2.png)

After a search. (UP button (Atrás) should link to "/Privado/Programas/")

(http://i44.photobucket.com/albums/f36/Awesoft/3-1.png)
Title: Re: "Search" button redirects to main page...
Post by: Mars on December 13, 2007, 11:59:47 PM
The conclusion is that you have no problem, what you obtain is completely normal :D

 ;D  Be delighted!  ;D

you can use this up section 

(extracted from HFS Terayon v1.2.1)

[up]
<span class="cattitle"> :: <script type="text/javascript">pathTreeArray = path.split('/'); for (i=1; i<pathTreeArray.length; i++) {pathTreeArray = '/'+pathTreeArray; pathTree = pathTree+pathTreeArray; document.write('<a href="'+pathTree+'" class="cattitle">'+pathTreeArray+'</a>')}; </script></span>


Title: Re: "Search" button redirects to main page...
Post by: rejetto on December 14, 2007, 03:59:16 PM
it's just a bad translation to spanish.

the original is UP not BACK.

while atràs is BACK in spanish.

my advice is to use the big LEFT arrow in your browser, that's just the atras you are searching for :)
Title: Re: "Search" button redirects to main page...
Post by: Awesoft on December 14, 2007, 08:25:31 PM
I think it would have to be "Back to folder" instead of "UP" from "search results" page. (like the "Upload results" page). Meanwhile I'll click on "Atrás" button :)

Thank you.
Title: Re: "Search" button redirects to main page...
Post by: rejetto on December 15, 2007, 09:48:35 AM
i'll work on it