My News hack [message #162735] |
Sat, 10 July 2010 09:26 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
I don't know if anyone could make any use of this, but this is what I am using and it works fine for me.
One change that I have been to lazy to do, is that the defined forum for news items could be a GLOBALS variable. I have just entered it directly into the code on line 190 and 191 in news.php.t
The code is surely poor and most likely unsafe, but it works for me!
What it does is:
It takes the first post in each topic created in a specified forum and displays them, offering links to comment on the news article.
The read/unread icon on the comments is wrong at the moment, it only checks against "Mark all forums read" clicks. I'll fix that some year.
I have a bunch of specializations done in my other template files depending on what forum is being browsed, in my news forum, i have one layout for a post depending if its the root_msg and one if its a post that follows, this is a little bit trickier to share, since its so dependant on my own CSS and layouts etc.
Anyways, this code SHOULD work off the bat to at least emulate a news page.
-
Attachment: news.zip
(Size: 5.43KB, Downloaded 810 times)
Ginnunga Gaming
|
|
|
Re: My News hack [message #162736 is a reply to message #162735] |
Sat, 10 July 2010 09:27 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
I have not tried this code on any other installation of FUDforum than my own, I have no idea if it works on other versions. I can to some tiny extent try to help you adopt it if there isnt already any better versions out there.
Ginnunga Gaming
|
|
|
|
|