Skip to content

Detect if user is admin

General

Related Topics
  • 14 Votes
    17 Posts
    285 Views

    No problem dude !

    I hope you have a good vacation. Enjoy your loved ones!

  • 4 Votes
    7 Posts
    766 Views

    @phenomlab oh no, that is 1 cent on the video, but you are right, symbols are similarā€¦ I just converted it to $1 , since it is more intuitive in daily lifeā€¦

  • NodeBB: Favicon upload issue

    Solved Configure
    12
    3 Votes
    12 Posts
    538 Views

    @phenomlab I am on a Mac, so I used the ā€œOption + Command + Iā€, and then performed the steps. It loaded my favicon! I checked on Firefox which I havenā€™t used before, and it showed my favicon also! Thatā€™s fantastic and thank you for the help!

  • 36 Votes
    55 Posts
    5k Views

    @DownPW I see why. The code relies on the existence of

    [component="topic/quickreply/container"]

    However, this by definition means that the below has to be enabled

    aeef638f-4188-489d-a9f2-f3a26dbca9d8-image.png

    It will then work

    7fb38631-e0f3-46ef-b652-00929d927b13-image.png

    For some unknown reason, this is hidden in Harmony, and only shows if you select it. In v2, it seems that the <section> is deleted altogether in Persona if ā€œQuick Replyā€ is disabled, meaning it wonā€™t fire as it canā€™t locate that specific component.

    The downside is that you might not want the quick reply function, but I think itā€™s a PITA to scroll up to the top of the post just to reply, so I have it on šŸ™‚

  • Forum Icons NodeBB

    Solved Customisation
    13
    0 Votes
    13 Posts
    1k Views

    @cagatay That matches what I see

    4f0f858d-9812-42b1-9f61-ffb13d31dccd-image.png

  • Title on homepage of nodebb forum

    Solved Customisation
    2
    1 Votes
    2 Posts
    676 Views

    @eveh Welcome board šŸ™‚

    The code you are referring to is custom written as no such functionality exists under NodeBB. However, adding the functionality is relatively trivial. Below are the required steps

    Navigate to /admin/appearance/customise#custom-header Add the below code to your header, and save once completed <ol id="mainbanner" class="breadcrumb"><li id="addtext">Your Title Goes Here</li></ol> Navigate to /admin/appearance/customise#custom-js and add the below code, then save $(document).ready(function() { $(window).on('action:ajaxify.end', function(data) { // Initialise mainbanner ID, but hide it from view $('#mainbanner').hide(); var pathname = window.location.pathname; if (pathname === "/") { $("#addtext").text("Your Title"); $('#mainbanner').show(); } else {} // If we want to add a title to a sub page, uncomment the below and adjust accordingly //if (pathname === "/yourpath") { //$("#addtext").text("Your Title"); //$('#mainbanner').show(); //} }); }); Navigate to /admin/appearance/customise#custom-css and add the below CSS block .breadcrumb { right: 0; margin-right: auto; text-align: center; background: #0086c4; color: #ffffff; width: 100vw; position: relative; margin-left: -50vw; left: 50%; top: 50px; position: fixed; z-index: 1020; }

    Note, that you will need to adjust your CSS code to suit your own site / requirements.

  • Plugin reaction Bug

    Solved Customisation
    15
    0 Votes
    15 Posts
    942 Views

    @DownPW That was going to be my next suggestion šŸ™‚

  • [NodeBB] Creating new user to auto post content

    Solved Customisation
    3
    0 Votes
    3 Posts
    831 Views

    @phenomlab many thanks Mark šŸ˜.