« Hypothetical Question |
Main Index
| This-or-That Tuesday »
comments | incoming pings | outgoing pings
if (time() > strtotime ("December 3, 2002 06:07 PM")) { ?>
Help For Visitors From Google
Thanks to the girls (and guys) over at Scripty Goddess, I found this great little tool, MT RefSearch.
Basically, by adding a php include to your site, people from Google are presented with links to the entries that contain the text they are looking for. It takes a little bit of configuring, but it's super easy to do and very quick to implement.
You can see it in action by going here and clicking on this first link.
Eliot did an excellent job on this and I commend him highly. =)
.: Posted December 3, 2002 06:07 PM in $entry_cats="Geeky Things, ";print substr($entry_cats, 0, -2); ?> :.$blogid = "1"; //replace this with the blog_id of your blog $entry_id = "1664"; $pingcount = mysql_query("SELECT p.tbping_blog_id, t.trackback_entry_id FROM mt_tbping p, mt_trackback t WHERE (p.tbping_blog_id = $blogid) and (t.trackback_entry_id = $entry_id) and (t.trackback_id = p.tbping_tb_id)"); $count = mysql_num_rows($pingcount); echo ""; echo "Trackbacks on this post: ", $count, ""; $pingarray = "SELECT p.tbping_source_url, p.tbping_blog_name, p.tbping_created_on, p.tbping_excerpt, p.tbping_tb_id, t.trackback_id, t.trackback_entry_id FROM mt_tbping p, mt_trackback t WHERE (p.tbping_blog_id = $blogid) and (t.trackback_entry_id = $entry_id) and (t.trackback_id = p.tbping_tb_id)"; $resultping = mysql_query($pingarray) or die (mysql_error()); while ($row = mysql_fetch_array($resultping)) { //set up the variables being used - the date can be configured below $url = ($row['tbping_source_url']); $blog = ($row['tbping_blog_name']); $date = date("F d, Y g:i A", strtotime($row['tbping_created_on'])); $excerpt = ($row['tbping_excerpt']); echo "
", $excerpt, "
Ping this post
http://www.neuroticfishbowl.com/mt/mt-tb.cgi/928
$pingsent = "SELECT entry_pinged_urls FROM mt_entry WHERE $entry_id = entry_id and entry_pinged_urls !=\"\""; $pingsentcountresult = mysql_query($pingsent) or die (mysql_error()); $pingsentcountarray = mysql_fetch_row($pingsentcountresult); $pingsentcounts=explode("\n", $pingsentcountarray[0]); ?> if (!is_array($pingsentcountarray)) { echo "No URLs Pinged"; } else { $pingsentcount = count($pingsentcounts); if ($pingsentcount=="1") { echo $pingsentcount, " URL Pinged:";} else {echo "URLs Pinged: ", $pingsentcount;} } ?>
"..."
Comments
glad it worked out! your site is awesome looking.. i love the painting! and the name.. you couldn't pick a better name for a blog. :)
have fun, and god bless!
.: eliot said on December 3, 2002 06:17 PM :: link it :.That's a cool toy!
.: Lisa said on December 3, 2002 07:06 PM :: link it :.I am having some problems. Since we are hosted at the same place can you tell me what you put in the file where you put server= ?
I tried my own domain and localhost but neither seem to work.
Thanks!
.: Promo said on December 6, 2002 02:54 PM :: link it :.that is tight... I'm gonna have to go home and implement it (although I'm scared that I have so much php going on at my site that people won't link the load lag!)
.: amancay said on December 6, 2002 03:00 PM :: link it :.} else { ?>
You're too early! Come back at December 3, 2002 06:07 PM to see this post.>
} ?>
Post a comment
{HTML ok, IP address logged}
Enter e-mail address to subscribe/unsubscribe to comments on this post without having to post a comment:
Subscribe to post
Unsubscribe to post
E-mail:
(e-mail field must be filled in) -->
* Please note: Comments that are inappropriate
will be deleted - mean, spiteful, rude comments. Don't let that stop
you from posting comments. Just wanted to let you know the rules of
the house.