Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11781
Latest: tumovilexperts
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40990
Total Topics: 7177
Most Online Today: 38
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 42
Total: 43

Author Topic: Search box?  (Read 850 times)

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 24
  • 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.,?

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: 15469
    • 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

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 24
  • 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.

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: 15469
    • 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

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 24
  • 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!

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: 15469
    • 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

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 24
  • 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!

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
1 Replies
4163 Views
Last post August 14, 2008, 07:19:56 pm
by SMFHacks
2 Replies
3714 Views
Last post November 22, 2008, 10:49:35 am
by gibbs
0 Replies
2361 Views
Last post September 11, 2009, 06:58:59 am
by Sicarius
2 Replies
3696 Views
Last post February 06, 2014, 08:21:06 am
by Jonas1975
1 Replies
1650 Views
Last post March 20, 2015, 10:53:55 pm
by SMFHacks

+- Recent Topics

Translation of the submenu. by Panoulis64
July 14, 2021, 09:31:41 am

Database error by SMFHacks
July 11, 2021, 09:17:02 pm

SMF 2.1 RC4 Released by SMFHacks
July 10, 2021, 11:05:08 am

Videos and server resources? by SMFHacks
July 09, 2021, 09:29:40 am

Where are original uploaded files stored? by robgratt
June 20, 2021, 12:41:48 pm

Errors for nonexistent members by Krash
June 14, 2021, 09:51:47 pm

Error message: cannot access upload path by SMFHacks
June 08, 2021, 10:06:22 am

How to change order of the Classifieds board by SMFHacks
May 31, 2021, 09:57:36 am

Standard version of Downloads mod value missing by SMFHacks
May 25, 2021, 11:32:48 pm

Privacy Link by SMFHacks
May 14, 2021, 11:11:51 am

Powered by EzPortal