Archive for January, 2003
Better sidebar launch for Blogroller
Sunday, January 19th, 2003Pariah came up with a better implementation of the sidebar launch for Blogroller. Looks pretty simple to install. Here’s the link.
Last 50 keyword referrers
Saturday, January 18th, 2003And now the answer for why I wanted to get a function to extract search keywords. This script will list the last 50 search keywords to your site (just like the Little Green Footballs script to show the last 50 referrers). I just hacked the two together. ![]()
See demo here.
update 3/11/03: Version 2 - this will display the keywords like v1 - but with a link to where it came from.
See demo here | Download it here.
update 3/16/03 Bug fix in version 2. To upgrade, download the files and just replace lgf-reflog-searchv2.php with the one you’re using. (remember to copy your chagnes (paths) over to the new file)
Parse search keywords from referrer
Saturday, January 18th, 2003(POST UPDATED 8:07pm)
Here’s a script snippet. As I said previously, I had a number of requests for scripts that will strip out the keywords from a referrer from a search engine. The code was taken exactly from MT RefSearch (Just copied and pasted this one function here).
Click here to see just the Extract Keyword function from MT RefSearch. (It returns an array with each keyword as one element in the array)
Here’s one possible use…to print out each keyword from the referrer:
<?php
$url = getenv(”HTTP_REFERER”);
$keywords = ExtractKeywords($url);
if ($keywords != “”) {
foreach ($keywords as $value) {
echo “Value: $value<br>\n”;
}
}
?>
Site stats and tracking
Saturday, January 18th, 2003I’ve gotten a number of “script requests” asking for ways to filter out search keywords from the referrer. It’s not a simple task. I did it once by hacking a script I found - and even then, I got it only to work with google. There’s really no point in reinventing the wheel (especially THIS wheel because it’s particularly complicated) so I went looking this morning for something that did this (My plan was to hack out the piece that I needed).
I found this page which has a really neat looking script for tracking (looks like it does some similar things that I did with mine that I’m holding off releasing).
Looks like a few other scripts by the same author are linked from there, too.
Show/hide ANYTHING
Thursday, January 16th, 2003I just love that show hide javascript. Kymberlie asked if it could be reworked so that you could use it with ANYTHING (not just entries, archives, and categories, etc.)
So this script (should) work with anything. It’s not blog-program dependent… it’s completely stand-alone. There were some funky things going on with it, but I think I got some workarounds that seem to do the job. I haven’t tested it thorougly and there may be a better way to do some of this (if you have some thoughts - please share in the comments). Again, I mixed some PHP in there (really just to make things easier, so there wasn’t so much hardcoding) - but if you’re not running PHP, and don’t mind hardcoding a few things, I can write up a version for you).
(Code is in the “more” section)
(more…)
Addalink bug fix!
Wednesday, January 15th, 2003Some people were reporting weird errors only recently with the add a link script. If you were using the weblogs checking code on your page - you’ll need to fix this. (In a recent update to PHP - a minor thing changed and requires a change in this script)
Please go here: http://www.scriptygoddess.com/archives/001093.php#13063 to see the fix.
I’ll update the download, but just in case you already have this downloaded and installed, it’s a simple enough fix that you should be able to do it and can save yourself the hassle of another download…
UPDATE: It looks like my bug fix may not be needed after all… If you’re getting errors, give it a try. If you’re not - don’t worry about it. ![]()
The PHP Resource
Tuesday, January 14th, 2003If you are in need of a few good PHP scripts (and who isn’t), you might want to add PHP Resource to your bookmarks.
The class section alone has over 120 scripts.
Although the site is in German, many of the posted scripts are in English. Even so, there is a Google Translated version of PHP Resource if you so desire.
Textile: Text to HTML Converter
Tuesday, January 14th, 2003While visiting Textisim I read of the release of a Textile, a web page that will convert plain text to HTML.
The author, Dean Allen, says:
“…one should now be able to paste in text copied from a word processor on any platform, and see proper corresponding HTML entities in the result.”
It is similar in nature to our very own “Decoder” script except that it is form-based web page. This might come in handy when when you are not at your usual PC where you had the Decoder Bookmarklet installed.
php class to gzip encode served content
Tuesday, January 14th, 2003I ran across “class.gzip_encode.php” whuch is a php class to gzip encode served content to reduce size. It loads your pages faster, reduces server load and makes for a better browsing experience for dial-up users.
This is probably something I will never use, but when I find things like this I like to post them here. I am sure someone will find a use for it.
Get the class file from Leknor.com.
Suggested implementation by Textisim.