Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Show latest posts outside of forum

jokismojokismo New
edited October 2012 in Vanilla 2.0 - 2.8

I tried for the last few days unsuccessfully to find a way to do this and it was very frustrating. I worked out something, I'm pretty new at coding so might be a terrible method but it works.

Access-Control-Allow-Origin must be set in Apache if the site you are pushing to is not hosted on the localhost:

LoadModule headers_module modules/mod_headers.so

<Directory /> Header set Access-Control-Allow-Origin "*" </Directory>

The code:
http://jsfiddle.net/skH5T/

Im showing time and discussion title, you can look at the json file in your browser and choose the strings you wish to pull.
the .replace is there because there were html styling arguments in the returned strings.
Loads on dom ready and refreshed every 60000 ms.

Comments

Sign In or Register to comment.