• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

rodR

rod

@rod
Users with 50 posts
About
Posts
384
Topics
52
Groups
1
Followers
3
Following
3

Topics

  • rodR

    Saving Plugins Locally?

    Scheduled Pinned Locked Moved NodeBB Plugins
    0 Votes
    3 Posts
    174 Views

    rodR

    @crazycells, Thanks. I need to look if all of the plugins I use are from GitHub. Definitely I’ll fork those.


  • rodR

    How to trigger an action after a post is made

    Scheduled Pinned Locked Moved Unsolved Technical Support
    0 Votes
    2 Posts
    148 Views

    R

    @rod

    You can create a plugin that waits on the hook "action:post.save" and fires a method that executes the custom action you define

    { "hook": "action:post.save", "method": "customAction" },

    Details on creating a plugin are available at Creating Plugins


  • rodR

    In which version did Custom Javascript show up?

    Scheduled Pinned Locked Moved Technical Support
    1 Votes
    23 Posts
    1244 Views

    rodR

    Well I am embarrassed, I figured out the problem! There is no problem with custom javascript or the custom header information. It turns out the nodebb-plugin-ns-twitch-monitor was the problem! The plugin does not seem to work after a certain version of NodeBB and where I had it placed in my widgets must have been causing the custom header code to not load or run properly.

    I am still running v1.4.5 but am moving over to a new server, yes after all of these years. In doing so I have been incrementally stepping through upgrades, 1.4.5 -> 1.5.x -> 1.6.x -> 1.7.x... It was there at the 1.7.x that my custom Piwik (Matomo) code stopped working. I put NodeBB into "dev" mode and saw a number of errors related to the Twitch plugin. I removed the plugin and my analytics code now works fine.

    It is bittersweet as I really like the Twitch plugin on my forum but the plugin stopped working quite some time ago. Twitch changed how their API works and the plugin was never updated to keep up.

    Shouting out to a list of people for closure on this, in case you were all losing sleep on this since May of last year! @baris @julian @Nicolas


  • rodR

    Getting an error with my Custom Javascript

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    3 Posts
    203 Views

    rodR

    @PitaJ Thank you. How about this error that I am seeing in my browser console:

    Screen Shot 2019-04-19 at 7.32.08 PM.png


  • rodR

    Bleah.. Who is up for an installation challenge? (Upgrade an old forum problems)

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    9 Posts
    765 Views

    rodR

    @PitaJ I finally got back to this... Well, that seems to have helped. The forum is up as 1.12.1.

    I see at least one plugin in that is spewing errors on the console (in ./nodebb dev mode) so I will need to disable that one.

    Big thing I see is that this does not seem to work any longer:

    $(window).on('action:ajaxify.contentLoaded', function(ev, data) { firePiwik(data); });

    Has action:ajaxify.contentLoaded this changed?

    Thanks for all of the help thus far, and over the years!


  • rodR

    Mapping of Node and NPM to NodeBB Versions

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    4 Posts
    295 Views

    yariplusY

    The .travis.yml for each branch should be a good indicator of compatibility in general.

    https://github.com/NodeBB/NodeBB/blob/v1.12.x/.travis.yml


  • rodR

    Upgrading from version 1.4.5 to 1.11.2 / Unable to Save General Settings

    Scheduled Pinned Locked Moved NodeBB Development
    0 Votes
    3 Posts
    298 Views

    rodR

    Thanks @julian, that solved that issue.

    Additional details. The problem may be the way that I have my S3 content bucket locked down such that my dev forum cannot access the files (different subdomain).


  • rodR

    Assistance requested to reformat document.write from ad code javascript

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    4 Posts
    1615 Views

    GiggiuxG

    @rod Ohh I see what it does...
    mhm since is in nodebb try:

    $.get('https://fsadwork.com/show.php?z=32&pl=99&j=1&code='+new Date().getTime(), function(data) { document.getElementById("YOURTAG").innerHTML = data.replace('document.write(','').replace(')','') }); <noscript> <iframe src="https://fsadwork.com/show.php?z=32&pl=99" width="920" height="120" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe> </noscript>

    But this probably will not work because they'll have cross-origin ajax control.

    And of course you need to change "YOURTAG" with the id of where you want the ads to appear.

    If it doesn't work.. I don't know then how could you change it 😛


  • rodR

    Navigation Route Text Not Displaying in Browser Tab for Third-Party Plugins

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    4 Posts
    1369 Views

    rodR

    @pichalite I understand now. I will open issues with the module developers. Thank you.


  • rodR

    Don't Laugh at Me: How to Add JS to Widget to Display Text

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    4 Posts
    1737 Views

    rodR

    I have to say that programmatically being able to show and hide content in a widget is fabulous. I now have a Global > Global Header widget that displays an image and text only when it is the "home" page.

    This is how I implemented one widget:

    <widgetGH1></widgetGH1> <script type="text/javascript"> if(location.href === 'https://example.com/') { $('widgetGH1').html('<img src="//example.com/uploads/image.png"> Site Welcome Text'); } </script>

  • rodR

    Getting Version Number

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    3 Posts
    1016 Views

    rodR

    Thank you @baris . Your tip didn't get me precisely what I needed but it got me on the right path. This is what I was looking for: config.version


  • rodR

    Text Widget | Parse as a Post: Not Functioning as Expected

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    1 Posts
    680 Views

    rodR

    So I have an odd little issue. I am trying to use a plugin "shortcode" (or whatever the proper terminology is) in a Text widget but it is not working.

    Specifically I am trying to add [carousel{"items":1,"lazyLoad":false}] to a text widget. I do have the Parse as a Post? (Take all post-related plugins into effect) selected yet when I view the page that has the widget on it the Carousel plugin does not seem to be kicking in and doing what it should.

    Is there something I can add to make sure the "parse as a post" is doing what it should be doing?

    Thank you.


  • rodR

    "Track IP Address for each post" and Lavender Theme: Where Should I See The Recorded IP Address?

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    2 Posts
    3503 Views

    pichaliteP

    @rod it's not displayed anywhere on the theme.


  • rodR

    Topic Title Field Is Not Tall Enough (Lavender Theme)

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    8 Posts
    1701 Views

    PitaJP

    @rod looks like you can fix it temporarily by using this css:

    @media (min-width: 992px) { .composer .title-container .title.form-control { padding: 3px 16px; height: auto; } }

    I'll see what I can do about fixing theme-vanilla and composer-default for the future.


  • rodR

    Ads (again) - Need helping with javascript coding though

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    4 Posts
    1554 Views

    rodR

    Followup: It seems to be working fine. Ad refreshes as I navigate around the forum. No forced page reload necessary.


  • rodR

    Where do I put my "style" element?

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    2 Posts
    902 Views

    yariplusY

    A style element would go in Custom Header

    However, as far as best practices, you should not use a style element and instead put the contents of the element into your Custom CSS


  • rodR

    Post Tools: How to Add a New Item

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    29 Posts
    7148 Views

    rodR

    @PitaJ FTW:

    0_1476826201479_Post_tools_shortlink.png

    Thanks for the tip about bootbox!


  • rodR

    Make Uploaded Files Private Setting Explanation

    Scheduled Pinned Locked Moved General Discussion
    0 Votes
    7 Posts
    2043 Views

    julianJ

    No need to use the asset manager anymore I think... you can just use /admin/manage/uploads


  • rodR

    Unable to generate backup codes for Two Factor authentication here on NodeBB

    Scheduled Pinned Locked Moved Technical Support
    0 Votes
    7 Posts
    2534 Views

    BriB

    @julian Not sure if related, but 2FA isn't working again for whatever version community.nodebb is running right now, I just tried to disable 2FA and nothing happens (Trying to port over my codes to a new device)


  • Login

  • Don't have an account? Register

  • Login or register to search.

  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.