Giter Site home page Giter Site logo

nodebb-plugin-featured-threads's Introduction

NodeBB Featured Threads

Featured Threads & Widget for NodeBB. Allows admins to feature multiple threads and display on your NodeBB forum as a widget.

Comes with two widgets, a 4x size for content widget areas (ex. custom homepage) and a 1x size for sidebar widget areas.

Screenshots

4x

modal

Installation

npm install nodebb-plugin-featured-threads

nodebb-plugin-featured-threads's People

Contributors

barisusakli avatar psychobunny avatar yariplus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodebb-plugin-featured-threads's Issues

URL issue on v1.x.x

Hello,

I've notice that url generation's variable {relative_path} was not replaced i changed it with {config.relative_path} and it worked for me
within featured-topics-sidebar.tpl

-           <strong><a href="{relative_path}/topic/{topics.slug}">{topics.title}</a></strong>
+           <strong><a href="{config.relative_path}/topic/{topics.slug}">{topics.title}</a></strong>

It seems that {topics.relativeTime} also doesn't works either.

error with nodebb 0.6.x

error: TypeError: Cannot call method 'push' of undefined
at Object.Plugin.addThreadTools as method
at /home/reddcoin/reddcointalk.org/src/plugins/hooks.js:89:12
at /home/reddcoin/reddcointalk.org/node_modules/async/lib/async.js:272:13
at iterate (/home/reddcoin/reddcointalk.org/node_modules/async/lib/async.js:149:13)
at Object.async.eachSeries (/home/reddcoin/reddcointalk.org/node_modules/async/lib/async.js:165:9)
at Object.async.reduce (/home/reddcoin/reddcointalk.org/node_modules/async/lib/async.js:271:15)
at fireFilterHook (/home/reddcoin/reddcointalk.org/src/plugins/hooks.js:81:9)
at Plugins.fireHook (/home/reddcoin/reddcointalk.org/src/plugins/hooks.js:66:5)
at Object.threadTools (/home/reddcoin/reddcointalk.org/node_modules/async/lib/async.js:656:23)
at /home/reddcoin/reddcointalk.org/node_modules/async/lib/async.js:583:25
[cluster] Child Process (2148) has exited (code: 1, signal: null)

TypeError: Cannot call method 'render' of undefined

This doesn't work for 0.6.x

30/1 08:33 [19501] - error: TypeError: Cannot call method 'render' of undefined
    at /home/bvse/node_modules/nodebb-plugin-featured-threads/library.js:51:8
    at Object.Topics.getTopicsByTids (/home/bvse/src/topics.js:141:11)
    at /home/bvse/node_modules/nodebb-plugin-featured-threads/library.js:24:11
    at try_callback (/home/bvse/node_modules/redis/index.js:573:9)
    at RedisClient.return_reply (/home/bvse/node_modules/redis/index.js:661:13)
    at ReplyParser.<anonymous> (/home/bvse/node_modules/redis/index.js:309:14)
    at ReplyParser.emit (events.js:95:17)
    at ReplyParser.send_reply (/home/bvse/node_modules/redis/lib/parser/javascript.js:300:10)
    at ReplyParser.execute (/home/bvse/node_modules/redis/lib/parser/javascript.js:211:22)
    at RedisClient.on_data (/home/bvse/node_modules/redis/index.js:534:27)
[cluster] Child Process (19501) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
30/1 08:33 [19518] - info: Time: Fri Jan 30 2015 08:33:23 GMT-0500 (EST)
30/1 08:33 [19518] - info: Initializing NodeBB v0.6.1-dev
30/1 08:33 [19518] - info: Enabling 'trust proxy'
30/1 08:33 [19518] - info: [plugins/spam-be-gone] Settings loaded
30/1 08:33 [19518] - warn: [meta.scripts.get] Could not resolve mapped path: plugins/nodebb-plugin-featured-threads/lib/main.js. Are you sure it is defined by a plugin?
30/1 08:33 [19518] - info: NodeBB is now listening on: 0.0.0.0:4567
30/1 08:33 [19518] - info: NodeBB Ready

How does this work?

Is this completed? If so, how does it work? Can it be implemented on the home page? If so that would be awesome! Good repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.