rejetto forum

can someone please help me figure this out

0 Members and 1 Guest are viewing this topic.

Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
I am making my template, without login. I made a button for uploads but when i make my button for search, it wont work lol. Here is what i got

<div align="center"><td class="btnav" onmouseover="style.backgroundColor='blue';"
onmouseout="style.backgroundColor='#00ff00'"><div class="search button">
<a href="{.!search.}"title="Search files on this server">
<button style="width:120px;height:30px;border-top-color:#00ff00;
border-left-color:#00ff00;
border-right-color:#00ff00;
border-bottom-color:#00ff00; background-color:#000000";><b><FONT SIZE="-1""font color="#00ff00">Search</FONT><b>
</button></a>
<input name=search size=20 value="{.?search.}">

Can anyone tell me what im doing wrong? thanks in advance


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
you need to use a form that sends the value you are searching to a urlvar called 'search'.

try looking in the rawr designs board for their search code to have a look at how it works.


Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
thanks foggy i will check into that...this been driving me nuts for 2 days now lol.


Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
ok im lost lol...I had this for my search and it worked. If i try to make a colored button with the code mentioned above it shows up fine but dont work.

<div class=button>
<form style='width:160px'>
<input name=search size=10 value="{.?search.}">
<input type=submit value="{.!search.}">
</form>



Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
try this, I haven't tested it so I'm not sure if it will work.

<div class=button>
<form style='width:160px' action='%folder%' method='get'>
<input name=search size=10 value="{.?search.}">
<input type=submit>
</form>


Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
I figured it out lol

<TD><div align="center"><div class=button>
<form style='width:163px' action='%folder%' method='get'>
<center><button style="width:120px;height:30px;border-top-color:#00ff00;
border-left-color:#00ff00;
border-right-color:#00ff00;
border-bottom-color:#00ff00; background-color:#000000";><b><FONT SIZE="-1""font color="#00ff00">Search</FONT><b><value="{.?search.}">
</button></a><center><br>
<input name=search size=23 value="{.?search.}"></TD>

 :)


Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
how do i change the size of the box that has Filename,Filesize,Filetime, and Hits in it so it doesnt take up the whole width of the screen?


Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
I want to put a table on the right side of the screen next to that table..Does anyone know how?