Posted: January 19th, 2012 | Author: jriggs | Filed under: google analytics, html | No Comments »
Open the ‘Traffic Sources’ drop down and click on ‘Overview’
Click on the Search Term/Keyword you are interested in

Click on the ‘Secondary Dimension’ drop down, expand ‘Traffic Sources’ and Click on ‘Landing Page’

View Glorious Data

Such Valuable Information. I really have to wonder why Google felt the need to bury so deep into the UI.
Posted: October 4th, 2011 | Author: jriggs | Filed under: wordpress | No Comments »
The first thing you will need in order to remove the date from category pages is the id of the category which you wish to hide the dates on. To get the id click on ‘Categories’ in the admin and then click on the actual category you wish to affect. In the url you will see the id, similar to this:

In this instance, our ID is ’42′. Next you will need to find the file that you need to add the code into. By default WordPress will look in
\wp-content\themes\'your-theme'\
for the file in this order:
- category-slug.php (Note: available with Version 2.9)
- category-ID.php
- category.php
- archive.php
- index.php
Once you have found the appropriate file modify it like so around line 53 near the h2 tag:
<?php //hide date for category
$show_date=true;
$cat_array = get_the_category($post->ID);
//print_r($cat_array);
$count = count($cat_array);
for($i=0 ; $i < $count; $i++){
$cat_id = $cat_array[$i]->cat_ID;
if ($cat_id == 42){
$show_date = false;
}
}
if ($show_date) {?>
<span class="date"><?php the_time('d M'); ?></span>
<?php
}
?>
Be sure to replace the number on this line
if ($cat_id == 42)
with this ID from above.
If you wish to hide the date on individual posts, you can add the same code to ‘single.php’
Posted: July 17th, 2011 | Author: jriggs | Filed under: html, php | 1 Comment »
This code is a work in progress and should never be used in a production environment without extensive testing!
First, the page that is loaded into the browser, it uses jQuery to receive status updates from ‘getstatus.php’ script
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Update Inventory</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
var flag = false
var stop = false;
$(function() {
startProcess();
getStatus();
});
function startProcess() {
$("#done").load('updatestock.php', function() {
flag = true;
});
}
function getStatus() {
if ( stop ) {return false;}
$("#status").load('getstatus.php');
setTimeout("getStatus()",2000);
if ( flag ) {stop = true;}
}
</script>
<style type="text/css">
div {padding:0 0 0 50px;}
</style>
</head>
<body>
<h1>Long Running Script</h1>
<div id="done"></div>
<div id="status"></div>
</body>
</html>
This is the long running script simulator
<?php
$fh = fopen('status.log', 'w');
//simulate work for 30 seconds
while($i < 30) {
fwrite($fh, time()."<br />\n");
sleep(1);
$i++;
}
fclose($fh);
?>
And getstatus.php, the script that returns data to be appended to div
<?php
/*
this script is accessed by the html version of the updater, and spools the output to the screen
so the user can see updated information as the the script runs.
*/
$page = file_get_contents('status.log');
echo $page;
?>
Try it here (buggy)