PDA

View Full Version : Vbulletin with Smarty to display latest threads


ctfortner
11-29-2007, 01:25 PM
Hello,

I have a website, which is Smarty based with templates.

On my homepage, I have on the left hand side below the login box, I have a section there called Latest Forum posts. The software/script I am using has its own built in forum, this is not Vbulletin.

What I am trying to do, now that i have vbulletin , is to pull the latest VB posts and put into that area. I am trying to format it the same, to display Thread title (hyperlinked), poster, date, time. I know where to make the change (which .tpl file to edit) but i dont know how to get the php code converted into smarty for it to work. I have seen this PHP code (http://www.vbulletin.com/forum/showthread.php?t=159044) on VB site, which is a little messy/unformatted, and someone also provided this for me to play around with. However, both are PHP, and i want to use this with smarty somehow.

it doesnt show date/time, but i assume could be added. If you have an easier way of doing this, that would be great too. I just want to somehow get the latest 10 threads on the homepage, in that same area.

Do you know how I can make something like this work in a Smarty template file?

Thanks,
Todd