The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Pulling threads and displaying elsewhere
While I'm working on a project, I'm fixing to start on another. What I need to do is pull the latest x threads from forum y.
For example: I want to say let me display the last 3 or 6 (editable) threads from forum 103 (aka http://www.yoursite.com/forumdisplay.php?f=73). How should I best approach this? |
#2
|
||||
|
||||
Is it a public forum ? What do you mean by 'editable' threads (open ?)
|
#3
|
||||
|
||||
It is a public forum, but I was just using that as an example. Editable meaning that it can be controlled eventually by the admincp. I want to be able to put put in 3, 4, or 5, latest threads to be chosen and to be able to change this at a later time.
|
#4
|
||||
|
||||
If it's a publicly viewable forum then just a bit of PHP to run an SQL Select
(Select * from thread where forumid = 123 order by dateline desc limit 5) Then more php to loop through the resulting data displaying the thread information as required. You can create a couple of settings in vbulletin options for the forumid and limit, then use them in the php so you can change the values in your acp. |
#5
|
||||
|
||||
Ok, thanks I figured it would be something like that - seems easy enough anyways. I'll play around with this next week or after that when I can get to work on it.
|
#6
|
||||
|
||||
Ok, two more questions...
(I was gonna start on this next week but decided to start earlier). 1. How do I pull the title from the forumid? (eg. the forum's title) - 2. How do I pull the post from the threadid? Here's my work in progress... PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|