24 Jan, 2003
Posted by: kristine In: Bookmarks
I'm always inspired when I go to the css/edge site, but I've just found the tutorial over there for Pure CSS Menus and its just such a cool concept — using the :hover attribute for other elements is great, and I hope that all the browsers will eventually support this. For now, its Netscape/Mozilla specific, but still cool.
And then, I found #misguided through web-graphics and there's several easy ideas for Image Rollover Code and Expanding List Script. Its so easy that anyone should be able to implement it, not just javascript/dHTML goddesses!!
Since my site (domesticat.net) is skinned, I use PHP to test for a handful of browsers that require certain types of skins. In practice, this points lynx browsers to the lynx skin, and the PDA-type browsers to the ultralight skin.
Zalary (of everythingfalls.com) emailed me this morning to let me know that I'd made a goof, and that one of the text strings I was testing for now trips up under a Mac-based browser, Avant, that I'd never heard of before.
Read the rest of this entry »
Hot damn! So the bloggie nominations are out, and scriptygoddess was nominated in three categories. Damn. I don't even know what to say. I guess, Thank you!!! would be a good start. 😀 Based on the trackback pings I knew people were voting for this site for the nomination in the "Best Web Development Weblog"… but never in my wildest dreams did I figure I'd get on the list, AS WELL AS in two more categories. ("Best Programming of a Weblog site" and "Best Community Weblog"). Damn!
This site started as a way to track my learning in PHP and Javascript, etc. I quickly saw the value in adding authors – and thus it became a multi-person learning effort. I'm so glad that it has been useful to the blogging community. To everyone who nominated Scriptygoddess – and especially my partners in crime (my co-authors)…Thanks everyone!
21 Jan, 2003
Posted by: kristine In: Scripts
I recently converted several sections of my site from html to php, and I wanted an easy way to change over without uploading a redirect page in the place of each html page. So I came up with this option.
Required:
Your server must allow you to use php pages for error messages.
If that's not the default, you'll need access to the htaccess file to make the change.
You will need to delete the .html files from the folders you are uploading .php files in their place.
For example, I have a folder at http://love-productions.com/about/. It previously had index.html, lp.html, k.html. Now it has index.php, lp.php, and k.php and I've deleted the html pages. So if you visit /about/index.html, it will redirect you to /about/index.php.
Read the rest of this entry »
There was a problem with one of the script I'd posted (I think we actually found a different way altogether of doing it) but it was an issue with $PHP_SELF when used in a file that gets included – it ends up showing the name of the INCLUDED file (not the current url).
Just for my future reference, I just tried this instead of PHP_SELF and it seemed to work ok with includes.
"http://".$_SERVER['HTTP_HOST'].$_SERVER['PATH_INFO']
Alternatively – if there's a "query string" at the end of the current url that you want to grab as well (ie http://www.domain.com/test.php?variable=value) you can add this onto the end of the line above:
.$_SERVER['QUERY_STRING']
(side note the . is just used to concatenate the different parts)
20 Jan, 2003
Posted by: Christine In: Bookmarks
Spotted at Lynda's site, Tangent helps you link to things around the web or even within your own site. Available for both MT and pMachine, it looks interesting and is worth checking out!
19 Jan, 2003
Posted by: Jennifer In: Bookmarks
18 Jan, 2003
Posted by: Jennifer In: Scripts
And 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.
Download it 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)
18 Jan, 2003
Posted by: Jennifer In: Scripts
(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";
}
}
?>
18 Jan, 2003
Posted by: Jennifer In: Bookmarks
I'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.
Comments Off on Site stats and tracking