Page 1 of 2

Forum search function bug?

Posted: Mon May 08, 2006 1:54 pm
by Dieter
I am not a registered user, but when I search for my posts with the search within the forum and I specify my name as the search criteria for "author" nothing comes up. I thought I should find my posts, even as an unregistered contributer.

Dieter

Posted: Mon May 08, 2006 6:22 pm
by ckv
I think it's limitation in phpbb so there is not much anyone can do about it.

Posted: Mon May 08, 2006 11:54 pm
by helmut
ckv wrote:I think it's limitation in phpbb so there is not much anyone can do about it.
Right, it's a limitation of phpBB. Only the phpBB developer can change this.

Posted: Tue Jun 06, 2006 5:55 pm
by XnTriq
I look at the forum as a knowledge base, and I never ask (or answer) a question without doing a query first. But phpBB's built-in search feature — as with most forum software — leaves somewhat to be desired. So I made my own customized search plug-ins for Firefox:

C:\Program Files\Mozilla\Firefox\searchplugins\xnview.google.src

Code: Select all

<search name="XnView Forum (Google)"
 description="Various discussion boards for XnView and related products"
      action="http://www.google.com/search"
      method="get">
<input name="sourceid" value="mozilla-search">
<input name="q" user>
<input name="as_sitesearch" value="newsgroup.xnview.com">
<input name="q" value="-inurl:%22reply OR quote OR profile OR rss%22">
</search>
C:\Program Files\Mozilla\Firefox\searchplugins\xnview.yahoo.src

Code: Select all

<search name="XnView Forum (Yahoo)"
 description="Various discussion boards for XnView and related products"
      action="http://search.yahoo.com/search"
      method="get">
<input name="sourceid" value="mozilla-search">
<input name="vs" value="newsgroup.xnview.com">
<input name="p" user>
</search>
One could convert the 16x16 version of favicon.ico and use it as search icon for both plug-ins (xnview.google.gif & xnview.yahoo.gif).

Posted: Thu Jan 10, 2008 4:48 pm
by marsh
When using Linux, the search plugins shown above are placed in the following sample location:

/home/username/.mozilla/firefox/program_genrated.default/searchplugins/xnview.google.src
/home/username/.mozilla/firefox/program_genrated.default/searchplugins/xnview.yahoo.src

Copy and paste the "code" to a new file using your favourite text editor.
Restart Firefox so that search plugins appear search bar's list of engines

----Update----
XnTriq's latest examples can be directly pasted here:
/home/username/.mozilla/firefox/program_genrated.default/searchplugins/xnview.google.xml

Topic number mismatch

Posted: Thu Jan 31, 2008 10:55 pm
by marsh
:arrow: All
The topic numbers shown by Google plugin's search results will not always match those produced by forum's own search function. This matters when creating forum links.

Example:
Plugin search "crop gray" produces this relevant topic:
"Crop does NOT work on some (non-gray ?)"
"t=11734" is shown in address bar

The forum's search function produces following number:
"t=11646" - A correct value, which is the same as number shown in web browser's status bar when highlighting a link.

Re: Google results don't match forum search

Posted: Fri Feb 01, 2008 2:00 am
by XnTriq
Thank you for your “bug report”, marsh. :wink:
Google Search ([url=http://www.google.com/search?hl=en&q=auto+crop+tolerance+-inurl%3A%22reply+OR+quote+OR+profile+OR+rss%22+site%3Anewsgroup.xnview.com&btnG=Search]auto crop tolerance[/url]) wrote:XnView :: View topic - Crop does NOT work on some (non-gray ?)
irrespective what "Tolerance" (up to 255) I use ... Try batch convert's autocrop function. It is
better in some ways. Currently in the viewer, using either ...
newsgroup.xnview.com/viewtopic.php?t=11734&view=next
&sid=b693895c911eebadb5e4ae05a814ee57 - 30k - Cached - Similar pages
Google Cache ([url=http://209.85.135.104/search?q=cache:VpmBZDjlQ8cJ:newsgroup.xnview.com/viewtopic.php%3Ft%3D11734%26view%3Dnext%26sid%3Db693895c911eebadb5e4ae05a814ee57+auto+crop+tolerance+-inurl:%22reply+OR+quote+OR+profile+OR+rss%22+site:newsgroup.xnview.com&hl=en&ct=clnk&cd=2]Crop does NOT work on some (non-gray ?)[/url]) wrote:This is G o o g l e's cache of http://newsgroup.xnview.com/viewtopic.php?t=11734&view=next
&sid=b693895c911eebadb5e4ae05a814ee57 as retrieved on 24 Jan 2008 01:52:20 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
Here's a mo' better version of xnview.google.src:

Code: Select all

<search name="XnView Forum (Google)"
 description="Various discussion boards for XnView and related products"
      action="http://www.google.com/search"
      method="get">
<input name="sourceid" value="mozilla-search">
<input name="q" user>
<input name="as_sitesearch" value="newsgroup.xnview.com">
<input name="q" value="-inurl:%22profile OR quote OR reply OR rss OR view%22">
</search>

Re: Forum search function bug?

Posted: Mon Mar 23, 2009 2:54 am
by marsh
Since the BBS change, G's search engine results look more repetitive (one line of content instead of two in their overview). This is happening with items showing new URLs containing "f=##".
Ex:
Before-http://newsgroup.xnview.com/viewtopic.php?t=####
vs.
After-http://newsgroup.xnview.com/viewtopic.php?f=##&t=####

Re: Forum search function bug?

Posted: Mon Mar 23, 2009 3:35 am
by XnTriq
Addding the query string &filter=1 to the mix should do the trick.
Google wrote:In order to show you the most relevant results, we have omitted some entries very similar to the ### already displayed.
If you like, you can repeat the search with the omitted results included.

Code: Select all

<search name="XnView Forum (Google)"
 description="Various discussion boards for XnView and related products"
      action="http://www.google.com/search"
      method="get">
<input name="sourceid" value="mozilla-search">
<input name="q" user>
<input name="as_sitesearch" value="newsgroup.xnview.com">
<input name="q" value="-inurl:%22profile OR quote OR reply OR rss OR view%22">
<input name="filter" value="1">
</search>

Re: Forum search function bug?

Posted: Mon Mar 23, 2009 10:26 am
by marsh
Thanks XnTriq,
Now I don't see a problem when comparing G's results here against board maker's forum.

Here is a copy&paste address which can be used by all without installing(multi-browser friendly):

Code: Select all

http://www.google.com/search?sourceid=mozilla-search&q=keyword1+keyword2+keyword3&as_sitesearch=newsgroup.xnview.com&q=-inurl:%22profile%20OR%20quote%20OR%20reply%20OR%20rss%20OR%20viewforum%20OR%20search%20OR%20view%22

Re: Forum search function bug?

Posted: Thu Oct 29, 2009 1:00 am
by XnTriq
Hi everyone :-)

I finally got around to updating this sucker.
[color=green]xnview.google.xml[/color] wrote:

Code: Select all

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
    <ShortName>XnView Forum (Google)</ShortName>
    <Description>Google Site Search - XnView Forum</Description>
    <InputEncoding>UTF-8</InputEncoding>
    <Image width="16" height="16">data:image/gif;base64,R0lGODlhEAAQAJEDAJlmM/8zAP+ZM////yH5BAkAAAMALAAAAAAQABAAAAJBnI+pItfIDHsTRiCAwXRg7SGAVoHTKWUpMwIB5pmsGxjvk2r1UNdgauMFBziOcKg6GANMYIJzyvxE0KRC2bpqrwUAOw==</Image>
    <Url type="text/html" method="GET" template="http://www.google.com/search">
        <Param name="sitesearch" value="newsgroup.xnview.com"/>
        <Param name="q" value="{searchTerms}"/>
    </Url>
    <moz:SearchForm>http://www.google.com/firefox</moz:SearchForm>
</OpenSearchDescription>

Re: Forum search function bug?

Posted: Sat Mar 20, 2010 3:30 am
by XnTriq
As it turns out, Google is indexing pages from newsgroup.xnview.com & forum.xnview.com separately, and the sitesearch parameter doesn't accept multiple domains as input :|

As a workaround I added...
  • <Param name="domains" value="newsgroup.xnview.com;forum.xnview.com"/>
... which puts radio buttons for the newsgroup and the forum sub-domain in Google's search form.
[color=green]xnview.google.xml[/color] wrote:

Code: Select all

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
	<ShortName>XnView Forum (Google)</ShortName>
	<Description>Google Site Search - XnView Forum</Description>
	<InputEncoding>UTF-8</InputEncoding>
	<Image width="16" height="16">data:image/gif;base64,R0lGODlhEAAQAJEDAJlmM/8zAP+ZM////yH5BAkAAAMALAAAAAAQABAAAAJBnI+pItfIDHsTRiCAwXRg7SGAVoHTKWUpMwIB5pmsGxjvk2r1UNdgauMFBziOcKg6GANMYIJzyvxE0KRC2bpqrwUAOw==</Image>
	<Url type="text/html" method="GET" template="http://www.google.com/search">
		<Param name="sitesearch" value="newsgroup.xnview.com"/>
		<Param name="domains" value="newsgroup.xnview.com;forum.xnview.com"/>
		<Param name="q" value="{searchTerms}"/>
	</Url>
	<moz:SearchForm>http://www.google.com/firefox</moz:SearchForm>
</OpenSearchDescription>
Suggestions for a better solution are welcome!

Re: Forum search function bug?

Posted: Thu May 06, 2010 10:17 am
by marsh
The new wiki should replace forum item (which has no new content).

Code: Select all

      <Param name="domains" value="newsgroup.xnview.com;wiki.xnview.com"/>

Re: Forum search function bug?

Posted: Sat Dec 24, 2011 9:58 am
by Peter2
[quote="XnTriq (Scanning "film negative" and convert to "positive"?)"]...Out of frustration with phpBB I created an OpenSearch plugin for web browsers....[/quote]
:?: :?: There is a lot of code and a lot of links which I don't understand. What is the conclusion of these threads?

Peter

Re: Forum search function bug?

Posted: Sat Dec 24, 2011 4:30 pm
by XnTriq
Peter2 wrote: :?: :?: There is a lot of code and a lot of links which I don't understand. What is the conclusion of these threads?
First, you have to copy & paste this code…

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/"
                       xmlns:ie="http://schemas.microsoft.com/Search/2008/">
	<ShortName>XnView Forum (Google)</ShortName>
	<Description>Google Site Search for newsgroup.xnview.com</Description>
	<InputEncoding>UTF-8</InputEncoding>
	<Image width="16" height="16">data:image/gif;base64,R0lGODlhEAAQAJEDAJlmM/8zAP+ZM////yH5BAkAAAMALAAAAAAQABAAAAJBnI+pItfIDHsTRiCAwXRg7SGAVoHTKWUpMwIB5pmsGxjvk2r1UNdgauMFBziOcKg6GANMYIJzyvxE0KRC2bpqrwUAOw==</Image>
	<Url type="application/x-suggestions+json" method="get" template="http://suggestqueries.google.com/complete/search?client=firefox&output=firefox&hl=en&q={searchTerms}" />
	<Url type="text/html" method="get" template="http://www.google.com/search?sitesearch=newsgroup.xnview.com&q={searchTerms}" />
	<Url type="application/opensearchdescription+xml" method="get" template="http://newsgroup.xnview.com/opensearch.xml" rel="self" />
</OpenSearchDescription>
… 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:
  • %ProgramFiles%\Mozilla\Firefox\searchplugins\
There should now be an item called “XnView Forum (Google)” in your browser's search bar
  • Image
… with an XnView icon next to it.

I chose to embed a base64-encoded version of the 2-bit (4 colors) icon from my old draft in GIF format, …
… but of course you can use any icon you like.
Just keep in mind that the dimensions should be 16×16 pixels.

If you prefer not to embed the icon inside the XML file, you have to replace the <Image …></Image> line accordingly:

Code: Select all

<Image width="16" height="16" type="image/vnd.microsoft.icon">xnview.google.ico</Image>
<Image width="16" height="16" type="image/x-icon">xnview.google.ico</Image>
<Image width="16" height="16" type="image/png">xnview.google.png</Image>
<Image width="16" height="16" type="image/gif">xnview.google.gif</Image>
<Image width="16" height="16" type="image/jpeg">xnview.google.jpg</Image>