Widget doesn't render

Plugin Development

Suggested Topics

  • 0 Votes
    8 Posts

    @Joykiller said in Proper way to return res.redirect('')?:

    @julian said in Proper way to return res.redirect('')?:

    Callbacks don't work all that nicely with async functions... I think stripe.subscribe is called with await and returns undefined before the isValueID method is called and returns.

    I added asyncs to test, removed them same issue with headers response from res.redirect. Oh i see what this plugin does, I guess i could write it to the session and then call it from there. Argh im at a loss that didnt work either still same header issue. seems like even the other values prob would do the same as mine I duno if the way it was coded from base was correct.

    Nevermind I got it working with writing to the session first, had an error on previous attempt.

    Thanks for the help.

  • translation for widget content

    Solved Plugin Development
    0 Votes
    4 Posts

    got it! had to add the folter/files for the default language en-GB as set in apc, even though my user account language is de.

  • 0 Votes
    2 Posts

    @Thadeusz-Lay don't think there are hooks to do that. You can accomplish it by adding some js and css in ACP -> Appearance -> Custom HTML & CSS.

    Here is an example. You will need to add code to handle what needs to happen on clicking the button.

    Custom Header:

    <script type="text/javascript"> $(document).ready(function() { $(window).on('action:ajaxify.end', function(ev, data) { $('[component="account/cover"] .avatar-wrapper').append('<button class="btn-new"><i class="fa fa-plus"></i></button>'); }); }); </script>

    Custom CSS:

    .avatar-wrapper .btn-new { height: 2em; width: 2em; line-height: 2em; border-radius: 50%; border: none; background: #F44336; color: #fff; overflow: hidden; top: 93px; left: 4px; position: absolute; }
  • 0 Votes
    7 Posts

    @julian I've made a pull request that creates a test and actually addresses the underlying problem on top of it! https://github.com/NodeBB/NodeBB/pull/4796

    If there's something messed up about it feel free to tell me. Like I said, I'm new to the NodeJS world so I wouldn't be surprised if I did something incorrectly. 🙂

  • 0 Votes
    9 Posts

    Cool! Just signed it.