Search Enhancement Mod

Started by ioszilla, August 12, 2007, 05:53:15 PM

Previous topic - Next topic

yume_kokoro

Quote from: wordzilla on August 30, 2007, 12:12:54 AM
thx for using my mod. :)

I tried a few searches on your forum - it worked well but not as best as it could.

Just a reminder: To get the most out of this mod, make sure you follow the instructions in this post and configure your SMF accordingly - no hassles and takes only a minute.


Oh cool - thanks for the tip.  I've made those changes and it does seem a lot better.   :)
wtf-anime.com [nofollow]
Looking for Anime/Manga sites to Affiliate with.
Contact via http://wtf-anime.com/index.php?action=contact [nofollow]

Doughboy

Quote from: wordzilla on August 30, 2007, 09:32:51 AM
This is not a bug, but intended behavior, as described here:  http://www.simplemachines.org/community/index.php?topic=188513.msg1200269#msg1200269  :)

I think in most cases people will prefer searching entire forum to searching within individual boards/topics. Therefore "entire forum" is the default scope of search unless specified otherwise.


I haven't yet tested it on 1.1.2 but glad to know it's working for you. :)

If that's the intended behavior then it's working perfectly.  I wanted to make sure it was working fine.

I really love that drop down box, it helps a lot.

AON21

Hi there,
first time installer of SMF and this mod.

I have double checked the admin settings and they look fine, but I am getting this error.

//Begin DC SMF Search Text Strings$txt['specific_topic_id'] = 'Specific topic id';$txt['search_match_mode'] = 'Match Mode';$txt['search_match_mode_whole'] = 'Match whole words only - least results, least noise';$txt['search_match_mode_smart'] = 'Smart matching - balanced';$txt['search_match_mode_any'] = 'Match any sequence - most results, most noise';$txt['search_numReplies'] = 'Replies';$txt['search_match_mode_whole_short'] = 'Match whole words only';$txt['search_match_mode_smart_short'] = 'Smart matching';$txt['search_match_mode_any_short'] = 'Match any sequence';$txt['result_summary'] = 'Show/hide result summary';$txt['result_generated'] = 'Results generated using ';$txt['zillarank'] = 'ZillaRank';$txt['search_entireforum'] = 'Entire Forum';$txt['search_thisbrd'] = 'This board';$txt['search_thistopic'] = 'This topic';$txt['search_members'] = 'Members';$txt['search_entiresite'] = 'Entire Site';$txt['search_view_all'] = 'View all';$txt['search_match_criteria'] = 'posts in this topic that match your search criteria';$txt['search_go_to_top'] = 'Go to Top';$txt['search_go_to_top_single'] = 'Top';//END DC SMF Search Text Strings //Begin DC SMF Search Text Strings$txt['specific_topic_id'] = 'Specific topic id';$txt['search_match_mode'] = 'Match Mode';$txt['search_match_mode_whole'] = 'Match whole words only - least results, least noise';$txt['search_match_mode_smart'] = 'Smart matching - balanced';$txt['search_match_mode_any'] = 'Match any sequence - most results, most noise';$txt['search_numReplies'] = 'Replies';$txt['search_match_mode_whole_short'] = 'Match whole words only';$txt['search_match_mode_smart_short'] = 'Smart matching';$txt['search_match_mode_any_short'] = 'Match any sequence';$txt['result_summary'] = 'Show/hide result summary';$txt['result_generated'] = 'Results generated using ';$txt['zillarank'] = 'ZillaRank';$txt['search_entireforum'] = 'Entire Forum';$txt['search_thisbrd'] = 'This board';$txt['search_thistopic'] = 'This topic';$txt['search_members'] = 'Members';$txt['search_entiresite'] = 'Entire Site';$txt['search_view_all'] = 'View all';$txt['search_match_criteria'] = 'posts in this topic that match your search criteria';$txt['search_go_to_top'] = 'Go to Top';$txt['search_go_to_top_single'] = 'Top';//END DC SMF Search Text Strings

this appears in the header.
Now I do know why it appears twice; when I saw it there after a successful install, I went to the admin section assuming it was the search full textmode settings that were causing it.

I then uninstalled and ensured everything was set before installing again - now there are two.

Any help most welcome :)

P.S. This appears in all themes.

ioszilla

What exact error message were you getting? And could you attach a screenshot here?  Sorry I don't quite get the problem. :)

AON21

#84
Hi wordzilla - I copied it into the code above, but I will copy straight here...


appears above header:
//Begin DC SMF Search Text Strings $txt['specific_topic_id'] = 'Specific topic id'; $txt['search_match_mode'] = 'Match Mode'; $txt['search_match_mode_whole'] = 'Match whole words only - least results, least noise'; $txt['search_match_mode_smart'] = 'Smart matching - balanced'; $txt['search_match_mode_any'] = 'Match any sequence - most results, most noise'; $txt['search_numReplies'] = 'Replies'; $txt['search_match_mode_whole_short'] = 'Match whole words only'; $txt['search_match_mode_smart_short'] = 'Smart matching'; $txt['search_match_mode_any_short'] = 'Match any sequence'; $txt['result_summary'] = 'Show/hide result summary'; $txt['result_generated'] = 'Results generated using '; $txt['zillarank'] = 'ZillaRank'; $txt['search_entireforum'] = 'Entire Forum'; $txt['search_thisbrd'] = 'This board'; $txt['search_thistopic'] = 'This topic'; $txt['search_members'] = 'Members'; $txt['search_entiresite'] = 'Entire Site'; $txt['search_view_all'] = 'View all'; $txt['search_match_criteria'] = 'posts in this topic that match your search criteria'; $txt['search_go_to_top'] = 'Go to Top'; $txt['search_go_to_top_single'] = 'Top'; //END DC SMF Search Text Strings //Begin DC SMF Search Text Strings $txt['specific_topic_id'] = 'Specific topic id'; $txt['search_match_mode'] = 'Match Mode'; $txt['search_match_mode_whole'] = 'Match whole words only - least results, least noise'; $txt['search_match_mode_smart'] = 'Smart matching - balanced'; $txt['search_match_mode_any'] = 'Match any sequence - most results, most noise'; $txt['search_numReplies'] = 'Replies'; $txt['search_match_mode_whole_short'] = 'Match whole words only'; $txt['search_match_mode_smart_short'] = 'Smart matching'; $txt['search_match_mode_any_short'] = 'Match any sequence'; $txt['result_summary'] = 'Show/hide result summary'; $txt['result_generated'] = 'Results generated using '; $txt['zillarank'] = 'ZillaRank'; $txt['search_entireforum'] = 'Entire Forum'; $txt['search_thisbrd'] = 'This board'; $txt['search_thistopic'] = 'This topic'; $txt['search_members'] = 'Members'; $txt['search_entiresite'] = 'Entire Site'; $txt['search_view_all'] = 'View all'; $txt['search_match_criteria'] = 'posts in this topic that match your search criteria'; $txt['search_go_to_top'] = 'Go to Top'; $txt['search_go_to_top_single'] = 'Top'; //END DC SMF Search Text Strings


Here is the screen shot

ioszilla

Could you find and view your language file (Modifications.english.php) and see if there's any code block formatted like the following:


//Begin DC SMF Search Text Strings
$txt['specific_topic_id'] = 'Specific topic id';
$txt['search_match_mode'] = 'Match Mode';
$txt['search_match_mode_whole'] = 'Match whole words only - least results, least noise';
$txt['search_match_mode_smart'] = 'Smart matching - balanced';
$txt['search_match_mode_any'] = 'Match any sequence - most results, most noise';

$txt['search_numReplies'] = 'Replies';
$txt['search_match_mode_whole_short'] = 'Match whole words only';
$txt['search_match_mode_smart_short'] = 'Smart matching';
$txt['search_match_mode_any_short'] = 'Match any sequence';

$txt['result_summary'] = 'Show/hide result summary';

$txt['result_generated'] = 'Results generated using ';
$txt['zillarank'] = 'ZillaRank';

$txt['search_entireforum'] = 'Entire Forum';
$txt['search_thisbrd'] = 'This board';
$txt['search_thistopic'] = 'This topic';
$txt['search_members'] = 'Members';
$txt['search_entiresite'] = 'Entire Site';

$txt['search_view_all'] = 'View all';
$txt['search_match_criteria'] = 'posts in this topic that match your search criteria';

$txt['search_go_to_top'] = 'Go to Top';
$txt['search_go_to_top_single'] = 'Top';
//END DC SMF Search Text Strings

AON21

If Modifications.english.php is supposed to be in the root folder - then I'm up a creek without a paddle `cause it's not there :|

reinstall time?

ioszilla

I see you use the default theme, so you should be able to find the file in /Themes/default/.

AON21

got it :)

and surprise surprise - it has the error message in that php file.

(before I forget to mention it - thanks for the Lightning fast replies!)

AON21

there was a:
?>
above the duplicated section.

So I double-checked it was a perfect duplicate, removed one and put the:
?>
at the bottom.

Problem gone :)

Mohamed GadAllah

Hi
I've get this error during applying the mod.

Here are the installed mods:
Mod Name     Version     
1.    Advanced Visual Verification    1.2    
2.    Active Members In Topic    1.5    
3.    Display Age and Location next to posts    1.0    
4.    Akismet Spam Blocking    1.1.1    
5.    Alternativ Protocol Fix    1.0.1    
6.    Alternate Text for Member Group Images    0.3.1    
7.    SMF Archive    1.1    
8.    Attachments layout    1.2    
9.    AvatarSelect    1.1.2    
10.    Blabberizer    2.1u    
11.    ssi_boardNews Multiple Boards    1.0    
12.    Board News    1.2.2    
13.    Board Notes    1.0.7    
14.    Board Registration Password    2.0    
15.    Bookmarks    1.0.1    
16.    Buddy Message Highlight    1.2    
17.    Enhanced Calendar    1.1    
18.    cbi, 1.0    1.0    
19.    British English Spelling Of Centre & Colour BBCode    1.0    
20.    Contact Page    1.1    
21.    Count unread topics on index    1.1    
22.    Custom Board Sort    1.0.1    
23.    Custom Edit Times    1.1    

Please note that I am using SMF 1.1.3 and all MODs above are up2date
Also the red mentioned file (Search.template.php) is CHMODed to 777
Also the Fulltext index
Index: already created [remove fulltext index]
Size: 10 KB
And Maximum results to show:0
So what could be wrong?
Shall i continue with installing or what?
Thanks
Mohamed :)

ioszilla

hehe, you have so many mods installed on your new forum - I'm not sure which mods, and in what ways they modified the search template to conflict with this mod. And since I'm not familiar with your other mods, I cannot offer to modify the template manually for you - my modification might break one or more of your other mods.

In this case, I suggest you use Daniel's mod parser to manually compare and edit your search.template.php:

http://modparser.dev.dansoftaustralia.net/

Let me know if there is anything else I can help with. :)

Mohamed GadAllah

Thanks a lot for your reply
But the link is not working in both IE - FF
Thanks

ioszilla

Hmmm, seems to be a problem with his server atm. Try this one instead:

http://www.smfhacks.com/smf-package-parser.html

Mohamed GadAllah

Are you sure of this link?
Because I got this:

ioszilla

Yes that's where u upload this mod package and get instructions on how to manually edit files. :)

Mohamed GadAllah

Oh
Thanks a lot
Sometimes I feel so blind and so stupid
lol
Thanks
Mohamed :)

Mohamed GadAllah

Later Edit
But shall i upload the MOD or go and do the editing directly only?

Sulgicur

One of our mods earlier installed the DC SMF Search tool. This has created a fault with both searching and quoting, which has remained even though we've since removed the package. Also the text "//Begin DC SMF Search Text Strings $txt['specific_topic_id'] = 'Specific topic id'; $txt['search_match_mode'] = 'Match Mode'; $txt['search_match_mode_whole'] = 'Match whole words only - least results, least noise'; $txt['search_match_mode_smart'] = 'Smart matching - balanced'; $txt['search_match_mode_any'] = 'Match any sequence - most results, most noise'; $txt['search_numReplies'] = 'Replies'; $txt['search_match_mode_whole_short'] = 'Match whole words only'; $txt['search_match_mode_smart_short'] = 'Smart matching'; $txt['search_match_mode_any_short'] = 'Match any sequence'; $txt['result_summary'] = 'Show/hide result summary'; $txt['result_generated'] = 'Results generated using '; $txt['zillarank'] = 'ZillaRank'; $txt['search_entireforum'] = 'Entire Forum'; $txt['search_thisbrd'] = 'This board'; $txt['search_thistopic'] = 'This topic'; $txt['search_members'] = 'Members'; $txt['search_entiresite'] = 'Entire Site'; $txt['search_view_all'] = 'View all'; $txt['search_match_criteria'] = 'posts in this topic that match your search criteria'; $txt['search_go_to_top'] = 'Go to Top'; $txt['search_go_to_top_single'] = 'Top'; //END DC SMF Search Text Strings" is appearing at the top of every page. I've searched through every updated php today but I can't find where that text is anywhere.

Your help would be gratefully welcomed. Thanks.

Sulgicur

Sorry, I should've read this topic first.

Everything is fine now.

Advertisement: