Search Zeitgeist

I installed a search zeitgeist page using Jim Flanagan's Zeitgeist.pm. I ended up hacking on it quite a bit, though.

  • I wanted to use referrers for both markpasc.org and neologasm.org, so I pass a thisdomain parameter into readlogs so I can tell it which domain to use in links (and yes, I had to change it to make absolute instead of root-relative links).
  • I was going to make it use span instead of font, then decided not to bother, then realized it had to use those 1-5 absolute font sizes if it used font. That had to go. Now it styles the a tag directly with font-size: (90 + hits*10)%; or so.
  • It also better consolidates terms, counting Mojib-Ribbon and mojib ribbon as the same search, but that exacerbates that the URL it links for a term is whichever one it happened to process last. Instead I have it track all the URLs visited by users of that term, by frequency, and use the most popular one when building the link.
  • It ignores www. at the front of the search engine URLs, and also includes searches from the local Movable Type search engine. (That's the main reason I went to showing excerpts for search results instead of full items, anymore.)

I made most of these changes just so I could be gratified by how much larger something pleasantly chaste like "mojib ribbon" was than the perennial favorite "aminal sex." Completely, utterly outclassed.

Comments

comment

Any chance of seeing some of these changes?

comment

I’m actually not using the MT plugin, which it looks like you are, so I’m not sure how useful my changes would be to you. They’re in the Zeitgeist.pm, not the plugin .pl.

But they’re here if they’re of use to you, or anyone else. My changes are marked but underdocumented.

comment

Thanks, I used the plugin with processtags so I could put comments and trackbacks on my zeitgeist page. Anyway, I don’t think I am savvy enough to do the changes you made, but thank you anyway, maybe Jim will incorporate them into a future version of the plugin.