• 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

How can i get the content of a topic?

Scheduled Pinned Locked Moved Solved Plugin Development
2 Posts 1 Posters 1.1k 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.
  • N Offline
    N Offline
    Nisthar Gamers
    wrote on last edited by
    #1

    How can i get the content of a topic?

    plugin.getTopic = function(data,callback){ if (!data || !data.postData || !data.postData.content) { winston.log('info', data); winston.log('info', "No data"); return callback(null, data); }

    }

    But i can't get the content of the topic using topic.postData.

    Anyway, Do you know of any good ide that can scan the source code and give nice auto completion of the javascript objects. I am using sublime text.

    N 1 Reply Last reply
    0
  • N Offline
    N Offline
    Nisthar Gamers
    replied to Nisthar on last edited by
    #2

    @Nisthar I was not able to get the content of a post by using the hook "filter:topic.get" But i used "filter:parse.post" to do it 😄

    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