Jump to content

NEW: Paint.NET Search Engine


Recommended Posts

This is something I set up using Google Custom Search Engine. It will let you search through the Paint.NET help file and this forum here from one page. I'll bet it even works better than the forum's built-in search.

http://searchpaint.net

pdnSearch_index.png

For example, if you search for "crop" then it takes you to exactly what you're looking for:

pdnSearch_crop.png

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Well, I tried it out. It got me much closer to the post I was looking for. The built-in forum search got me to the thread, this got me to the page withing the thread where the post was located. This is really handy for finding things in the Pictorium, for example where the thread is over 400 pages long.

Nice.

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to comment
Share on other sites

Sweet! It'll be of great help to all.

Suggestion: How about adding a little search bar in Paint.NET? I think it'll be great addition for the next release.

I'm hoping to squeeze in a menu item for 3.10, and hopefully something more elaborate for the next version. Something like the "Search..." box in IE7 and FF, but it'd be next to the Help menu at the top, maybe.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

pdnSearch_helpMenu.png

The question is whether "Paint.NET Search" or "Paint.NET Search Engine" is going to get more people to use it.

Also, does anyone know how I can make it so that the input is automatically set to the search text box when the search.html page loads?

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Ctrl-E? Nice. Matches IE7's jump to search box.

Here is some javascript for you:

<br />var has_input = document.URL.indexOf('?');<br />if (has_input != -1)<br />{<br />  addr_str = document.URL.substring(has_input+1, document.URL.length);<br />  document.getElementById('q').value = unescape(addr_str);<br />}<br />document.getElementById('q').focus();<br />

Just put that at the bottom of your page (at least below the text box).

Totally untested and entered directly into this Quick Reply box.

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to comment
Share on other sites

@Rick's last post: Try something like "Search the Paint.NET Database" or "Search Paint.NET-related web content".

Also, I just had a radical idea that will set Paint.NET apart from the rest, but my idea is still "in Alpha 1".

"The greatest thing about the Internet is that you can write anything you want and give it a false source." ~Ezra Pound

twtr | dA | tmblr | yt | fb

Link to comment
Share on other sites

Also, does anyone know how I can make it so that the input is automatically set to the search text box when the search.html page loads?

*raises hand*

If you want to pass a search term to the Search page on GetPaint.NET, you have several options. You'd pass the keywords to the URL (search.php?q=crop), then use PHP (whois says you're running Apache) to grab the querystring data and output it in the value="" attribute of the search text box. You could also use Javascript, but Javascript can be disabled on the user end, so using PHP on the server's end is more fool-proof.

Now, if you put a search box straight in PDN, you'll probably want to send them straight to the custom search page with that query as moc posted above.

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

BoltBait, looks like it was even simpler, although your code led me down the right path ...

CMD, for search queries generated from within Paint.NET I mainly need to check the TOS for Google Custom Search to see if it is permitted. They might treat it as an automated query, and kick me to the curb.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Cool.

I added it to the main site as well. That should get some extra traffic to it, although so far it isn't really apparent what the search box at the top of the page is for.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

May I offer a suggestion for that then. Much like the Search Engine box in Firefox and IE7, couldn't you place unobtrusive text in the field prior to typing, along the lines of 'Search Paint.NET Forums and Help' or something like that.

Link to comment
Share on other sites

Well, right now it does say Google Custom Search until you click in it, but that's just a background image so it'd be easy enough to change. I'm not sure if changing it would violate the Terms of Service, though...

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

May I offer a suggestion for that then. Much like the Search Engine box in Firefox and IE7, couldn't you place unobtrusive text in the field prior to typing, along the lines of 'Search Paint.NET Forums and Help' or something like that.

It doesn't look like the TOS allows for that.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

This new search is very much needed and appreciated.

No more searching through the tons of threads you get after using the old forum search.

It's like having a bigger and better flashlight. :D

Thanks, Rick!

BK_BloodSaw_sig.png

- DO NOT contact me asking for the .pdn of my avatar or the PDN logo. Thank you. Have a nice day.

Link to comment
Share on other sites

List of URL's the search engine covers:

http://en.wikibooks.org/wiki/Paint.net/* (just added)

http://blog.getpaint.net/* (just added)

http://www.getpaint.net/*

http://paintdotnet.12.forumer.com/*

http://www.getpaint.net/doc/latest/*

Excluded:

http://paintdotnet.12.forumer.com/a/* (Paint.NET "forum archives" ... ugly and weird)

Let me know of any other sites that should be included, or excluded. (exclusion should cover subsets of included sites, like the 'forum archives' above)

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...