Differences
This shows you the differences between the selected revision and the current version of the page.
punbb13:extensions:pun_forum_news 2010/02/26 06:06 | punbb13:extensions:pun_forum_news 2020/02/06 11:04 current | ||
---|---|---|---|
Line 2: | Line 2: | ||
[[punbb13:extensions#Official extensions|PunBB 1.3 official extension]] | [[punbb13:extensions#Official extensions|PunBB 1.3 official extension]] | ||
* Status: **stable** | * Status: **stable** | ||
- | * Current version: **[[http://punbb.informer.com/extensions/pun_forum_news/pun_forum_news.zip|1.0.0]]** | + | * Current version: **[[https://punbb.informer.com/extensions/pun_forum_news/pun_forum_news.zip|1.0.0]]** |
===== General idea ===== | ===== General idea ===== | ||
- | The extension allows users to mark topics or posts as "news". News shows at the speical page. | + | This extension allows users to mark topics or posts as "news". The news is shown on a special page. |
+ | |||
+ | ===== Features ===== | ||
+ | Any user with the corresponding permission can mark topics or posts. News is placed in the special table "pun_forum_news". All news is displayed on a special page. News is available via rss feed. | ||
===== Specification ===== | ===== Specification ===== | ||
- | ==== pun_approval 1.0 (Current version)==== | + | ==== pun_forum_news 1.0.0 (current version)==== |
+ | **Interface** | ||
+ | * Administrator's menu | ||
+ | * User >> Groups >> Edit this group (or Add new group) >> Allow users to add forum news. If checked, users of this group will be able to mark topics or posts as news. | ||
+ | * Forum's header | ||
+ | * "News" link (refers to the page with news). | ||
+ | * Post new topic page, edit post page, reply form, quick reply form | ||
+ | * "Mark as news" option. If checked, the topic or post is marked as news. | ||
+ | * News page | ||
+ | * A page where posts and topics marked as news appear. | ||
+ | **DB schema** | ||
+ | * A new table "pun_forum_news". Stores information about news. | ||
+ | |||
+ | ^ Field ^ Type ^ Default ^ Description^ | ||
+ | | post_id | int(10) | | Post ID. | | ||
+ | | forum_id | int(10) | | Forum ID. | | ||
+ | | poster | varchar(200) | | Name of the user who has posted news. | | ||
+ | | poster_id | int(10) | | ID of the user who has posted news. | | ||
+ | | message | TEXT | | News message. | | ||
+ | | hide_smilies | tinyint(1) | 0 | Show smilies in the news message or not. | | ||
+ | | posted |int(10) | 0 | Time when the news was added. | | ||
+ | |||
+ | * Additional field in **posts** table | ||
+ | |||
+ | ^ Field ^ Type ^ Default ^ Description^ | ||
+ | | forum_news | tinyint(1) | NULL | Shows the marked post as news or not. | | ||
+ | |||
+ | * Additional field in **groups** table | ||
+ | |||
+ | ^ Field ^ Type ^ Default ^ Description^ | ||
+ | | g_add_forum_news | tinyint(1) | NULL | Shows whether the user can mark topics and posts as news. | | ||
+ | |||
+ | ===== Feature requests ===== | ||
+ | * Add an indication of posts that have been marked as news. | ||
+ | |||
+ | ===== Links ===== | ||
+ | * Trac tickets: <del>#321</del>. | ||
+ | * Browse code: | ||
+ | * Trac: [[https://punbb.informer.com/trac/browser/additions/punbb-1.3/extensions/pun_forum_news|Source]], [[https://punbb.informer.com/trac/log/additions/punbb-1.3/extensions/pun_forum_news|Log]] | ||
+ | * SVN: [[https://punbb.informer.com/svn/additions/punbb-1.3/extensions/pun_forum_news/|/svn/additions/punbb-1.3/extensions/pun_forum_news/]] | ||
+ | * Forums topic: [[https://punbb.informer.com/forums/topic/22909/extension-release-punforumnews/|[extension release] pun_forum_news]] | ||
+ | * Visit [[https://punbb.informer.com/extensions/|PunBB extension repository]] to download this extension. | ||
+ | |||
+ | ===== Screenshots ===== | ||
+ | === News page === | ||
+ | {{:punbb13:extensions:pun_forum_news_page.png|}} | ||
+ | |||
+ | === RSS news page === | ||
+ | {{:punbb13:extensions:pun_forum_news_rss.png|}} |