[nodebb-plugin-featured-topics-extended] Feature Topics in a News/Blog page and Widgets.
Hey there, thanks for checking out my plugin. Please be aware this plugin is still in it's early stages. While many features do work, many more features have yet to be implemented. I decided to make an official topic for it now because I get so many other posts/topics/messages on it and wanted to centralise discussion into one place.
Source: (MIT license)
Featured Topic Lists
This plugin lets users add topics to a list, and feature them on different areas of the forum. There are two types of lists; User Lists which are available to every user, and Global Lists which are available to Admins and Global Mods. Topics can be added to a User List by using the
Post Toolsmenu on the first post of a topic. Topics can be added to a Global List by using the
Topic Toolsmenu of a topic.
/newspage is created which displays the topics from the Global List
Newsin a blog-like style.
The style of the news page is very customisable from within the ACP settings page. You can also select from a list of styles that mimic popular blogging sites.
Like the news page, a page is created for users at
/user/username/blog, which displays the topics from the User List
Widgets are the core of
Featured Topics Extended. With widgets, you can place a
Featured Topic Listalmost anywhere on your forum. Widgets are available that match parts of your forum's theme exactly or that mimic widgets from other plugins such as widget-essentials.
The news page itself is also available in widget form. In this way, you can have any page display blog-like topics using their own list and their own style.
New Widget Functionality
Per-user widget settings. User repositionable widgets. Enhanced widget GUI.
- Better templates for blog widgets.
- Style editor maybe.
Hey, I'll get some basic docs up soon
Here's an intro:
The plugin works by featuring topics, you can use
Topic Toolsfrom within a topic to feature that specific topic, or new topics in a category can be auto-featured by using the plugin's ACP page.
The topics can be featured on widgets and/or on the
/newspage. The news page uses a special blog-like template which you can customise on the plugin ACP page. The news page can also be set to your forum homepage in
General=>Homepagein the ACP. The news page also has an extensive amount of widget areas including header, footer, left bar, right bar, before topics, after topics, and between topics.
Let me know if anything doesn't work for you or you want something added. The plugin is barely in a beta state, and I haven't added half the features I want in the final plugin yet.
@yariplus How do I get rid of the '1" on the bottom?
@evoixmr Hmm. That's the paginator, do you want it hidden when it's only one page?
I can probably add a few display options in the settings page.
@yariplus It just mess up tre view counts, everytime I click it add one view count. How many topics per page? Does inage show up? Can I control the number of topics?
@evoixmr On that template, the topic image will appear on the right, replacing the poster's icon.
Those other things are all options I will be adding to the settings page.
@yariplus Can this act like a newsfeed? Who can add to the featured topic? how long will the topic be consider new? Instead of pages, can you set this up to scroll and autoload every 5-10 items?
Can you also set to follow user permissions?
Can this act like a newsfeed?
Who can add to the featured topic?
Currently only Admins, but this will change when I add multiple feature lists and personal feature lists.
how long will the topic be consider new?
There's no expiration currently.
Instead of pages, can you set this up to scroll and autoload every 5-10 items?
I personally don't like infinite scroll, but if enough people want it, I can add it.
Can you also set to follow user permissions?
It currently should obey the user's view permissions. There will be added permissions once multiple lists are added.
@yariplus The permission is being ignore on display but clicking continue reading is following permission.
@yariplus All offline users on featured topic are showing online.
The permission is being ignore on display but clicking continue reading is following permission.
Thanks, should be fixed now.
All offline users on featured topic are showing online.
I believe this is a problem with core. I sent a PR to fix.
@yariplus When nodebb-plugin-lightbox is activated the pictures on the feature topic are showing in full size, the rest of pictures on the forum does not have this issue.
Also some profile pictures are going pass the box (even with lightbox disabled).
@evoixmr Not 100% sure, but I think it should be good now. lmk.
@yariplus It worked, The ones with profile picture are showing online/offline correctly.
@yariplus Everytime the page is refresh the latest featured topic increases 1 count. It only does this for the most recent.
@yariplus Can you look at the view count issue?
@evoixmr This is intentional. I will be adding an option to turn it off or on for all topics, for the next update.
@yariplus Is there a way to customize the style of the news page to match the rest of the forum theme? It doesn't look like there's anywhere for me to input styles when I select "Custom" for the template when I'm on the plugins page in the ACP.
Are you looking for a form to edit styles? Normally, you would use the custom CSS section of the ACP to add styles. If you have an example site I can help you with CSS rules. A form may be added in the future, but for now you should use custom CSS rules.
As for the custom template option, it's not particularly useful unless you know the template variables. Honestly, that was just me messing with using the ace editor as a config value. It may be more useful at some point but for now I would leave it on Porta.
@yariplus Thanks for your quick reply! I guess I must've misread the documentation. I've tested out customizing it in the Custom CSS section and it works for me. Thanks again !