rejetto forum
May 25, 2012, 02:00:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: "Search" button redirects to main page...  (Read 2536 times)
0 Members and 2 Guests are viewing this topic.
Awesoft
Experienced poster
***
Offline Offline

Posts: 30


View Profile Email
« 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
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #1 on: December 10, 2007, 04: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

« Last Edit: December 10, 2007, 04:37:48 PM by mars » Logged
Awesoft
Experienced poster
***
Offline Offline

Posts: 30


View Profile Email
« Reply #2 on: December 10, 2007, 04: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.
Logged
Awesoft
Experienced poster
***
Offline Offline

Posts: 30


View Profile Email
« 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)

Undecided
« Last Edit: December 10, 2007, 05:59:40 PM by Awesoft » Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« 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 Offline

Italy Italy

Posts: 11829


View Profile
« 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
Experienced poster
***
Offline Offline

Posts: 30


View Profile Email
« 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")

 Huh?

« Last Edit: December 12, 2007, 07:37:08 PM by Awesoft » Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« 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 Offline

Italy Italy

Posts: 11829


View Profile
« 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
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« 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
Experienced poster
***
Offline Offline

Posts: 30


View Profile Email
« 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
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #11 on: December 13, 2007, 05:59:47 PM »

The conclusion is that you have no problem, what you obtain is completely normal Cheesy

 Grin  Be delighted!  Grin

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 Offline

Italy Italy

Posts: 11829


View Profile
« 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 Smiley
Logged
Awesoft
Experienced poster
***
Offline Offline

Posts: 30


View Profile Email
« 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 Smiley

Thank you.
« Last Edit: December 14, 2007, 03:02:44 PM by Awesoft » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #14 on: December 15, 2007, 03:48:35 AM »

i'll work on it
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page April 29, 2012, 05:23:59 AM
anything