« Rock Me, Amadeus |
Main Index
| Happy Birthday, Joelle! »
comments | incoming pings | outgoing pings
if (time() > strtotime ("November 2, 2003 02:52 AM")) { ?>
Recent Reads
Like a dumbass, for the longest time I used to manually update the information in my sidebar under "Reading Materials" so you could see what I was currently reading and go to the reviews on BiblioBlog of the last books I read. Since I read a book every few days, this was a major pain in the ass to do.
I had a "Eureka!" moment today and figured out that I could use the MTOtherBlog plugin to get these links to display automatically.
Now I don't have to go through the hassle of updating the sidebar manually and you can get to the reviews just as easily. I even have it displaying the date I finished the book so you can see just how fast I really read.
Be sure to glance down there often and see if there's anything that ought to be added to your to be read pile.
.: Posted November 2, 2003 02:52 AM in $entry_cats="BiblioBlog Updates, ";print substr($entry_cats, 0, -2); ?> :.$blogid = "1"; //replace this with the blog_id of your blog $entry_id = "2493"; $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/1755
$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
I'm all about pulling content from other blogs! I wondered why you were doing it manually, but I figured you must have some reason for it! *grin*
.: Christine said on November 2, 2003 05:00 PM :: link it :.} else { ?>
You're too early! Come back at November 2, 2003 02:52 AM 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.