Tuesday, January 11, 2005

recent posts hack

ripped from nerdytales. now, why is the date screwed up for each recent post?
oh well, it gets the job done.

5 Comments:

Blogger forkev said...

awe.
scroll through the origoinal hack lifted from nerdy tales and replace:

st=st.replace('[name]',author);
var k2htime=getSortDate(d);
st=st.replace('[time]',k2htime.substr(8,2)+k2htime.substr(10,2)+"-"+k2htime.substr(6,2));

with
st=st.replace('[name]',author);
st=st.replace('[time]',d);

the render is long,and linewrappy ugly, but it gets the job done.

1/11/2005 08:39:00 AM  
Blogger forkev said...

This comment has been removed by a blog administrator.

1/11/2005 08:39:00 AM  
Blogger forkev said...

who wants to tell me why my recent comments hack only shows up on the main page of blogger, not on the comments page

1/11/2005 10:42:00 AM  
Blogger k2h said...

when you read the template it says which sections apply to the mainpage, and which don't. my guess is you put it in a MAIN PAGE section.

1/12/2005 06:34:00 PM  
Blogger forkev said...

[MainPage]
content
[/MainPage]

only shows up on the first page.
I implemented the recent posts hack on sub pages to find that it ONLY searches that page, not the primary page. I guess i'll remove it from the 'comments pages' and just be done with it. I'm not inturesting in it enough to rewire the url it pulls from.

1/13/2005 08:19:00 AM  

Post a Comment

<< Home