vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Search Box - View Topic
Topic Rating: *****
Printable View
This topic was locked 8th Apr 08 at 5:11pm by Michael
-Sinister-
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pmyahooxfire
Search Box (25th Mar 08 at 11:20pm UTC)
Is there a code i can get that will let me put a search box for my forum?
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Search Box (25th Mar 08 at 11:47pm UTC)
 
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?

rroll.to— Shorten a link, rickroll your friends.
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 39
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Search Box (25th Mar 08 at 11:53pm UTC)
Do you mean in the same way that Slip and Wrighty's skin has one?
-Sinister-
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pmyahooxfire
Re: Search Box (26th Mar 08 at 12:04am UTC)
 
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.
Pixel Drixel (gfxman)
New Member
*

Posts: 38
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: Search Box (26th Mar 08 at 12:17am UTC)
I'm just wondering, can't you just press Ctrl+F?

Image

My Deviant Art: http://tinyurl.com/49lpzr
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Search Box (26th Mar 08 at 12:20am UTC)
 
I'm just wondering, can't you just press Ctrl+F?


That just searches for text on the current page. {Wink}

rroll.to— Shorten a link, rickroll your friends.
Pixel Drixel (gfxman)
New Member
*

Posts: 38
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: Search Box (26th Mar 08 at 12:28am UTC)
Oh. My bad.

Image

My Deviant Art: http://tinyurl.com/49lpzr
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Search Box (26th Mar 08 at 3:30am UTC)
I'll get this to you after school if it's not been looked at by then. {Smile}

rroll.to— Shorten a link, rickroll your friends.
-Sinister-
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pmyahooxfire
Re: Search Box (27th Mar 08 at 1:02am UTC)
Thanks Marc,

I dont think ill be back on until Friday though.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Search Box (29th Mar 08 at 5:01pm UTC)
Marc, are you still working on this?
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Search Box (29th Mar 08 at 6:00pm UTC)
 
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. {Smile} If you want to do it, that's also fine.

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Search Box (31st Mar 08 at 12:00pm UTC)
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! {Smile}

<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! {Smile}
-Sinister-
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pmyahooxfire
Re: Search Box (1st Apr 08 at 11:25pm UTC)
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.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Search Box (1st Apr 08 at 11:26pm UTC)
a Forum Link? {Smile}
 Printable View

All times are GMT+0 :: The current time is 2:02pm
Page generated in 0.3716 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums