New baseTheme link and template inheritance

Moved Technical Support
  • I use a slightly modified version of lavender for my site, and up until now that's been quite a headache.

    I've had to maintain an entire theme which is just a fork of lavender and constantly merge in changes just so I can have one template file be slightly different.

    I was wondering if this is now something I can resolve with the baseTheme parameter?

    If MyTheme has a baseTheme of nodebb-theme-lavender, which in turn has a baseTheme of nodebb-theme-vanilla does that mean that I can change my repo to just be the one altered file?

    I remember in the past I tried inheritance and found it didn't work.


Suggested Topics


  • 0 Votes
    3 Posts
    195 Views
  • 0 Votes
    1 Posts
    1k Views

    After uptgarding (reinstallation) of nodebb, this plugins return error and don't work at all.
    After app starting, I got this warn message:

    7/11 12:20 [31705] - warn: [meta/dependencies] Bundled plugin nodebb-plugin-dbsearch not found, skipping dependency check.
    17/11 12:21 [31705] - warn: [plugins/nodebb-plugin-sso-github] Hook filter:user.delete is deprecated, please use an alternative
    17/11 12:21 [31705] - warn: [plugins/nodebb-plugin-sso-google] Hook filter:user.delete is deprecated, please use an alternative
    17/11 12:21 [31705] - warn: [plugins/nodebb-plugin-sso-twitter] Hook filter:user.delete is deprecated, please use an alternative

    17/11 12:21 [31705] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.

    nodebb-plugin-imgur nodebb-plugin-sso-facebook nodebb-plugin-sso-github nodebb-plugin-sso-google nodebb-plugin-sso-twitter nodebb-plugin-composer-redactor nodebb-plugin-custom-pages nodebb-plugin-desktop-notifications nodebb-plugin-rss nodebb-plugin-youtube

    17/11 12:21 [31705] - info: [User-Invitations] Initializing User-Invitations...
    17/11 12:21 [31705] - info: [plugins/spam-be-gone] Settings loaded
    17/11 12:21 [31705] - info: [User-Invitations] Synced settings: defaultInvitations=10, restrictRegistration=0, invitedUsers=[], inviteGroup=registered-users
    17/11 12:21 [31705] - warn: [plugin/composer-redactor] Another composer plugin is active! Please disable all other composers.
    17/11 12:21 [31705] - info: NodeBB Ready
    17/11 12:21 [31705] - info: NodeBB is now listening on: 0.0.0.0:4567

    list itemWhen I try to login with Facebook, I got:
    L’URL fournie n’est pas autorisée par la configuration de l’application.: Une ou plusieurs URL fournies ne sont pas autorisées par les paramètres de l’application. Elle(s) doi(ven)t correspondre à l’URL du site ou du Canevas, ou le domaine doit être un sous-domaine de l’un des domaines de l’application.

    With googleplus:
    list item400. That’s an error.
    Error: redirect_uri_mismatch

    list itemWith twitter and github I get the same Error.

    With the ancien version of nodebb, all this sso login worked fine.

    Please can somone help me to resolve this problem ??

  • 0 Votes
    19 Posts
    3k Views

    @baris thanks. altho the typical plugin doesn't do it, the settings apis are promisified. you don't wait, u get junk..

    adding .then() in the non async using functions solves the problem

  • 2 Votes
    10 Posts
    7k Views

    Does it still work? My helper functions don't seem to be recognize in my template files.

  • 0 Votes
    5 Posts
    4k Views

    @baris
    Managed to find the following line

    <div class="<!-- IF categories.class -->{categories.class}<!-- ELSE -->col-md-3 col-sm-6 col-xs-12<!-- ENDIF categories.class --> category-item" data-cid="{categories.cid}" data-numRecentReplies="{categories.numRecentReplies}">

    in

    ./node_modules/nodebb-theme-lavender/templates/home.tpl

    So I proceed to change it to

    <div class="<!-- IF categories.class -->{categories.class}<!-- ELSE -->col-md-3 col-sm-6 col-xs-12<!-- ENDIF categories.class --> category-item category-class-{categories.cid}" data-cid="{categories.cid}" data-numRecentReplies="{categories.numRecentReplies}">

    ?