Menu

#16 Help On Showing News

open
nobody
None
5
2003-05-13
2003-05-13
Anonymous
No

How can i make it so visitors can see the news on a
html page
scinse news are stored in .txt file
how can i make it sho wthe news on news.html page?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Does anyone answer the Questions in this Forum ???

    Where the hell is the page to display the actual news you
    have posted, all I keep getting is the log-in first time page !

    Someone help for christ sake.

     
  • Nobody/Anonymous

    Logged In: NO

    Does anyone answer the Questions in this Forum ???

    Where the hell is the page to display the actual news you
    have posted, all I keep getting is the log-in first time page !

    Someone help for christ sake.

     
  • Nobody/Anonymous

    Logged In: NO

    This is for newsPHP v216:

    Within the Admin Settings/News Settings/News Format:

    <a href="#<NewsID>"><br /><NewsSubject> </a> at <NewsDate>
    by <a href ="mailto:<NewsEmail>"><NewsUser></a><br /><br /
    ><NewsText><br /><br />

    That should work... does for me.

    P.S. For more info read the "Click Here for a list of available inserts for
    use in the 'Format' settings." at the top of the settings panel... those are
    tags you can use to format your output.

    And if you did not get how to display the news on your PHP page, just
    insert this anywhere between the <body>...</body> tags:

    <?php include ("nphp/news.txt"); ?>

    For example, my news .txt is located:

    root/news/news.txt

    The page I want the news to display is in the root directory. Here is the
    call:

    <?php include ("./news/news.txt"); ?>

    Hope that helps.
    Cheers
    micky

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.