"News" [message #37899] |
Sun, 01 July 2007 20:02 |
Starcitsura
Messages: 9 Registered: February 2007
Karma: 0
|
Junior Member |
|
|
Before I switched to FUD, I was using phpBB, and I had a "News Feed" on the main page of my site, which took the 5 most recently made threads in a particular board. From those 5 threads it took the first post of each, showed the title, the post, and how many responses had been made to it.
I would like to do the same with FUD, but I really have no idea where to start.
|
|
|
Re: "News" [message #38651 is a reply to message #37899] |
Tue, 21 August 2007 19:24 |
zushiba
Messages: 20 Registered: May 2003
Karma: 0
|
Junior Member |
|
|
I wrestled with it for months, the RDF feed just won't do it :/
It's easier just to use another system for your news.
The RDF Feed thinger will grab the most recent posts but that includes replies.
[Updated on: Tue, 21 August 2007 19:25] Report message to a moderator
|
|
|
Re: "News" [message #39077 is a reply to message #38651] |
Tue, 25 September 2007 15:10 |
Marticus
Messages: 272 Registered: June 2002
Karma: 1
|
Senior Member |
|
|
I've always not cared for this. I would rather distinguish a new topic from its replies so that a popular title doesn't fill up the max slots in a "latest topics" listing. That and the fact that rdf seems to include topics in non-public forums as well as restricted I find very irritating.
|
|
|
|
|
Re: "News" [message #40000 is a reply to message #37899] |
Tue, 01 January 2008 19:48 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
Perhaps you are looking for something like this:
http://www.ginnunga.org/forums/index.php?t=thread&frm_id=118
What I did was to add simple IF statements in the templates. In this case my code (you cant really use this, but it can give you a hint) looks like this:
Thread.tmpl -> thread_list and replace
{TEMPLATE-DATA: thread_list_table_data}
with
{IF: ($frm->id == 118)} <!-- IF NEWS -->
<tr><td style=""><img src="{THEME_IMAGE_ROOT}/news2.png" alt="News" align="left"><hr style="position: relative; left: -18px;top: 18px;border: 0px;border-bottom:1px dotted #aaaaaa;height: 1px;"><span style="font-size: 15pt; color: #660000;position: relative;top: -12px;"> Ginnunga news </span></td></tr>
{TEMPLATE-DATA: thread_list_news_data}
{ELSE}
{IF: ($frm->id == 124)} <!-- IF DOWNLOADS -->
<tr><td style=""><img src="{THEME_IMAGE_ROOT}/news2.png" alt="News" align="left"><hr style="position: relative; left: -18px;top: 18px;border: 0px;border-bottom:1px dotted #aaaaaa;height: 1px;"><span style="font-size: 15pt; color: #660000;position: relative;top: -12px;"> Ginnunga Downloads </span></td></tr>
{TEMPLATE-DATA: thread_list_downloads_data}
{ELSE} <!-- REGULAR FORUM -->
{TEMPLATE-DATA: thread_list_table_data}
{END}{END}
I also edited thread.php.t and after this line
$thread_list_table_data .= '{TEMPLATE: thread_row}';
added this:
$thread_list_news_data .= '{TEMPLATE: thread_news}';
$thread_list_downloads_data .= '{TEMPLATE: thread_downloads}';
Then I just went ahead and created subsections in thread.tmpl which were copies of thread_list and just renamed them to thread_downloads and thread_news and modified them to fit my needs.
Ginnunga Gaming
|
|
|
|
|