|
Awesoft
|
 |
« on: December 10, 2007, 04: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?
|
|
|
|
|
Logged
|
|
|
|
|
Mars
|
 |
« Reply #1 on: December 10, 2007, 04:22:45 PM » |
|
no problem look into your template and find it {{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
|
|
|
|
« Last Edit: December 10, 2007, 04:37:48 PM by mars »
|
Logged
|
|
|
|
|
Awesoft
|
 |
« Reply #2 on: December 10, 2007, 04:48:55 PM » |
|
no problem look into your template and find it {{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.
|
|
|
|
|
Logged
|
|
|
|
|
Awesoft
|
 |
« Reply #3 on: December 10, 2007, 05: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) 
|
|
|
|
« Last Edit: December 10, 2007, 05:59:40 PM by Awesoft »
|
Logged
|
|
|
|
|
Mars
|
 |
« Reply #4 on: December 10, 2007, 07:00:13 PM » |
|
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>
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #5 on: December 10, 2007, 07:48:26 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.
|
|
|
|
|
Logged
|
|
|
|
|
rejetto forum
|
 |
« Reply #5 on: December 10, 2007, 07:48:26 PM » |
|
Do you like this software?
Consider even $2
|
|
|
|
|
Logged
|
|
|
|
|
Awesoft
|
 |
« Reply #6 on: December 11, 2007, 12: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")  
|
|
|
|
« Last Edit: December 12, 2007, 07:37:08 PM by Awesoft »
|
Logged
|
|
|
|
|
Mars
|
 |
« Reply #7 on: December 12, 2007, 07:38:30 PM » |
|
your template has a section [up]
can you copy it into a post?
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #8 on: December 12, 2007, 07:44:29 PM » |
|
as mars guessed, the [up] of your template is probably not compatible.
it should link to ".."
|
|
|
|
|
Logged
|
|
|
|
|
Mars
|
 |
« Reply #9 on: December 12, 2007, 07:51:25 PM » |
|
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
|
|
|
|
|
Logged
|
|
|
|
|
Awesoft
|
 |
« Reply #10 on: December 13, 2007, 05:24:12 PM » |
|
Main "shared" page:  Searching a file:  After a search. (UP button (Atrás) should link to "/Privado/Programas/") 
|
|
|
|
|
Logged
|
|
|
|
|
Mars
|
 |
« Reply #11 on: December 13, 2007, 05:59:47 PM » |
|
The conclusion is that you have no problem, what you obtain is completely normal  Be delighted!  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>
|
|
|
|
« Last Edit: December 13, 2007, 06:08:34 PM by mars »
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #12 on: December 14, 2007, 09:59:16 AM » |
|
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 
|
|
|
|
|
Logged
|
|
|
|
|
Awesoft
|
 |
« Reply #13 on: December 14, 2007, 02: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.
|
|
|
|
« Last Edit: December 14, 2007, 03:02:44 PM by Awesoft »
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #14 on: December 15, 2007, 03:48:35 AM » |
|
i'll work on it
|
|
|
|
|
Logged
|
|
|
|
|