Rick Brewster Posted August 18, 2007 Share Posted August 18, 2007 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 For example, if you search for "crop" then it takes you to exactly what you're looking for: Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
usedHONDA Posted August 18, 2007 Share Posted August 18, 2007 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. Quote "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 More sharing options...
BoltBait Posted August 18, 2007 Share Posted August 18, 2007 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. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 18, 2007 Author Share Posted August 18, 2007 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 18, 2007 Author Share Posted August 18, 2007 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? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Aron Posted August 18, 2007 Share Posted August 18, 2007 this is great! i have never liked the forum search tool... good job. Quote My Deviant Link to comment Share on other sites More sharing options...
Mr Frojo Posted August 18, 2007 Share Posted August 18, 2007 Nice! Great way to find tutorials on stuff you want to do. Something like this has been needed for a while. Quote I'm still alive! Link to comment Share on other sites More sharing options...
BoltBait Posted August 18, 2007 Share Posted August 18, 2007 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. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
moc426 Posted August 18, 2007 Share Posted August 18, 2007 this is cool the page is html, if you can make it php or something else you can get the query string in the url. you can also use some javascript like bb said. or you can link to the search direct, replace keyword with whatever search term http://www.google.com/cse?cx=0178119197 ... &q=keyword Quote Link to comment Share on other sites More sharing options...
Myrddin Posted August 18, 2007 Share Posted August 18, 2007 Nice, I'll put this into my signature to replace the one already present. Quote How to Save Your Images under Different File Types My dA Gallery Link to comment Share on other sites More sharing options...
usedHONDA Posted August 18, 2007 Share Posted August 18, 2007 @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". Quote "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 More sharing options...
Crazy Man Dan Posted August 18, 2007 Share Posted August 18, 2007 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. Quote 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 More sharing options...
Rick Brewster Posted August 18, 2007 Author Share Posted August 18, 2007 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
BoltBait Posted August 18, 2007 Share Posted August 18, 2007 Sorry, I thought you wanted to pass a default search string into the form text box. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted August 18, 2007 Share Posted August 18, 2007 Yeah, that's what I thought as well. If you just want focus set to the text box when the user enters the page, then yeah, you've got it. Quote 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 More sharing options...
Rick Brewster Posted August 18, 2007 Author Share Posted August 18, 2007 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Myrddin Posted August 18, 2007 Share Posted August 18, 2007 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. Quote How to Save Your Images under Different File Types My dA Gallery Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted August 18, 2007 Share Posted August 18, 2007 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... Quote 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 More sharing options...
Rick Brewster Posted August 18, 2007 Author Share Posted August 18, 2007 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Myrddin Posted August 18, 2007 Share Posted August 18, 2007 Oh well, just a thought. Thanks for replying. Quote How to Save Your Images under Different File Types My dA Gallery Link to comment Share on other sites More sharing options...
BuzzKill Posted August 18, 2007 Share Posted August 18, 2007 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. Thanks, Rick! Quote - 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 More sharing options...
Rick Brewster Posted August 19, 2007 Author Share Posted August 19, 2007 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) Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 19, 2007 Author Share Posted August 19, 2007 Added: http://www.BoltBait.com/pdn/* Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
usedHONDA Posted August 19, 2007 Share Posted August 19, 2007 http://en.wikibooks.org/wiki/Paint.net/* (just added) Thanks! I knew the Wikibook I started would one day be used for something! Quote "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 More sharing options...
pyrochild Posted August 19, 2007 Share Posted August 19, 2007 Added:http://www.BoltBait.com/pdn/* Maybe http://cmdsketchpad.com/ as well? Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.