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

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Issue displaying custom_profile_info when loading posts

Scheduled Pinned Locked Moved NodeBB Plugins
5 Posts 2 Posters 1.9k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Redd
    wrote on last edited by Redd
    #1

    I am using the filter:posts.custom_profile_info, which for the most part is working as expected
    That is, on first load of the page the info created is visible
    However, if the topic contains a lot of posts, and you scroll to load more, it looks like this hook is not fired for these newly displayed posts and the info is not inserted on the page.

    Is there an issue with this hook not firing when loading more posts for a topic with a lot of posts

    Any thoughts?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    What version/git-revision of nodebb? That hook does fire on first topic load and every following trigger of the infinite load.

    R 1 Reply Last reply
    0
  • R Offline
    R Offline
    Redd
    replied to <baris> on last edited by Redd
    #3

    Hi @baris
    v0.6.1 (not sure which git revision)

    Certainly seeing it on the first load,
    it is the infinite load i am having trouble

    (if i do a manual refresh of the page when they dont show up in the infinite load, they will then appear)

    is there a way to monitor the trigger/loading in the logs?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #4

    Put a console.log here https://github.com/NodeBB/NodeBB/blob/v0.6.x/src/posts/user.js#L63 and see if its triggered on infinite load. I don't think there were any changes to that part of the code betwee 0.6.x and 0.7.0.

    R 1 Reply Last reply
    0
  • R Offline
    R Offline
    Redd
    replied to <baris> on last edited by
    #5

    @baris
    cheers, let me work on it after the weekend

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development