2011-12-08, 01:55:59
Boz Wrote:Rob,
What section would I need to modify if I don't want the reader to be redirected at all?
Also, just to clarify, the complete tumbler post shows, not just an excerpt right?
Thanks - you produce some great plugins, bro.
Boz
Haven't used this is a while, but a quick looks tells me that you need to modify the javascript lines:
Code:
// Create a link to Tumblr post
postDate = document.createElement("div");
postDate.className = "tumblr_post_date";
postLink = document.createElement("a");
postLink.href = post.url;
postLink.innerHTML = (settings.shortPublishDate)? post["date"].replace(/(^\w{3},\s)|(:\d{2}$)/g, "") : post["date"];
postDate.appendChild(postLink);
listItem.appendChild(postDate);
This is inserting a link. Instead, you should be able to do something like this (untested):
Code:
// Add the date
postDate = document.createElement("div");
postDate.className = "tumblr_post_date";
postDate.innerHTML = (settings.shortPublishDate)? post["date"].replace(/(^\w{3},\s)|(:\d{2}$)/g, "") : post["date"];
listItem.appendChild(postDate);
-Rob A>