Link to Mod (http://mods.simplemachines.org/index.php?mod=297)
This mod adds a "Search Topic" field in the display template, as seen in the picture below:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg82.imageshack.us%2Fimg82%2F2726%2Fsearchtopic6ea.png&hash=d59d4e97d30ad098ad8c7f1541ddebc76363c1e2)
what does this mod do?
does it search for something inside the topic?
or search for some topic itself ?
no proper discription or explanation has been provided..
Quote from: Prasad007 on March 14, 2006, 07:29:55 AM
what does this mod do?
does it search for something inside the topic?
or search for some topic itself ?
no proper discription or explanation has been provided..
It adds a field in display.template.php. When you search it, it searchs all the posts in that particular topic.
Demo: http://www.squareeggs.ecwhost.com/smf/index.php?topic=2.0
okay thanks! :)
very good initiative !!! :P
kewl!
this should come in handy. ;)
I like it very much but when you have time can you do it for smf 1.0.5 or 1.0.6, cause those are the latest and final versions of SMF - RC2 is still beta.
Thank you!
i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.
Nice try :)
Quote from: ivo2296 on May 05, 2006, 12:18:21 AM
i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.
Nice try :)
this mod doesn't work on 1.0.7.
Quote from: winrules on May 05, 2006, 03:37:22 PM
Quote from: ivo2296 on May 05, 2006, 12:18:21 AM
i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.
Nice try :)
this mod doesn't work on RC2.
I didn't say that i'm using RC2?!?
this mod works great... I've customized it even.
Quote from: ivo2296 on May 05, 2006, 10:39:07 PM
Quote from: winrules on May 05, 2006, 03:37:22 PM
Quote from: ivo2296 on May 05, 2006, 12:18:21 AM
i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.
Nice try :)
this mod doesn't work on RC2.
I didn't say that i'm using RC2?!?
*bangs head*
this mod doesn't work for 1.0.7, only 1.1RC2.
I modified it as well. Anyone help with the code? i got rid of the search box, cause it didnt work with my theme, and added some text that says "Search Topic". How do i make it to when they go to type something in it erases what i have there so they can type something in??
You would have to use javascript. You should probobally post in the scripting help board.
The only reason that i posted it here is that i went to Teknomancers site and he has it that way.
Teknomancer how did you get it to do that lol
How to get this mod to work on other themes ?
works great, thanks :D
Vinspire, look here: http://docs.simplemachines.org/index.php?topic=402
Quote from: winrules on June 01, 2006, 04:00:00 PM
Vinspire, look here: http://docs.simplemachines.org/index.php?topic=402
Thanks :)
Quote from: HaxXxoR on May 30, 2006, 06:20:16 PM
I modified it as well. Anyone help with the code? i got rid of the search box, cause it didnt work with my theme, and added some text that says "Search Topic". How do i make it to when they go to type something in it erases what i have there so they can type something in??
I'm wondering the same thing as well. Normally it can be done by inserting an 'onfocus' into the input textfield. I've checked Teknomancer's page and apparently that was what he did also. But I cant get the onfocus to work inside an echo function, I wonder what he did for it to work.
Version 1.01 has been released! This version adds support for 1.1 RC3.
Any reason why an Install link isn't showing in my package manager for this one? Using 1.3.
Quote from: randyripoff on September 05, 2006, 08:28:07 PM
Any reason why an Install link isn't showing in my package manager for this one? Using 1.3.
Do you mean 1.1 RC3?
D'oh!
I meant 1.08/1.1 RC3
Which one? 1.0.8 or 1.1 RC3?
Sorry, thought they were pretty much the same. 1.08.
I only works on 1.1 RC2/3.
Ah, okay.
Are there plans to upgrade soon?
Quote from: randyripoff on September 06, 2006, 07:28:09 PM
Ah, okay.
Are there plans to upgrade soon?
I won't be making it for 1.0.8. You can upgrade though.
Any help with the classic theme of smf 1.1 RC3 please?
Quote from: ivo2296 on September 24, 2006, 10:24:54 PM
Any help with the classic theme of smf 1.1 RC3 please?
Take a look at these:
http://www.simplemachines.org/community/index.php?topic=34526.0
http://docs.simplemachines.org/index.php?topic=402
Quote from: akabugeyes on September 24, 2006, 10:33:52 PM
Quote from: ivo2296 on September 24, 2006, 10:24:54 PM
Any help with the classic theme of smf 1.1 RC3 please?
Take a look at these:
http://www.simplemachines.org/community/index.php?topic=34526.0
http://docs.simplemachines.org/index.php?topic=402
There nothing for smf 1.1 RC3 - RC3 code has many changes, but i'll give a try myself.
Thanks for the links!
Will this work on 1.1 Final as is or will I need to wait for an update?
It doesn't work on 1.1 Final
It will work in 1.1. You just need to add ;version_emulate=1.1-RC3 to the end of the package manager url.
Thanks. I did it, but I get again error for compatibility. Perhaps I did something wrong.
Very cool, just added this to my 1.1.1. forum and made the changes manually to my display.template.php file :)
Ι did it too, but i have a small display problem.
Can anyone tell me how to correct this?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg337.imageshack.us%2Fimg337%2F1362%2Fsearchtopicps9.th.png&hash=5fc190a1101e73cabc47005c3a80f8b7fdd705f0) (http://img337.imageshack.us/my.php?image=searchtopicps9.png)
I want the search button to appears on the left of search field, in the same line.
This is the code and in bold, the small changes that I have made:
Quote<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>winrules:SearchTopic</id>
<version>1.01</version>
<file name="$themedir/Display.template.php">
<operation>
<search position="replace"><![CDATA[
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>
]]></search>
<add><![CDATA[
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' (', $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: 120px;" />
<input type="submit" name="submit" value="Αναζήτηση στο θέμα(Search Topic in greek language)" style="width: 25ex;" />
</form>
</td>
]]></add>
</operation>
</file>
</modification>
Thanks :)
Here is a little modification for the german language:
<!--Search topic-->
<td>
<form action="', $scripturl, '?action=search2;topic=', $context['current_topic'], '" method="post" style="margin: 0;">
<input type="text" name="search" style="width: 190px;" value="Thema durchsuchen" onFocus="if (this.value==\'Thema durchsuchen\') this.value = \'\';" onBlur="if (this.value==\'\') this.value=\'Thema durchsuchen\';"/>
<input type="submit" name="submit" value="Los" style="width: 6ex;" />
</form>
</td>
<!-- Search topic end -->
But you all feel free to change every "Thema durchsuchen" to e.g. "Topic Search"
and
the "Los"-Button to e.g. "Go" or something else.
Regards
FoneBone
Hi,
I modified the hack, so it uses a variable for "Search Topic", so it can be translated w/o hard coding stuff. German and English included, I chose "Thema durchsuchen" btw. *gg*
Does it have to be changed to work with 1.1.2.?
Quote from: URPG on February 13, 2007, 05:46:36 AM
Does it have to be changed to work with 1.1.2.?
No.
Quote from: winrules on February 13, 2007, 05:20:34 PM
Quote from: URPG on February 13, 2007, 05:46:36 AM
Does it have to be changed to work with 1.1.2.?
No.
Question: I'm running 1.1.2, had to do a super clean out and reinstall all mods, but got everything working. Search Topic is the last mod I added after the cleanout. It installed, appears to be working, BUT ... on the package manager, it did NOT give me the uninstall option. Is this an upgrade issue, a package manager issue, or something that I can fix by adding a line or 12 of coding somewhere. If I can fix it, where and what do I add?
Thanks in advance! I had so much trouble with the uninstall options disappearing after the upgrade from 1.0.X to 1.1.1 to 1.1.2 I just don't want to risk installing anything else if even one mod isn't 100%.
i install it on 1.1.2 and its work without any problem! very usefull mod !!!!
winrules this mod is great but i think you should add uninstall info too ..
this mod sholud be implement into official smf forum special for topics that have 80+ pages...
This topic is interesting to me, as I am looking for ways to improve searching in my forum. Recently, I have learned that the SMF search functions don't work as well as I had hoped. Perhaps this modification could help?
I'm running 1.1.2.
Thanks!
This Mod doesn't look like the one on the screenshot.
The search Button is not to the right of the searchfield - perhaps someone knows how to fix this ?
I'm running my Forum with Several Languages, but now the Search-Button is hardcoded to the "Display.template.php" - perhaps you could add multilang-support ?
Otherwise it seems to run fine :D
Its pointless to run on 1.1.2 because with the quick search you can do it anyway.. o
How can i uninstall this mod?
Thanks
Quote from: Gourgi on March 18, 2007, 08:57:05 PM
winrules this mod is great but i think you should add uninstall info too ..
True.
The uninstall issue is a very minor fix...unpack the archive...open package-info.xml and change line 16 to:
<uninstall for="1.1 - 1.1.99">
Archive the folder again and it's done.
It doesn't get much easier...
Well done. Thanks
My pleasure...below is an amended version as per my last posting...those who already have the mod installed and wish to uninstall it should first upload this version to their Packages directory replacing the existing file then uninstall via the package manager in the usual way.
If the uninstall is shown as a fail in the package manager testing then that merely means that another mod or mods have altered the files it seeks to address and you will have to use the information in the following link to uninstall manually by reversing the process there described.
http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)
Great it works on 1.1.3 :P
Quote from: kamili34 on July 03, 2007, 04:44:26 PM
Great it works on 1.1.3 :P
Yes but read http://www.simplemachines.org/community/index.php?topic=75893.msg1070229#msg1070229 (http://www.simplemachines.org/community/index.php?topic=75893.msg1070229#msg1070229)
But when I install this mod I add
<install for="1.1.3,1.1 - 1.1.99"> and
<uninstall for="1.1.3,1.1 - 1.1.99">
:)
It's not generally a good idea to do that as newer versions of SMF that don't exist at this time may not work with this mod and adding versioning, as you have suggested, makes an assumption that they will work with it.
as you have suggested, makes an assumption that they will work with it.
I don't know what you think about :)
I don't understand your question; please restate it.
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!
Is this going to be updated for 1.1.3?
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!
is there a way to change font color or size that members can easily notice that button??
Look at the modification.xml file in the package...in it see the style settings...fiddle with them if you so wish
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; " />
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg156.imageshack.us%2Fimg156%2F9933%2Fsearchtopicij8.jpg&hash=9b2a6cba9eb809e6b3bae09283b22356d66cd28e)
For each theme find in Display.template.php:
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' (', $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;" />
<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'], ' (', $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;" />
<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.
Will this work with 1.1.4?
Can't tell you for sure but probably.
Thank you winrules! I installed it and appears to be working just fine ;)
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.
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
Works great on 1.1.5 :)
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?