Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Dec 2016, 00:03
Twixted Chaox's Avatar
Twixted Chaox Twixted Chaox is offline
 
Join Date: Nov 2016
Display Posts on external page

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?
Reply With Quote
  #2  
Old 03 Dec 2016, 01:30
MarkFL's Avatar
MarkFL MarkFL is online now
 
Join Date: Feb 2014
Real name: Mark
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.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 03 Dec 2016, 02:08
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Real name: Tim
Wow Mark..... Great reply!
__________________
LONG LIVE 3.8 SERIES
National Arcade Competition Club- NACC All arcade edits will work on vb4.
Check out my heavily modified ibproarcade with over 50,000 games for you, free of charge!
Exclusive arcade addons, edits and skins were made by stangger5 owner of Next Level Arcade
Reply With Quote
  #4  
Old 03 Dec 2016, 02:18
MarkFL's Avatar
MarkFL MarkFL is online now
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by blind-eddie View Post
Wow Mark..... Great reply!
I did something nearly identical with one of my products, except it was for the sidebar.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #5  
Old 16 Dec 2016, 00:14
Twixted Chaox's Avatar
Twixted Chaox Twixted Chaox is offline
 
Join Date: Nov 2016
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...

Last edited by Twixted Chaox; 16 Dec 2016 at 00:15. Reason: release question
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:19.

Layout Options | Width: Wide Color: