Portal News Preview
Add Read More button to news in portal, cutting them in three different way
Version: 1.0
Autor: erbodega
Deutsche Übersetzung: noch nicht übersetzt
Hochgeladen: 11.01.2016
Letzte Aktualisierung: 12.01.2016
Support: https://www.mybb.de/forum/thread-33036.html (0 Beiträge)
Kompatibilität: MyBB 1.8.x
Bisherige Downloads: 385
Autor: erbodega
Deutsche Übersetzung: noch nicht übersetzt
Hochgeladen: 11.01.2016
Letzte Aktualisierung: 12.01.2016
Support: https://www.mybb.de/forum/thread-33036.html (0 Beiträge)
Kompatibilität: MyBB 1.8.x
Bisherige Downloads: 385
Copyright Notice
This plugin is written by me, bodega, and everything should be fine. I tested it several time over a new installation of MyBB 1.8.6 and haven't ever encountered a problem.
You can find more web development related content on my GitHub profile: erbodega.github.io
If you are a dev and want impove my plugin feel free to send me a pull request, if you code is good i will accept it.
Don't remove the copyright notice from this file (ReadMe.txt) and don't change the copyright information inside the plugin, respect my work.
Portal News Preview 1.0 by bodega - ps4mod.net - erbodega.github.io
This plugin cut the news in the portal adding a Read More button, just like WordPress do. You can choose three way to cut your news, just choose what you prefer.
Before starting i suggest you to edit the templates of your portal in order to remove the avatar column, having a more blog-style portal that is really better.
The three way to cut the news are:
- After the first image (wordpress like)
- After a string
- After N characters (It may show broken bbcode if the setted up number is in the middle of a bbcode tag, i know this and had already a solution, i just need the time to update the plugin)
Installation
The installation process is very simply, just:
- Upload the plugin file "portalnewspreview.php" to yourMyBBforum.com/inc/plugins
- Activate and Install the plugin via the Admin Control Panel -> Plugins
- Eventually you may want to change the default configuration. To access them jus go to Admin CP -> Setting -> Portal Settings: you will find the configuration at the bottom.
If you want to unistall this plugin just:
- Go to Admin Control Panel -> Plugins
- Click on Deactivate
- Click on Uninstall
- Remove the php file via ftp
Change Read More button style
This plugin will install a new css in the default theme, so if you want to edit the background color etc. just go to Admin CP -> Template & Style -> Themes then choose your theme.
You should see a new css file called readmore.css that is Inherited from MyBB Master Style, just edit it and save changes. Any changes you make will break the inheritance, and the stylesheet will be copied to your theme.
Test the functionality
If you want to test the plugin functionality, post this thread in one of your forum where the threads appear in the portal as a news:
Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread. Testing thread.
Text before the cut string that is: cut_me_here
This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal. This should not be visible on portal.
Quelle: Portal News Preview bei MyBB.com
Ähnliche Erweiterungen
Thread Preview 1.0 von dragonexpert für MyBB 1.6.x
This displays a preview of the first post on forumdisplay.php
336 Downloads
This displays a preview of the first post on forumdisplay.php
336 Downloads
News Ticker 1.0 von mastermunj für MyBB 1.4.x
Shows threads from specified forum(s) as ticker on top of the page.
339 Downloads
Shows threads from specified forum(s) as ticker on top of the page.
339 Downloads
Latest News Plugin 1.0 von Michi26206 für MyBB 1.4.x
A Plugin which shows the latest News on the Index Page. | Ein Plugin das die letzten News auf der Startseite anzeigt
355 Downloads
A Plugin which shows the latest News on the Index Page. | Ein Plugin das die letzten News auf der Startseite anzeigt
355 Downloads
MyBB UserCP Attachment Image Preview 1.0 von SvePu für MyBB 1.8.x
MyBB 1.8 Plugin to show preview of the attached image in usercp on mouse over attachment link.
195 Downloads
MyBB 1.8 Plugin to show preview of the attached image in usercp on mouse over attachment link.
195 Downloads