Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11792
Latest: aussielapidaryforum
New This Month: 5
New This Week: 2
New Today: 0
Stats
Total Posts: 41409
Total Topics: 7255
Most Online Today: 85
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 33
Total: 34

Author Topic: Search box?  (Read 953 times)

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • Full Member
  • ***
  • Posts: 103
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Search box?
« on: October 10, 2020, 11:33:22 am »
How can I make the top "default" search box (drop down) where it searches the forum or the classifieds like SMF has on their site for Modifications and Themes etc.,?

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15663
    • View Profile
Re: Search box?
« Reply #1 on: October 10, 2020, 11:53:51 am »
That would have to be custom code. You would make one dropdown toggle the search function of SMF and the other toogle Search Classifieds.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Shades

  • Full Member
  • ***
  • Posts: 103
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Search box?
« Reply #2 on: October 10, 2020, 12:12:06 pm »
I have my site set up to default to the classifieds which makes the smf search box useless so I need to change it to search the classifieds and not the forum or maybe for both.

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15663
    • View Profile
Re: Search box?
« Reply #3 on: October 10, 2020, 12:31:00 pm »
If you only want the classifieds
You would edit index.template.php find the search editor change the form action from
index.php?action=search
To
index.php?action=classifieds;sa=search i belive
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Shades

  • Full Member
  • ***
  • Posts: 103
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Search box?
« Reply #4 on: October 10, 2020, 12:53:26 pm »
If you only want the classifieds
You would edit index.template.php find the search editor change the form action from
index.php?action=search
To
index.php?action=classifieds;sa=search i belive

Ok thanks will try that but would be nice if It would search both or have a drop down to search either one. Thanks for the help!

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15663
    • View Profile
Re: Search box?
« Reply #5 on: October 10, 2020, 12:59:57 pm »
This mod can probably be customized to do that
https://custom.simplemachines.org/mods/index.php?mod=1634
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Shades

  • Full Member
  • ***
  • Posts: 103
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Search box?
« Reply #6 on: October 10, 2020, 01:13:00 pm »
That looks interesting! I'll play around with it and see if I can get it to work for my needs thanks!

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2370 Views
Last post September 11, 2009, 06:58:59 am
by Sicarius
2 Replies
3914 Views
Last post February 06, 2014, 08:21:06 am
by Jonas1975
1 Replies
1703 Views
Last post March 20, 2015, 10:53:55 pm
by SMFHacks
5 Replies
196 Views
Last post August 12, 2021, 01:00:55 pm
by Anmer
2 Replies
184 Views
Last post August 31, 2021, 11:04:38 pm
by Hatshepsut

+- Recent Topics

Import downloads by SMFHacks
September 26, 2021, 05:48:03 pm

Errors with 5.0.6 version by Hatshepsut
September 24, 2021, 10:21:24 pm

Forum ToolBox by mickjav
September 23, 2021, 03:20:07 pm

Ads Description is running into Ad Location by Shades
September 23, 2021, 09:56:42 am

S3 System For SMF Attachments by SMFHacks
September 21, 2021, 05:46:38 pm

Boards Icon by mickjav
September 18, 2021, 02:13:43 pm

Search Word Limit by SMFHacks
September 17, 2021, 08:41:01 pm

Item not appearing in category by SMFHacks
September 17, 2021, 08:39:45 pm

Undefined index: gallery_ad_seller by Shades
September 17, 2021, 01:23:10 pm

What happens if? by SMFHacks
September 14, 2021, 10:25:07 pm

Powered by EzPortal