View Full Version : Display Posts on external page
Twixted Chaox
12-02-2016, 11:03 PM
I'm looking to display my latest posts from a specific forum on a seperate page (using forum 'X' as a news forum)
I want to retrieve the 3 latest posts and display them in a beautifully formatted way.
So basically what I want to do is retrieve the 3 latest, return them to the php page and format the post to match my external page.
is there a way i can do this?
MarkFL
12-03-2016, 12:30 AM
Sure, you could query your database to get the post content (including thread data, icon and prefix data), make certain the user has permission to view the post, run it (and the thread title) through the censor, parse the BBCodes, fetch the user avatar if you want...you'd likely want to use a custom template to format the posts and render each post appending it to a data string within your loop, and then pass the entire string to your custom page template.
blind-eddie
12-03-2016, 01:08 AM
Wow Mark..... Great reply!
MarkFL
12-03-2016, 01:18 AM
Wow Mark..... Great reply!
I did something nearly identical with one of my products, except it was for the sidebar. :)
Twixted Chaox
12-15-2016, 11:14 PM
I figured out a way to extend the external API to give me all of the information i was looking for. Then I simply passed it through my custom formatting and voila.. instant external posts the way i wanted them...
should i release this as an addon? plugin? hack? not sure what it classifies as...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.