• 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

websocket topic post cookies

Scheduled Pinned Locked Moved NodeBB Development
2 Posts 2 Posters 1.2k 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.
  • A Offline
    A Offline
    asmcos
    wrote on last edited by
    #1

    I want to use socket.io client Post My topic to my website.

    I find nodebb post code:

    	if (parseInt(postData.cid, 10) > 0) {
    		socket.emit('topics.post', {
    			title: titleEl.val(),
    			content: bodyEl.val(),
    			topic_thumb: thumbEl.val() || '',
    			category_id: postData.cid
    		}, done);
    

    How I do get cookies(login user info). use by socket.io client.

    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #2

    Not sure what you're trying to do - publish topics to NodeBB from another software?
    Wonder if this will help you: https://github.com/psychobunny/nodebb-plugin-blog-comments

    Lets you post a new topic (or reply to topics) from Ghost. I want to do WP in the future as well

    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