news v1.1.0 (CMS plugin)
Description
- The PHP news plugin for the CMS script allows multiple users to submit and edit news. You can set news to expires at a set time. It also includes an option to archive so visitors can see expired news articles.
Download
Terms of Use
Script is released as public domain. For full Terms of Use visit my Use Policy
Instructions
Adding plugin
- Make sure your CMS Framework is up and working
- Open and run addPlugin_news.php in your browser. This creates the necessary tables and settings.
- When you install the plugin, for security reasons, the default permission set for all users and admins is "no access" so if you want to give specific users access to ricolog, you need to go to the admn.php and edit the ricolog permission for the users
Adding News
- When adding news Expires is the last date the news is shown. After that date, the news isn't displayed on page one anymore and must be accessed through "Older News" links.
- Header is the news title. It is limited to 100 characters
- Description is the main body of the news. It is limited to 65,535 characters
Displaying News
- The php needed to display the news is included in the displayNews.php file. The HTML to customize the look of the news is at the bottom of the page. You are encouraged to modify to your own look as it should be easy to customize. Just remember the required PHP fields are the <?=$news[$key]['header']?> type tags
- You can place (or remove) <?=GetPageNumbers()?> to where you want your links to old news articles. If you remove it, only the current news will be viewable. once news expires, it would no longer be accessible/visible to visitors
- at the top of displayNews.php are two settings. $config['items'] is the number of old news entries to show per page. All current news items are all displayed on the first page have no limit number.
- $config['maxShow'] is the maximum page number links to show each side of current page (incase you have 100+ news pages, it doesn't show the links to all 100 pages)
About
- Creates one table in your database. A "cms_news" table to store all the entries (can be renamed)
- Four Admin user permission levels
- 0: No access. Default access level. Users cannot even login to news
- 1: Add-only access. Users can login and add new news. Can not edit any news
- 2: Add news, edit news if originated. Users can add news and edit news they created (cannot edit news created by other users)
- 3: Full access - add/edit all. Users can add news and edit any news created by any user