Thread: Latest Posts
View Single Post
  #3  
Unread 03-19-2005, 06:24 AM
Dolby's Avatar
Dolby Dolby is offline
Bacon Eater
Premium Member
EQ2Interface Admin
This person is a EQ2Map developer.
 
Join Date: Feb 2004
Posts: 2,452
Default

This example will display the 15 latest posts.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head>  
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />  
<title>External EQ2Interface Latest Posts</title> 
</head> 
<body> 
<script type="text/javascript" src="http://www.eq2interface.com/forums/external.php?type=js"></script>

<script type="text/javascript"> 
<!-- 
	for (var i = 0; i < threads.length; i++) 
	{ 
		document.write('<a href="http://www.eq2interface.com/forums/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a> <em>Posted on: ' + threads[i]['threaddate'] + ' by ' + threads[i]['poster'] + '</em><br />'); 
	} 
//--> 
</script>
</body>
</html>
I'll add a forum id and quanity var later.

Last edited by Dolby : 03-19-2005 at 06:37 AM.
Reply With Quote