Navigation On Recent Cards plugin

General Discussion
  • Hi,

    I'm not sure if this is a bug; but when I click on the Recent Cards in the Carousel on my Home page it takes me to the "comments" section of the topic not the topic itself.

    Is there a way to change this?

    All the Best,


Suggested Topics

  • 0 Votes
    4 Posts

    Thanks @PitaJ

    I've created a plugin using @baris and your intended solution found here.

    Unfortunately there is no impact to the recent cards plugin or any other teasers. No regarding error or warning found in the nodebb log. This is part of the log when I run ./nodebb dev:

    verbose: [plugins] Loaded plugin: nodebb-plugin-teaser-image verbose: [plugins/fireHook] filter:teasers.configureStripTags

    Plugin is as basic as it can be:


    'use strict'; var plugin = {}; plugin.filterTeasersConfigureStripTags = async function (hookData) { // Check if the "img" tag is present in the tags array if (hookData.tags.includes('img')) { // Remove the "img" tag from the tags array hookData.tags = hookData.tags.filter(tag => tag !== 'img'); } return hookData; }; module.exports = plugin;


    { "name": "nodebb-plugin-teaser-image", "version": "1.0.0", "description": "NodeBB Plugin to show images in teasers", "main": "index.js", "dependencies": {}, "nbbpm": { "compatibility": "^1.0.0 || ^2.0.0 || ^3.0.0" } }


    { "id": "nodebb-plugin-teaser-image", "name": "Show images in Teasers", "description": "A NodeBB plugin to show images in teasers", "version": "1.0.0", "hooks": [ { "hook": "filter:teasers.configureStripTags", "method": "filterTeasersConfigureStripTags" } ] }

    Anything I have overlooked? 🤔

  • 0 Votes
    2 Posts
  • 0 Votes
    16 Posts

    @Joykiller Not sure if you're around anymore but I thought I'd respond anyway.

    The problem with maintaining a plugin and theme directory is the maintenance aspect. We simply don't have the time to make sure everything is compatible, especially since every plugin created is a community contribution.

    So we automate. We rely on plugin developers to report plugin compatibility, and serve only those plugins that are marked compatible. There is one downside, however, and that is plugins will quickly disappear in successive revisions of NodeBB unless the authors keep them up to date.

    So there's definitely space for crowdsourcing as well. If a plugin is not marked compatible by the developer directly, multiple reports of compatibility by the plugin users should also count, and if enough votes come in, then the plugin should automatically be reintroduced.

    ☝ that part isn't in yet, but it's on the wish list.

  • 1 Votes
    3 Posts

    installing from the command line does not place this plugin into the list of installed plugins. Is this plugin still functional after the last update?

  • 0 Votes
    6 Posts

    haha, that thing broke a while ago, now I just update it every time we do a minor release. should look into it when I get the time