« Burn It - The Fall Edition |
Main Index
| The Surgeon by Tess Gerritsen »
comments | incoming pings | outgoing pings
if (time() > strtotime ("October 12, 2003 11:58 PM")) { ?>
Entry at Top?
Anyone know how to make an entry stay on top in MT? I could have sworn I saw this somewhere, but I'm coming up with a blank. Help?
Update: I was able to do it by changing my main index template and it looks like there's no easy way to do it in MT. It is on the requested features to be added, though, so maybe someday it'll be easy to do.
.: Posted October 12, 2003 11:58 PM in $entry_cats="I'm Looking For...., ";print substr($entry_cats, 0, -2); ?> :.$blogid = "1"; //replace this with the blog_id of your blog $entry_id = "2453"; $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/1715
$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
only solution I can think of: pre-date it... for like a week or more away... so that it'll always be up top...
.: amancay said on October 13, 2003 06:27 PM :: link it :.First.
You'd want to convert you entire web to PHP. (it's really easy trust me!)
Then you'd want to set up a side blog
here's some instructions
http://www.scriptygoddess.com/archives/004014.php
.: todd said on October 14, 2003 09:06 AM :: link it :.Your site is already PHP, just parsing (but you knew that already...) so you just need the info from Scripty. I was just going to go look for the link, but Todd beat me to it. :)
.: Christine said on October 15, 2003 12:17 AM :: link it :.} else { ?>
You're too early! Come back at October 12, 2003 11:58 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.