SMF Support > SMF 2.0.x Support

ssi_news function - how to return a news topic?

(1/1)

zeroeh:
Hello,

I am currently adding a headline area on my website, I was wondering if there was a way to only call headlines(subject lines) from the news function or only the news board(ie board number "0") with the recent topic function.

Thanks.

General_Naga:
This sounds like something I was trying to do a while ago. I ended up using the attached code, what it does is call the titles/subjects of all the topics in a specific board. It also links the titles/subjects back to their respective topics.

This any help?


--- Code: ---<?php 
$array = ssi_boardNews(2, null, null, null, 'array');
foreach ($array as $news)
{
    echo '
<table border="0" width="100%" align="center" class="ssi_table">
<tr>
 <td><div align="center"><b><a href="', $news['href'], '">', $news['subject'], '</a></b></div></td>
 </tr>
</table>
<br />
';
}
?>
--- End code ---

Rumbaar:
These threads might offer additional help as well:
SSI Readme
[README] SSI FAQ\'s

Navigation

[0] Message Index

Go to full version