Okay, I'm currently designing a theme. I't will include Content Spy.
what I'm trying to do is extract 5 or 6 of the latest topics from the content spy and place them in a Drop down navigation list, and this list I'm wanting to create will be a constant feed, so it will be constantly extracting the latest topics from the content spy and placing them in this custom navigation dropdown menu.
I'm assuming this is going to take some doing, I'm currently working on localhost. since my hosting has pretty much died XD.
Or even if that isn't possible just extracting 5 or 6 of the latest topics from the latest topics hook which is already implanted on the forum software.
I'm assuming that would be a lot easier than the first option, since it would just mean extracting the recent topics from the db.
Looking for some help here, please
I've also tried with php & rss feed, i'll display the php code I'm using;
<?php
$rss = new DOMDocument();
$rss->load('http://localhost/index.php?app=core&module=global§ion=rss&type=forums&id=1');
$feed = array();
foreach ($rss->getElementsByTagName('item') as $node) {
$item = array (
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
);
array_push($feed, $item);
}
echo '<ul>';
for($x=0;$x<count($feed);$x++) {
$title = str_replace(' & ', ' & ', $feed[$x]['title']);
$link = $feed[$x]['link'];
echo '<li><a href="'.$link.'" title="'.$title.'">'.$title.'</a></li>';
}
echo '</ul>';
?>
but this also didn't seem to work just gave me this;
Solved! Managed to extract from content spy!