Forum search function bug?

General info, hints, guidelines and rules for all XnView forums. Guests and new users please read here first.

Moderators: XnTriq, xnview

User avatar
Peter2
XnThusiast
Posts: 1100
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH
Contact:

Re: Forum search function bug?

Postby Peter2 » Sun Dec 25, 2011 4:13 pm

XnTriq wrote:...First, you have to copy & paste this code...

Thanks XnTriq, it works fine now.

Peter
XnView 2.40 German, Win 7 x64 Prof. / Win 10

User avatar
XnTriq
Moderator & Librarian
Posts: 5049
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Forum search function bug?

Postby XnTriq » Sun Dec 25, 2011 9:15 pm

Peter2 wrote:Thanks XnTriq, it works fine now.

You're welcome, Peter 8)

There's an alternative method for Internet Explorer:
If you save the following text as SearchUrl.reg and import it into the Windows system registry, you just have to enter xn-g keyword into the address bar of the browser to search the forum with Google or xn-y keyword to search it with Yahoo.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\XN-G]
@="http://www.google.com/search?as_sitesearch=newsgroup.xnview.com&q=%s"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\XN-Y]
@="http://search.yahoo.com/search?vs=newsgroup.xnview.com&p=%s"

User avatar
GeorgD
Posts: 258
Joined: Thu Oct 12, 2006 2:45 pm

workaround the dumb forum search

Postby GeorgD » Mon Sep 01, 2014 8:52 pm

Dear XnTriq, thank your for suggestions how to workaround :) the dumb forum search :twisted:

Could we add a link from search.php to this forum thread so it's much easier to find solutions? Or even add a form that auto-fills google?

Background of this post: I wanted to search for the exact phrase "Save as", but exact phase search is not possible according to the phpBB developers and the workaround (searching directly in the DB system) is not available for me. Then, again not possible, so I tried +Save +as but both words are ignored because they are "too common". Well, what shall I say, the name of the function is "save as" so I need to search for that... Similar issue for "Format settings", exact phrase does not work, searching for +Format +settings works but the term "format" is ignored, so I get hundreds of hits which are too many to look through. I am sure that only a fraction also contains "Format", so it would be helpful to be able to force the search system to accept that word. The option "Search for all terms or use query as entered" on search.php does not what its name suggests :(
Finally I searched the forum and found this topic. The stuff with specific firefox search provider is not suitable on that computer, so I used plain google search.

Solution: I went to https://www.google.com/ and entered "Save as" +inurl:"?f=60" site:newsgroup.xnview.com where the first part contains my search terms, the inurl-part restricts to topics in forum MP - Suggestions (when you open that forum, the URL in the browser's address bar is [url]http://newsgroup.xnview.com/viewforum.php?f=60[/url] so that is where I got the forum number from) and the last part restricts to XnView domain (I don't want to search the whole www). Oh, the first hit was what I was looking for...a fixes suggestion :-)
Last edited by GeorgD on Tue Sep 02, 2014 11:08 pm, edited 1 time in total.
In the XnView Wiki, you can improve the user guide / documentation / F1-help for XnView (classic/Windows) and for XnViewMP

User avatar
XnTriq
Moderator & Librarian
Posts: 5049
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: workaround the dumb forum search

Postby XnTriq » Tue Sep 02, 2014 4:15 am

GeorgD wrote:Could we add a link from search.php to this forum thread so it's much easier to find solutions? Or even add a form that auto-fills google?

Welcome back, GeorgD :D

I've just added Google Site Search to the forum's “Advanced search” page.
For now, it's very basic and only works with the default board style (“prosilver”), because I'm a little short on time. I'll edit the “subsilver” theme accordingly ASAP.


User avatar
GeorgD
Posts: 258
Joined: Thu Oct 12, 2006 2:45 pm

Re: workaround the dumb forum search

Postby GeorgD » Tue Sep 02, 2014 11:08 pm

XnTriq wrote:Welcome back, GeorgD :D

Thank you :) With XnView classic that "just worked", I simply had no need to be here ;) but as XnView MP offers some cool new features like rating & color tags but is still a beta, I'm here more often again :)

XnTriq wrote:I've just added Google Site Search to the forum's “Advanced search” page.

Wow, that looks really good and seamless! And it works! :D
Mh, is it low effort to change the title "Search query" to "phpBB forum search query" and to make one border around both "Search query" and "Search options"? This would help users to instantly recognize that we have google and phpBB search and that the options only apply to the latter one.

Best regards, Georg
In the XnView Wiki, you can improve the user guide / documentation / F1-help for XnView (classic/Windows) and for XnViewMP

User avatar
Peter2
XnThusiast
Posts: 1100
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH
Contact:

Re: Forum search function bug?

Postby Peter2 » Sun Sep 28, 2014 6:24 pm

XnTriq wrote:.... into a text editor and save it as xnview.google.xml.
In case you're a Firefox user, xnview.google.xml has to be placed in this directory:...

I found this old thread from 24.12.2011 again (by incident ..), added it to my new machine (and modified it for my own site too :wink: ) - it it runs again, so I want to again "thanks" to XnTriq.

By the way:
Maybe the code could / should be added to Firefox search-machines?
https://addons.mozilla.org/de/firefox/e ... rch-tools/

Peter
XnView 2.40 German, Win 7 x64 Prof. / Win 10

Marunos
Posts: 3
Joined: Thu Jan 08, 2015 2:16 pm

Re: Forum search function bug?

Postby Marunos » Fri Jan 09, 2015 6:05 pm

Is this same for Chrome users?

User avatar
XnTriq
Moderator & Librarian
Posts: 5049
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Forum search function bug?

Postby XnTriq » Thu Jan 15, 2015 11:45 pm

Sorry for the late response. I'm subscribed to this topic, but for some reason I didn't get any reply notifications. :?

I'll add an OpenSearch plug-in to the forum ASAP. As of now, this is only available for the wiki (“XnView Wiki”) and the bug tracker (“MantisBT: Text Search” + “MantisBT: Issue Id”).

Thanks for your patience!

Peter2 wrote:I found this old thread from 24.12.2011 again (by incident ..), added it to my new machine (and modified it for my own site too :wink: )

cadraktiv gmbh: Search results for “xnview8)

User avatar
XnTriq
Moderator & Librarian
Posts: 5049
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Forum search function bug?

Postby XnTriq » Thu Feb 05, 2015 6:00 pm

I finally came around to adding OpenSearch support to the forum.
You can install the plug-in through your browser's auto-discovery or the “Add plug-in” button on the advanced search page.

Attachments
p124377.png
Set of alternative favicons
p124377.png (7.81 KiB) Viewed 11590 times

User avatar
omniplex
Posts: 123
Joined: Thu Feb 10, 2011 1:52 pm
Location: Hamburg
Contact:

Re: Forum search function bug?

Postby omniplex » Wed Mar 18, 2015 12:21 pm

XnTriq wrote:Chrome Adds OpenSearch Plugins Automatically

Yes, but it's not in a good usable state after the addition. For some fine tuning open chrome://settings/searchEngines manually or navigate to it in the Chrome settings. The search engines page consists of your Default search settings at the top, and recently added Other search engines. Step by step suggestion, sorry, I don't grok how the forum "list" features work.

1: Make a (mental) note of your standard search engine, that's the Default entry in the Default search settings.
2: Find the XnView Forum (Google) entry near the bottom, it's sorted alphabetically, a major advantage for X.
3: Click on Make Default, this clobbers your default noted in step 1, but also moves the forum search to the Default search settings.
4: Close the search settings to save the result of step 3, and open Manage search engines again.
5: Click on Make Default for your old Default noted in step 1. Repeat step 4 (close + reopen) to check that your old search is as it should be, with a new shiny XnView Forum (Google) entry in the Default search settings.
6: Optional, file a bug report at the Chromium project, and ask them what they were smoking, and where you can get it cheap.
7: Click on the newsgroup.xnview.com alias, it's the 2nd part of the new entry, and pick a shorter alias, e.g., xn or xnview.
8: Optional, close and reopen again to save the shorter alias, and tweak the search query in the 3rd part of the new entry as you like, e.g., add hl=en&safe=off&nord=1& immediately before q=%s at its end.
9: Click done. Now if you want to search the forum just type xn or xnview, Space-key, your query, Enter-key in the "Omnibox" (formerly known as address bar or location bar.) 8)

Code: Select all

http://www.google.com/search?sitesearch=newsgroup.xnview.com&hl=en&safe=off&nord=1&q=%s

Of course you can simply remove the newsgroup. part for a site search covering everything on xnview.com, as far as GoogleBot visited it, and is allowed to index it.

User avatar
XnTriq
Moderator & Librarian
Posts: 5049
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Forum search function bug?

Postby XnTriq » Wed Mar 18, 2015 4:30 pm

omniplex wrote:Yes, but it's not in a good usable state after the addition.

[…]

7: Click on the newsgroup.xnview.com alias, it's the 2nd part of the new entry, and pick a shorter alias, e.g., xn or xnview.

[…]

9: Click done. Now if you want to search the forum just type xn or xnview, Space-key, your query, Enter-key in the "Omnibox" (formerly known as address bar or location bar.)

That's why I listed the video tutorial courtesy of GVSU Libraries (0:46) in my previous post. ;-)

omniplex wrote:Of course you can simply remove the newsgroup. part for a site search covering everything on xnview.com, as far as GoogleBot visited it, and is allowed to index it.

FYI: No exclusions specified in robots.txt

XnTriq wrote:Sorry for the late response. I'm subscribed to this topic, but for some reason I didn't get any reply notifications. :?

There seems to be a limit in phpBB regarding the number of topics you can subscribe to. Although the checkbox for “Notify me when a reply is posted” is activated, I didn't get an e-mail for this latest response either.


Return to “Info & Forum”

Who is online

Users browsing this forum: No registered users and 1 guest