cotonti.com : [Release] 404search https://www.cotonti.com Son konu mesajları Cotonti en Thu, 29 Jan 2026 07:10:15 -0000 GHengeveld Sal, 01 Şub 2011 18:59:35 -0000 aiwass Paz, 30 Oca 2011 18:08:53 -0000 ven7ura # Kort : Boring replies do not affect download counters.
Hacking search plugin is not good, but SEO-wise the plugin idea is great. 404 redirects, however can be different (index or sitemap in instance), so why not give user a choice?

Whats with the attitude!?

Anyways, the idea is great and I will be checking out for upgrades. Good Work.]]>
Cmt, 16 Eki 2010 07:27:25 -0000
GHengeveld Cmt, 16 Eki 2010 04:01:50 -0000 Kort # ven7ura : Very nice plugin!
Will be a nice addition to one of my sites.
Boring replies do not affect download counters.
Hacking search plugin is not good, but SEO-wise the plugin idea is great. 404 redirects, however can be different (index or sitemap in instance), so why not give user a choice?]]>
Cmt, 16 Eki 2010 02:32:03 -0000
GHengeveld
I only developed this because I recently changed my entire site structure (and URLs) and Google hasn't re-indexed everything so I'm still getting visitors ending up on 404 pages. I just wanted to give these visitors a way to still find what they were looking for, even though it requires one more click.]]>
Cmt, 16 Eki 2010 00:28:17 -0000
ven7ura
Will be a nice addition to one of my sites.]]>
Cmt, 16 Eki 2010 00:23:22 -0000
GHengeveld
Installation:
  • Upload files to /plugins
  • Install through admin panel
  • Optionally: edit search plugin (see below)

» Download here

The plugin passes the Google query to the search plugin, but since the current search plugin doesn't support queries though GET, it won't show them. If you want them to show, you have to edit your search plugin:

In plugins/search/search.php, at line 29 you have this:
$sq = sed_import('sq','P','TXT',$cfg['plugin']['search']['maxsigns']);

Below that line, add this:
$q = sed_import('q','G','TXT',$cfg['plugin']['search']['maxsigns']);
if(!$sq && $q) $sq = $q;

Around line 39, you have:
$a = sed_import('a','P','ALP');

Below that, add this line:
if($q) $a = 'search';

In the future I may rewrite the search plugin to use GET instead of POST.

Added 2 hours 34 minutes later:

You can test it by running a Google search for "hyves mashup", which should return a link to "Project 3: Hyves Mashup" (www.ghengeveld.nl/weblog/p/29) at . This URL is dead, but will bring up the search. (Don't know how long Google will keep returning this result.)]]>
Cum, 15 Eki 2010 17:19:48 -0000