Changes between Initial Version and Version 1 of ProjectNews


Ignore:
Timestamp:
Dec 17, 2009, 10:35:06 AM (15 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProjectNews

    v1 v1  
     1Most projects have a "News" section on their front page.
     2
     3This is typically implemented using BOINC's forum system.
     4News items are stored as threads in a special forum,
     5named 'News' by default
     6(you can change this by defining a constant NEW_FORUM_NAME in project.inc).
     7This forum should have 'is_dev_blog' set to 1,
     8so that only project admins will be able to create threads
     9(non-admins will, however, be able to reply to threads).
     10The forum-creation script ops/create_forums.php creates this forum.
     11
     12To show news items on your front page, include
     13{{{
     14show_news(0, 5);
     15}}}
     16in your index.php (the "5" says to show the 5 most recent items).
     17
     18Prior to 12/2009, news was stored in a flat file html/project/project_news.inc.
     19To convert this to forum format, run the script html/ops/news_convert.php
     20
     21== Temporary news items ==
     22
     23You may want to show "temporary" news items,
     24e.g. saying that your project is offline.
     25To do this, copy html/user/sample_motd.php to motd.php
     26and edit it.
     27
     28The resulting items will be shown at the top of your news if you put
     29
     30{{{
     31include("motd.php");
     32}}}
     33just before show_news().
     34
     35If your database server is down,
     36only temporary news items will be shown.