News System version 1.2

Wed, 14 Jun 2006

I've finally got version 1.2 of the News script done. Here are some new features:

  • Categories
  • Posts can be filed under multiple categories.
  • Preview function when adding and editing a post.
  • Daylight savings time is now possible.

Anyone's following the World Cup? France were horrible. Don't know if they're gonna improve, but I know Pires and Giuly are laughing at home.

Posted at 08:40 pm in PHP scripts

Comments

  1. i tried your news script but login and pass are wrong
    by One girl on Mon, 3 Jul 2006, 04:31 pm #
  2. The initial username and password are "demo" and "demo".
    by NT on Mon, 3 Jul 2006, 08:00 pm #
  3. I tried demo demo but its wrong !!!
    by One girl on Tue, 4 Jul 2006, 10:28 am #
  4. "demo" and "demo" worked fine for me when I set mine up, maybe its a chick thing :p
    by christopher on Tue, 4 Jul 2006, 11:29 am #
  5. Ok, its work now
    But where can i edit news style
    by One girl on Tue, 4 Jul 2006, 08:41 pm #
  6. I found it, bot now i have another problem
    how can i disable linebreaks
    by One girl on Tue, 4 Jul 2006, 09:21 pm #
  7. You can't. The text is automatically formatted into paragraphs. It's a feature by the way. Don't know why you want to disable it.
    by NT on Tue, 4 Jul 2006, 10:05 pm #
  8. Because there are two linebreaks

    like this

    and this

    and again so
    by One girl on Wed, 5 Jul 2006, 07:19 am #
  9. They're called paragraphs. So that's normal.

    However, because Windows uses "\r\n", which is basically 2 line-break chacraters, to separate a line, this makes the script confused. Unix users won't have that issue, but I'll change the script a bit in the future to resolve this anyway.
    by NT on Wed, 5 Jul 2006, 12:55 pm #
  10. And why id number of post is so long 1152090210 ???
    by One girl on Fri, 7 Jul 2006, 03:28 pm #
  11. It's the computer time of the post. I could have made it shorter but it would require more processing time. Efficiency was my priority.
    by NT on Fri, 7 Jul 2006, 05:23 pm #
  12. I think its best news system that i have ever seen,
    including all things that i need, thx a lot for a wonderful job

    but one thing that i found
    If I put categories or archive before news to the left of the table it shows error, then i tried right side like http://winged.info/demo/ and it started to work
    But it's ok not a big problem
    by One girl on Fri, 7 Jul 2006, 09:21 pm #
  13. >If I put categories or archive before news to the left of the table it shows error, then i tried right side like http://winged.info/demo/ and it started to work

    That's a weird problem, really. Do you have the actual error message or the screenshot?

    Just make sure that you "include()" the script before using those "show_archives()", "show_categories()" and "show_news()" functions.
    by NT on Fri, 7 Jul 2006, 11:19 pm #
  14. so this is on the left side:

    Fatal error: Call to undefined function: show_categories() in /WWW/block_left.php on line 9

    on line 9 i have
    <?php show_categories(); ?>
    by One girl on Sat, 8 Jul 2006, 11:02 am #
  15. As I said. You have to "include()" the script at the *top* of your page before using any "show_*()".

    <?php include('PATH/TO/NEWS/news.php'); ?>
    by NT on Sat, 8 Jul 2006, 04:11 pm #
  16. ok, but i'm using right side now :)
    by One girl on Sat, 8 Jul 2006, 07:08 pm #
  17. I think I must have been one of the lucky one's! Mine installed straight in, no problems, no MySql database's (the reason I'm using it as I want it on my site) - got it installed and working within my page, with the templates edited to use my <H2> setting's and date / time layout, and I love it :)

    A huge thank you, now back to work on my new beta design, and a backlink to you ;)
    by christoper on Tue, 11 Jul 2006, 09:23 am #