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 07:08 | 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 special page. | + | This extension allows users to mark topics or posts as "news". The news is shown on a special page. |
===== Features ===== | ===== Features ===== | ||
- | A user who have according permission can mark topic or posts. News placed in the special tables "pun_forum_news". If topic marked as news, subject will be added to the news message. All news are displayed at the special page. News are available via rss feed. | + | 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_forum_news 1.0.0 (current version)==== | ==== pun_forum_news 1.0.0 (current version)==== | ||
**Interface** | **Interface** | ||
* Administrator's menu | * Administrator's menu | ||
- | * User >> Groups >> Edit this group (or Add new group) >> Allow users to add forum news. If checked, user of this group will be mark topics or posts as news. | + | * 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 | * Forum's header | ||
* "News" link (refers to the page with news). | * "News" link (refers to the page with news). | ||
* Post new topic page, edit post page, reply form, quick reply form | * Post new topic page, edit post page, reply form, quick reply form | ||
- | * "Mark as news" option. If checked, topic or post marked as news. | + | * "Mark as news" option. If checked, the topic or post is marked as news. |
* News page | * News page | ||
- | * Page where posts and topics marked as news appeared. | + | * A page where posts and topics marked as news appear. |
**DB schema** | **DB schema** | ||
- | * New table "pun_forum_news". Stores information about news. | + | * A new table "pun_forum_news". Stores information about news. |
^ Field ^ Type ^ Default ^ Description^ | ^ Field ^ Type ^ Default ^ Description^ | ||
| post_id | int(10) | | Post ID. | | | post_id | int(10) | | Post ID. | | ||
| forum_id | int(10) | | Forum ID. | | | forum_id | int(10) | | Forum ID. | | ||
- | | poster | varchar(200) | | Name of user, who posted a news. | | + | | poster | varchar(200) | | Name of the user who has posted news. | |
- | | poster_id | int(10) | | ID of user, who posted a news. | | + | | poster_id | int(10) | | ID of the user who has posted news. | |
| message | TEXT | | News message. | | | message | TEXT | | News message. | | ||
- | | hide_smilies | tinyint(1) | 0 | Show hide smiles in the news message or not. | | + | | hide_smilies | tinyint(1) | 0 | Show smilies in the news message or not. | |
- | | posted |int(10) | 0 | Time when news was added. | | + | | posted |int(10) | 0 | Time when the news was added. | |
* Additional field in **posts** table | * Additional field in **posts** table | ||
^ Field ^ Type ^ Default ^ Description^ | ^ Field ^ Type ^ Default ^ Description^ | ||
- | | forum_news | tinyint(1) | NULL | Shows marked post as news or not. | | + | | forum_news | tinyint(1) | NULL | Shows the marked post as news or not. | |
* Additional field in **groups** table | * Additional field in **groups** table | ||
^ Field ^ Type ^ Default ^ Description^ | ^ Field ^ Type ^ Default ^ Description^ | ||
- | | g_add_forum_news | tinyint(1) | NULL | Shows can user to mark topics and posts as news. | | + | | g_add_forum_news | tinyint(1) | NULL | Shows whether the user can mark topics and posts as news. | |
===== Feature requests ===== | ===== Feature requests ===== | ||
+ | * Add an indication of posts that have been marked as news. | ||
===== Links ===== | ===== Links ===== | ||
* Trac tickets: <del>#321</del>. | * Trac tickets: <del>#321</del>. | ||
* Browse code: | * Browse code: | ||
- | * Trac: [[http://punbb.informer.com/trac/browser/additions/punbb-1.3/extensions/pun_forum_news|Source]], [[http://punbb.informer.com/trac/log/additions/punbb-1.3/extensions/pun_forum_news|Log]] | + | * 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: [[http://punbb.informer.com/svn/additions/punbb-1.3/extensions/pun_forum_news/|/svn/additions/punbb-1.3/extensions/pun_forum_news/]] | + | * 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: [[http://punbb.informer.com/forums/topic/19620/extension-release-private-messaging-punpm/|[extension release] pun_forum_news]] | + | * Forums topic: [[https://punbb.informer.com/forums/topic/22909/extension-release-punforumnews/|[extension release] pun_forum_news]] |
- | * Visit [[http://punbb.informer.com/extensions/|PunBB extension repository]] to download this extension. | + | * Visit [[https://punbb.informer.com/extensions/|PunBB extension repository]] to download this extension. |
===== Screenshots ===== | ===== Screenshots ===== | ||
+ | === News page === | ||
+ | {{:punbb13:extensions:pun_forum_news_page.png|}} | ||
+ | |||
+ | === RSS news page === | ||
+ | {{:punbb13:extensions:pun_forum_news_rss.png|}} |