Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12391
Latest: ACS
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40455
Total Topics: 7111
Most Online Today: 65
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 46
Total: 46

Author Topic: Search box?  (Read 418 times)

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 11
    • 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: 15217
    • 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: 11
    • 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: 15217
    • 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: 11
    • 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: 15217
    • 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: 11
    • 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
4076 Views
Last post August 14, 2008, 07:19:56 pm
by SMFHacks
2 Replies
3515 Views
Last post November 22, 2008, 10:49:35 am
by gibbs
0 Replies
2288 Views
Last post September 11, 2009, 06:58:59 am
by Sicarius
2 Replies
3356 Views
Last post February 06, 2014, 08:21:06 am
by Jonas1975
1 Replies
1493 Views
Last post March 20, 2015, 10:53:55 pm
by SMFHacks

+- Recent Topics

Problem mit PHP 7.3 + 7.4 by SMFHacks
November 26, 2020, 09:13:20 am

End of Year Sale SMFHacks 2020 by SMFHacks
November 24, 2020, 08:35:13 pm

[Mod] Tagging System by SMFHacks
November 23, 2020, 06:25:59 pm

Additional Recommendations for SMF Store by SMFHacks
November 20, 2020, 11:19:13 pm

smf gallery Pro --> link to yotube/vimeo? Web Responsive to clik images? by Rock Lee
November 19, 2020, 10:10:37 pm

Payment method by SMFHacks
November 10, 2020, 11:54:47 pm

Need Help with Coppermine Conversion by SMFHacks
November 04, 2020, 01:24:09 pm

Feature Request for Classifieds by SMFHacks
October 21, 2020, 10:30:17 pm

[Mod] ezPortal by Alistair
October 18, 2020, 11:00:17 am

ezPortal homepage on mobile browser (SMF 2.1 RC3) by Alistair
October 18, 2020, 05:47:56 am

Powered by EzPortal