News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Search Topic

Started by winrules, March 12, 2006, 05:45:54 PM

Previous topic - Next topic

Matthew Schenker

#60
This is something my members have wanted for a long time!

I'm running 1.1.3. The "Search" option from the main menu is great. But the Search function with the little magnifying glass confuses people.  It searches in the current topic, but it's not clear that this is what it does and some members assume it's searching the whole board.

With this modification, they will know they are searching that topic.

If I install this modification, how would I uninstall the magnifying glass search feature currently on my board?

Thanks for doing the work on this!

Sulgicur

Is this going to be updated for 1.1.3?

Matthew Schenker

I'm also hoping that the search feature is changed a bit.  The function works great in my forum, bringing up results quickly.  But the distinction between searching the whole forum or searching specific boards needs to be better.

Looking forward to using 2.0!

Farmacija

is there a way to change font color or size that members can easily notice that button??
www.farmaceuti.com
www.farmaceuti.com/tekstovi

TrueSatan

Look at the modification.xml file in the package...in it see the style settings...fiddle with them if you so wish

Farmacija

this part sholud correct with whatever yo want i put the bold red font color
<input type="submit" name="submit" value="Search Topic" style="width: 18ex; color: red; font-weight: bold; " />
www.farmaceuti.com
www.farmaceuti.com/tekstovi

noelchiew

How do I make the search field and button to be on the same line. This is how it looks like in my forum after installing.


TrueSatan

For each theme find in Display.template.php:


<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>
<td>
<form action="', $scripturl, '?action=search2;topic=', $context['current_topic'], '" method="post" style="margin: 0;">
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="Search Topic" style="width: 18ex;" />
</form>
</td>


Replace with:


<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
<form action="', $scripturl, '?action=search2;topic=', $context['current_topic'], '" method="post" style="margin: 0;">
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="Search Topic" style="width: 18ex;" />
</form>
</td>


If a theme doesn't have a Display.template.php file of its own it should automatically use the one from the SMF default theme but sometimes this doesn't work...in such cases copy the SMF Default theme Display.template.php file to the theme(s) that don't have the file of the same name.

58tbird

Will this work with 1.1.4?

winrules

Can't tell you for sure but probably.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


58tbird

Thank you winrules!  I installed it and appears to be working just fine  ;)

Force73

Works nice with SMF 1.1.5 -  I've changed the layout to fit in my Theme:

http://www.highfield-forum.de/board/index.php?topic=52.0

On every page of the topic there is the "Diesen Beitrag durchsuchen"-Line, right above. It's nice! Thank you.

GMCbris

Quote from: Force73 on June 06, 2008, 03:05:24 PM
Works nice with SMF 1.1.5 -  I've changed the layout to fit in my Theme:

http://www.highfield-forum.de/board/index.php?topic=52.0

On every page of the topic there is the "Diesen Beitrag durchsuchen"-Line, right above. It's nice! Thank you.

As with a lot of Mods - I cant get them to work as the "Find this" code is generally not in my theme

Can you share with me your code - so that I can see if I can make it work in my theme

Thanks

GMC

Kimmie

Works great on 1.1.5 :)

Phat^Trance

works fine on 1.1.7 BUT the search box looks very ugly! can this be fixed?

heres an screenshot: http://i42.tinypic.com/2obps.jpg

is it possible to have the search button to the right of the search box instead of under it?
Daily Mobile Blog:  http://dailymobile.se/
Daily iPhone Blog: http://dailyiphoneblog.com/
Daily Mobile forum: http://forum.dailymobile.se/

Advertisement: