Is there a code i can get that will let me put a search box for my forum?
Is there a code i can get that will let me put a search box for my forum?
Sorry, could you be a bit more specific?
Do you mean in the same way that Slip and Wrighty's skin has one?
Do you mean in the same way that Slip and Wrighty's skin has one?
Yea, but not that same look. I tried making one, but i cant get it to search. heres what it looks like
Clicky
I just want it to search my boards and stuff. Same feature as the one here kind of, but different look.
I'm just wondering, can't you just press Ctrl+F?
I'm just wondering, can't you just press Ctrl+F?
That just searches for text on the current page.
Oh. My bad.
I'll get this to you after school if it's not been looked at by then.
Thanks Marc,
I dont think ill be back on until Friday though.
Marc, are you still working on this?
Marc, are you still working on this?
I was hoping to get my sexy project done today, but I'll hopefully be able to get to this after. If you want to do it, that's also fine.
I will simply post the one that I coded for the default vF skin. I have removed one or two things that aren't needed. I have made the parts that do the 'searching' red. If you have any questions, simply ask!
<script>
function search(){
if(get('search','id').value != ''){
location.href = '/action/search/search_words/' + get('search','id').value;
}else{
get('search','id').value = '';
}
}
</script>
<form action="javascript:void(0);" onsubmit="search();">
<input type="text" id="search">
<a onclick=search();>
Search!
</a>
</form>
As you can see, it's fairly simple to do. All that you have to make sure is that the form 'action' to 'javascript:void(0)' => so that it doesn't submit & also, make it submit to the search function. Also, make the link 'Search!' go to the same function.
Again, if you don't understand, let me know!
Yea, sorry, i dont understand. When i put the code in, the serach button wont search. It has a link hover effect but when i click it its not taking me anywhere.
a Forum Link?