// Include this script where you want to embed the latest 20 discussions.
// This script requires jQuery.
document.write('<div id="vn_discussions_popular"></div>');
jQuery(document).ready(function($) {
var url = 'http://yourforumhere.com/discussions.json?page=1-20&callback=?';
$.ajax({
url: url,
dataType: 'json',
success: function(data) {
var foo = 'bar';
var result = '';
for(i in data.Discussions) {
d = data.Discussions[i];
result += '<li><a href="'+d.Url+'">'+d.Name+'</a></li>';
}
result = '<ul>'+result+'</ul>';
$('#vn_discussions_popular').html(result);
}
});
});
Notes.json?page=1-20&callback=? on the end. This is the API in action and you can call most urls that way.
Answers
In this case it wouls solve that problem... :P
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Then , How can I show more data like posters , posting date , topic view count?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://ebay.fakjai.com/bbs/top20.php
- 1Spam
- Abuse
- Troll
-1 • Off Topic Insightful Awesome LOL •I'm interested in showing the guests the title of the threadb ut force them to reginstr&login to read the contents (posts)...
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •