Well, I did something called a dump, which shows you all the data inside the array. You need to replace this:
Code:
while ($thread = $vbulletin->db->fetch_array($threads))
{
// display data is in $thread
}
With this:
Code:
while ($thread = $vbulletin->db->fetch_array($threads))
{
echo "<pre>";var_dump($thread);die;
}
It's going to list a bunch of items. You need to copy that and save that information in a text document or something (to refer back to later).
For me, I needed to gather the Title of the thread and the persons name who posted the thread, so it was in the format
"Thread Title!" - By UsernameHere
The two variables for that are ['title'] and ['postusername']. Once you have the variables you need, You can gather them by using an echo function:
Code:
while ($thread = $vbulletin->db->fetch_array($threads))
{
echo $thread['title']." - By ".$thread['postusername']."<br>";
}
Basically, using the echo function, then following it with the array $thread and the variable ['title'] will give you this:
Code:
{
echo $thread['title']
}
Hope that helps! I went to
http://www.phpfreaks.com to get help on this matter. They were very friendly and responded very quickly.