The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

the search box on forums is it available for sharing

2 posters

Go down

In progress the search box on forums is it available for sharing

Post by Michael_vx July 6th 2015, 12:55

the search box on forums is it available for sharing
i mean this
the search box on forums is it available for sharing  Untitl11
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

In progress Re: the search box on forums is it available for sharing

Post by Ange Tuteur July 7th 2015, 19:31

Hi @Michael_vx,

Yes, it's possible to share. It can be achieved either by adding it to the forum description, or by JavaScript; it depends on what you're trying to achieve. I can provide you with the search form for phpbb3, of course the form will work on any version, but the classes are mainly for phpbb3.

Here's the HTML :
Code:
<form method="get" action="/search?search_where=42">
  <input name="search_keywords" class="inputbox search" value="Search..." onclick="if (this.value == 'Search...') this.value = '';" onblur="if (this.value == '') this.value = 'Search...';" type="text">
  <input class="button2" value="Search" type="submit">
</form>

Replace the number 42 after search_where= by the forum ID you want the search to be performed in.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: the search box on forums is it available for sharing

Post by Michael_vx July 7th 2015, 22:01

some questions
what is better in use the forum description code or the JavaScript one
also should it be manual only in other word is it can be used by auto mod on each forum without needing to add the forum ID
i know its may be a bit stupid from me to ask such a weird questions but if auto wont be easy ?
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

In progress Re: the search box on forums is it available for sharing

Post by Ange Tuteur July 7th 2015, 22:25

If you want to have it for specific forums, adding it to the forum description is the way to go. If you want it automated JavaScript is the way to go, plus you can also add a filter if need be. If you're wanting a JavaScript, I'd need to know the forum version.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: the search box on forums is it available for sharing

Post by Michael_vx July 7th 2015, 22:33

most of forums of my Friends is phpbb2
there less using other versions because phpbb2 is the most styles one and easy to make styles for it as i was also when i was using forumotion
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum