Fork me on GitHub

News block-> list recent news with a summary of last one  Bottom

  • Hi guys

    I have tried to find it, but couldn't (althought I didn't go through 107 pages of threads wink )

    I am looking for a newsmodule for my American Football site.
    (http://www.amsterdam-crusaders.nl where I want to start using PustNuke like I am testing here http://www.amsterdam-crusaders.nl/nuke/ )

    I want to convert the whole site to PostNuke but am not totally convinced. I have to be able to have a roster, recent news/gamereports, info about our club, etc. ....

    I want to be albe to post news messages/gamereports.
    I want them to be in a list of 10 on the frontpage
    But only the titles and the dates.
    And from the most recent one I want it to show a summary. And if you click read more, I want it to expand
    Like in EzPortal for phpBB (http://smartor.is-root.com)

    Is there a module like this???
    Or what changes should I make to the PHP to make it work ???
    Hopefully I post this in the right place and hopefully there is someone that understands me

    cheers
    RookY
  • You can create a block with the story titles (including the date).

    The amount of stories on the front page can be added as followed:

    save a backup copy of /modules/News/funcs.php

    edit /modules/News/funcs.php

    find the line:

    function getArticles($where, $order, $limit, $startnum=0) {

    Add $limit=1; (numer 1 is the amount of stories) after that line so that it looks like this:

    function getArticles($where, $order, $limit, $startnum=0) {
    $limit=1;

    Good luck
  • Ha... I should be able to do that.
    Thnx

    is it possible to have a summary of the newest topic

    Quote


    ======================
    NEWS
    ======================
    it works by admin 4-5-2004
    thnx to the help of ursel it really works now
    bla bla bla
    bla bla bla
    . . . . . read more
    ---------------------------------------
    Site is ready by admin 3-5-2004
    busy on site by admin 2-5-2004
    etc
    ======================


    do you get what I mean?
  • You would like to have the other news in the same blokc as the news is posted???
  • indeed...
    if you have the frontpage of www.portnuke.com
    There is a block pnNews. you see a listing of all the news.
    I would just like that first one is displayed as a summary
    ... in the same block!
  • Using AutoTheme you can create or edit a theme where you've got a block position underneath. With this setting you can create a storie-block for all the news items and showing only the titels.

    Above this block there will be the stories introduction. With the code in my previous post you can set the amount of introduction of the stories displayed on your frontpage.
  • I am using AT
    Will take a look at it.
    Have to study now because I have an exam tomorrow...
    icon_frown

    But tomorrow evening I WILL BE BACK icon_lol

    I would like to manually make this block.
    Be able to adjust what I want.

    Can I change the size of the block in the 'center'?
    Now they are 100%
    what if I want 2 block in the center that are both 45%?

    talk 2 u soon

    Thnx for all the help
  • Well, I'm not a coder, so I can't help you further more, only pointing you in the right direction.

    Sure the size of the blocks can be adjusted, but I don't know how to do that. Maybe someone else can jump in here to help you out. Also I don;t know how much you are familiair with PHP otherwise, take a look at php.net. Here you can find the information of how to code in PHP.

    Good luck and keep is informed.
  • I understand a bit in PHP
    Should be able to adjust stuff, but not too much :)

    Is there anyone that can tell me where and how I can resize the blocks in the center?
    Like if I want the NewsList and Recent topics side by side
    and below the admin messages full width.
    how do I do that?
    THnx

This list is based on users active over the last 60 minutes.