The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to pull vbulletin recent activity?
I'd like to show recent posts from the vB 4.1.9 forum on a completely different site I own (which is a static site not running vB).
Any ideas on how to do this? |
#2
|
|||
|
|||
You could use the "external data provider". Here's a link to a page from the manual that shows how to use the javascript feed to put recent posts in an html page: https://www.vbulletin.com/docs/html/...r_implementing
|
#3
|
|||
|
|||
Thanks, Kevin. I just tried that by creating a new page on the target site and inserting that code (after modifying the URL to that of my site's forums').
All I get however is a blank page. Do I need to modify anything else in that sample code apart from the URL to get it to show in html? And do I need to do anything on the source site? |
#4
|
|||
|
|||
You need to go in to the settings and in the "External Data Provider" section set "Enable External Javascript" to yes. Also, this will only work if your forums are readable by guests.
|
#5
|
|||
|
|||
That's cool, it works now, thanks
One further question, is it possible for each line to link back to the original thread and how would that be done? |
#6
|
|||
|
|||
There should be a threads[i].threadid, so you can write out a link, something like:
Code:
document.writeln('<a href="http://www.mysite.com/showthread.php?t=' + threads[i].threadid + '">' + threads[i].title + " (" + threads[i].poster + ")</a><br />"); and of course replace www.mysite.com with your actual site. (I didn't try that code so you might find a typo or two in there). ETA: ok, I tried the code and fixed it, and updated the above. |
#7
|
|||
|
|||
Er, no, sorry there's no chance of ME finding a typo or two in there!
But there does seem to be one as that code isn't working for me. |
#9
|
|||
|
|||
That is absolutely fantastic! It works brilliantly for me
Thanks so much, Kevin. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|