Skip to content
  • 0 Votes
    2 Posts
    108 Views
    crazycellsC

    In case anyone else might be intrested, I fixed this color problem using these codes:

    .category-1 , .category-70 , .category-120 { .category-children-item .fa-caret-right { color: #ff9800 !important ; } } .category-111 { .category-children-item .fa-caret-right { color: #e91e63 !important ; } } .category-2 , .category-77 , .category-78 , .category-126 , .category-127 , .category-132 , .category-93 , .category-115 { .category-children-item .fa-caret-right { color: #4caf50 !important ; } }

    Basically I had to name each category separately... So, if there is any suggestion to shorten the code, I would love to hear... ๐Ÿคฃ

  • NodeBB 3.7.0

    NodeBB Development
    3
    8 Votes
    3 Posts
    339 Views
    crazycellsC

    great job! thank you ๐Ÿ’ช

    Cat Cute GIF

  • 9 Votes
    36 Posts
    3k Views
    S

    @sharonyue said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:

    I confirmed it was done automatically. Right now nodebb-meilisearch looks 100% perfect on my site! Excellent!

    Can somebody explain me if this currently is "the best search engine" and recommened to use or is there still a big disclaimer? And if so, what is needed?

  • 3 Votes
    22 Posts
    2k Views
    S

    In regards to that topic https://community.nodebb.org/topic/16852/search-with-wildcards/4

    I am wondering how mature the meilisearch is now and if it pays off risk a switch?

  • 8 Votes
    8 Posts
    237 Views
    julianJ

    @crazycells you're passing the naked url which is not correct. You have to run it through encodeURIComponent() before using it as an url fragment

    Note the % ended symbols in my post above

    Ah, if you mean via the menu, I suppose that needs to be fixed.

  • 12 Votes
    16 Posts
    382 Views
    julianJ

    Quick update: you are now able to mention individual users in your posts, and if you are mentioned in return, you will now be notified.

    There was also a bug where remote user avatars were not showing up in your notification inbox. That has now been rectified.

    eef805e8-3ccf-47d6-b7b9-c7d96e5df9e6-image.png

  • 18 Votes
    10 Posts
    262 Views
    julianJ

    @[email protected] Thanks for the reply, I'm glad these discussions are taking place.

    I independently settled on the approach advocated in that link you shared โ€” given any Note ID, I traverse up the chain until I find the root, and that becomes the original topic post.

    If there were some sort of standard for defining a topic ID, I would use that, although I think at present there are no consistent applications.

    FEP-400e explicitly mentions forum topics, but I am not entirely certain whether this is something I'd want to follow as topic themselves don't have an "owner".

  • 0 Votes
    7 Posts
    114 Views
    barisB

    I've updated this plugin to nodebb 3.2 and up, new version is 3.0.0.

  • NodeBB 3.6.0

    NodeBB Development
    8
    8 Votes
    8 Posts
    554 Views
    barisB

    @crazycells drag and drop on mobile is โ™‹

  • 0 Votes
    6 Posts
    157 Views
    barisB

    Yeah that should work, options object is spread into the redis constructor.

  • 0 Votes
    3 Posts
    95 Views
    o              oO

    It was showing successful builds in the pretty-printed list (sorry, I lost the screen),

    then I believe this is the minification step, the webpack step, was failing based on not finding different node_modules, which turned out to be child modules like highlight.js, which are included by other packages. The child modules are apparently implicitly required and then included in client scripts.

    pnpm, which I'm using, nests its modules by default, as in:

    node_modules/parent_module/node_module/child_module

    so all of the child modules need to be hoisted by putting this in .npmrc

    node-linker=hoisted

    so now the node_modules tree is

    node_modules/parent_module
    node_module/child_module

    Why this wasn't triggered before, I have no idea.

    My last question now is how can I ensure that the build exits with a failure code in any cases like this? This may have all been designed with prioritizing getting the server back up, but this is not ideal behavior for builds like docker, where it only replaces the running instance when the new instance builds correctly.

    I'm probably going to put in something terrible like this into Dockerfile, but this is pretty hacky:

    RUN for file in admin.min.js etc etc; do \ if [ ! -f "$file" ]; then \ echo "$file not found!" && exit 1; \ fi; \ done
  • 0 Votes
    14 Posts
    625 Views
    barisB

    @crazycells that works

  • sticky widgets

    Feature Requests
    4
    0 Votes
    4 Posts
    106 Views
    barisB

    You need {{body}} inside the container. Post a screenshot of your widget settings if you can't figure it out.

  • 0 Votes
    2 Posts
    106 Views
    T

    The second question as an update for this topic is: how do I add a trailing slash to the URI of an arbitrary topic?
    Raw nginx rewrite as follows doesn't do the trick

    rewrite ^([^.]*[^/])$ $1/ permanent;

    Update:
    I need trailing slash in order to eliminate page_with_redirect issue.

  • Bulk move users to group?

    Moved Technical Support
    2
    1 Votes
    2 Posts
    73 Views
    barisB

    You would have to run a custom script like below. Place it in your nodebb folder, change the group name your special access group and run it with node myscript.js. It will add all users who have 10 posts or more into that group.

    'use strict'; const nconf = require('nconf'); nconf.file({ file: 'config.json', }); nconf.defaults({ base_dir: __dirname, views_dir: './build/public/templates', upload_path: 'public/uploads', }); const db = require('./src/database'); const groupName = '<Replace with your groupname>'; db.init((err) => { if (err) { console.log(`NodeBB could not connect to your database. Error: ${err.message}`); process.exit(); } addUsersToGroup((err) => { if (err) { console.error(err); process.exit(); } console.log('done'); process.exit(); }); }); async function addUsersToGroup(callback) { const user = require('./src/user'); const groups = require('./src/groups'); const batch = require('./src/batch'); // check if target group exists const exists = await groups.exists(groupName); if (!exists) { return callback(new Error('group does not exist')); } try { const now = Date.now(); await batch.processSortedSet('users:joindate', async (uids) => { const userData = (await user.getUsersData(uids)) .filter(u => u && u.postcount >= 10); await db.sortedSetAdd( `group:${groupName}:members`, userData.map(() => now), userData.map(u => u.uid) ); }, { batch: 500, }); const memberCount = await db.sortedSetCard(`group:${groupName}:members`); console.log('total count', memberCount); await db.setObjectField(`group:${groupName}`, 'memberCount', memberCount); await db.sortedSetAdd( 'groups:visible:memberCount', memberCount, groupName, ); callback(); } catch (err) { callback(err); } }
  • 2 Votes
    14 Posts
    385 Views
    crazycellsC

    @omega yes, I totally agree ๐Ÿ‘ It should only be at the top to show the trail of the page...

    And tag row needs to be for hashtags ๐Ÿ™‚ not for the sub-category name...

  • 0 Votes
    2 Posts
    52 Views
    phenomlabP

    @ursyaathi You'd be better placed using SSO for that - see https://community.nodebb.org/topic/17484/a-more-standardised-sso-implementation/2?_=1709300209014

  • Navigating to specific post

    Solved Technical Support
    3
    0 Votes
    3 Posts
    93 Views
    R

    Thanks!, I was able to debug the issue.

  • Targeted Multi-User tagging

    Unsolved Technical Support
    14
    0 Votes
    14 Posts
    428 Views
    crazycellsC

    @baris i know it is nothing urgent, but looking forward to having this addition ๐Ÿ˜„

    Link Preview Image Targeted Multi-User tagging ยท Issue #244 ยท julianlam/nodebb-plugin-mentions

    I suggest the usage of @everyone and @here to notify all users in the forum and on the topic respectively... please see this: https://community.nodebb.org/topic/17283/targeted-multi-user-tagging

    favicon

    GitHub (github.com)