Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 270
Total: 271

Author Topic: Forum Search Box  (Read 4748 times)

0 Members and 1 Guest are viewing this topic.

Offline gibbs

  • Member
  • *
  • Posts: 33
  • Using SMF Gallery and Classifieds
    • View Profile
Forum Search Box
« on: November 14, 2008, 09:57:12 am »
Dear support,

When I visit the home page to my forum, is there a way of making the Forum Search box include classified listings? Whenever I search, it just shows results from the forum and not the classifieds.

If that is not going to be possible, can you possibly suggest a code alteration I can make to the forum code to make the forum search box actually the Classifieds search box instead?

Basically, I need people to search the classifieds more than the forum itself as my site is primarily a classified ad site.

Thank you in advance for you help.

Offline gibbs

  • Member
  • *
  • Posts: 33
  • Using SMF Gallery and Classifieds
    • View Profile
Re: Forum Search Box
« Reply #1 on: November 21, 2008, 04:43:59 pm »
Just wondering if anyone has any ideas please? cheers.

Offline gibbs

  • Member
  • *
  • Posts: 33
  • Using SMF Gallery and Classifieds
    • View Profile
Re: Forum Search Box
« Reply #2 on: November 22, 2008, 10:49:35 am »
Well if anyone else is trying to do the same, I have managed to at least remove the default forum search in order to force users to use the classifieds search. I edited the index.template.php and removed the following code at Line 351:

Code: [Select]
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
6640 Views
Last post October 04, 2006, 09:20:49 pm
by SMFHacks
2 Replies
5120 Views
Last post September 02, 2007, 09:17:26 am
by SMFHacks
0 Replies
3072 Views
Last post August 28, 2007, 04:12:45 am
by Mopulinchen
0 Replies
3260 Views
Last post February 16, 2009, 03:42:13 pm
by GadgetGeek
7 Replies
5378 Views
Last post June 08, 2011, 09:23:27 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal