PDA

View Full Version : Adding the date and time to latest threads on html page


soaringpine
11-21-2011, 04:30 PM
Hi, I am using Wordpress for my site with vbulletin for my forum. I am showing the latest threads and want to incorporate the date and time. Can someone tell me what the variables would be to do this?

Here is what I am currently using:

document.writeln("<li><a href=\"forums/showthread.php?t="+threads[x].threadid+"\"><b>"+threads[x].title+"</b></a></li>");

Many thanks!

Lynne
11-21-2011, 05:46 PM
how about threads[x].date ?

soaringpine
11-21-2011, 07:51 PM
Hi Lynne, thanks for the reply. I plugged it in and it came back as "undefined" so not sure if that is the right code??

kh99
11-21-2011, 09:15 PM
Assuming you're using external.php to get the thread info, I think you want threads[x].threaddate.