Print This!

I’ve added a small little thing to print entries. I’m not sure how often this might be used, but it’s really easy to set up. Here’s what I did to accomplish this.

  1. Create a new Template. I modeled mine after the comments template, and took out all references to comments.
  2. Format the Template to what you want to be displayed. (I just made mine a simple page with just the entry, author, and date/time.
  3. Now, on your comments page, you’ll want to put this line (copy and paste what’s in the textbox):

  4. Notice that it does use the {trackback_path=} instead of a normal {path=}. This is because EE will append the entry ID automatically for the trackback, but not for simple path.
  5. Make sure that you do change the [printable_template_name] to the Template you just created.

That’s it! Now clicking on the “print this” link, it should open a window that displays your printer friendly entry!

 

Primetime Thursday

Ok, so how many more episodes till Friends ends? I think this last season is really not as great as the previous ones. I guess it could very well be because I know it’s ending, but also, I think because 10 seaons is a long ass time. I have to admit, tonight’s episode had it’s moments. Nothing quite like Joey trying to speak french and drinking a gallon of milk in 10 seconds. LOL That was pretty damn funny.

Also, will the Rachel and Ross thing be over already? LOL Just get together, have some sex, and be done with it. Get married, have another kid. Emma’s gotta have siblings! ;)

I’m concerned about the Joey show though. From what I hear, there will be one of his sister’s with him, and her son? And Joey’s love interest will be a unhappily married woman? I don’t know. That sounds kinda hokey to me.

 

Recent Comments Bugfix

Just like the Recently Commented Entries Bugfix, I fixed the issue in this one as well. Recent Comments displays the last x comments, whereas Recent Commented Entries shows the last x entries that have been commented on. Download the file and follow the instructions inside:

pi.recent_comments-v1.1.zip

 

Recent Commented Entries Bugfix

Ok, I’ve found a problem with the recent commented entries plugin. If you have multiple weblogs, it doesn’t quite work properly. So I added a new parameter, “comments”, which allows you to specify the Template you will be linked to. Download the new file below.

eg.: {exp:recent_commented_entries:display limit=”5″ weblog=”weblog3″ comments=”weblog3/comments”}

pi.recent_commented_entries-v1.1.zip

 

Updated “Live Preview”

Ok, taking Sue’s problems with the block codes into consideration, I changed the live preview around. Here’s what the script should look like now:

function ReloadTextDiv()

{

var NewText = document.getElementById(“DynamicText”).value;

NewText = NewText.replace(/n/g, ‘<br />’);

NewText = NewText.replace(//gi,’<b>’);

NewText = NewText.replace(//gi,’</b>’);

NewText = NewText.replace(//gi,’<i>’);

NewText = NewText.replace(//gi,’</i>’);

var DivElement = document.getElementById(“TextDisplay”);

DivElement.innerHTML = NewText;

}

This will show in the preview carriage returns, bold and italics using blockquotes. I’m working on the regex for URL’s, I can’t seem to get it working right. I keep getting a javascript error. If anyone has a script that will work, let me know!