Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12392
Latest: jimcarter
New This Month: 4
New This Week: 1
New Today: 1
Stats
Total Posts: 40375
Total Topics: 7106
Most Online Today: 38
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 24
Total: 24

Author Topic: Search box?  (Read 249 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: 15177
    • 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: 15177
    • 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: 15177
    • 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
4055 Views
Last post August 14, 2008, 07:19:56 pm
by SMFHacks
2 Replies
3490 Views
Last post November 22, 2008, 10:49:35 am
by gibbs
0 Replies
2270 Views
Last post September 11, 2009, 06:58:59 am
by Sicarius
2 Replies
3336 Views
Last post February 06, 2014, 08:21:06 am
by Jonas1975
1 Replies
1474 Views
Last post March 20, 2015, 10:53:55 pm
by SMFHacks

+- Recent Topics

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

Search box? by Shades
October 10, 2020, 01:13:00 pm

Attachment images Upsidedown or Sideways by Shades
September 27, 2020, 07:01:31 am

Installing Awesome Post Ratings on non-default theme by SMFHacks
September 26, 2020, 11:54:25 pm

Listings page image not showing by Shades
September 23, 2020, 03:05:06 pm

prettyurls - TroubleShooting.wiki by SMFHacks
September 22, 2020, 04:24:47 pm

Quality of images after import by SMFHacks
September 05, 2020, 10:21:44 am

How do I download gallery images? by CWVRV
August 30, 2020, 11:50:07 pm

Powered by EzPortal