• 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

R

riddle911

@riddle911
About
Posts
12
Topics
4
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    cannot display topic when using mobile
  • R riddle911

    When using mobile to browse the pages, it dosen't show the tag of topic.


  • RE: Cannot write data using write-api
  • R riddle911

    @julian @PitaJ
    I'm not professional in coding. Now I have successfully generated my users on nodebb from the EXCEL data. Guys you may think it is so easy and can be done by serval codes,but it's quite hard for me to understand the http protocols and programing think.
    And now thank you I can do it myself.
    Here is the code of generating new users on EXCEL VBA. Hope it can help people like me. ; )

    Sub newusername()
    Dim i As Integer
    Dim data, user, pass, mail As String
    Dim XMLHTTP As New MSXML2.XMLHTTP, myurl As String
    
    myurl = "http://yourhost/api/v1/users/"
    
    For i = 6 To 8
    
    user = "username=" & Cells(i, 1)
    pass = "&password=" & Cells(i, 2)
    mail = "&email=" & Cells(i, 4)
    data = user + pass + mail
    
    XMLHTTP.Open "POST", myurl, False
    XMLHTTP.setRequestHeader "Authorization", "Bearer yourtoken"
    XMLHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
    XMLHTTP.Send data
    Debug.Print (XMLHTTP.responseText)
    Next
    
    End Sub
    

    Here I set i as the row, and I put username, password and email in column A,B,and D.

    Thank you again!


  • RE: Cannot write data using write-api
  • R riddle911

    @PitaJ
    I made a mistake that forgot the Header.
    Like this:
    XMLHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
    So stupid...


  • Cannot write data using write-api
  • R riddle911

    Hi, I have some data (username/topic.etc.) and I want to put these into forum using write-api.

    1,I tried
    curl -H "Authorization: Bearer token here"
    --data "username=helloa&password=accccc&[email protected]" http://myhost:4567/api/v1/users
    It works and others like topic,post,category also works.

    2, Because my data is in excel, so I want use VBA to do this.
    I tried two different function in excel VBA and it comes out same error.
    Below are VBA code and error.
    0_1481621721967_QQ图片2.png

    0_1481622158016_QQ截图1.png

    It seems that the server dosen't get the data.
    I am so confused....Can you point out me my error.


  • RE: Cannot find installed plugins
  • R riddle911

    @revir
    Problem solved.
    After installation, it dosen't generate a write-api.tpl file into /nodebb/public/templates/admin/plugins.
    I put a copy in it. Then it works.
    Thank you.


  • RE: Cannot find installed plugins
  • R riddle911

    @revir
    no. I don't see any error. The plugin just disappered.


  • RE: Cannot find installed plugins
  • R riddle911

    @revir
    yeah I have restarted it again and again, but comes no result which makes me so confused.


  • RE: how to create topic with posts in an easy way
  • R riddle911

    @vstoykov
    yeah I found this write-api plugin.
    But there is always something wrong with the installation. After I install the wrire-api, it dosen't show up in the ACP.
    I will try to fix this first.


  • Cannot find installed plugins
  • R riddle911

    Hi,
    I want to do some development through plugin.
    I have installed the write-api and activated it.
    And I have also installed other plugins.
    But after this I cannot find any in ACP/plugin/,there are only compers/markdown/dbsearch/emoji.
    I have no idea about it
    Guys can you help me?


  • RE: how to create topic with posts in an easy way
  • R riddle911

    @vstoykov
    Aha.. Dude,I want make my dialogs into thread.
    Not export the posts.


  • RE: how to create topic with posts in an easy way
  • R riddle911

    @jarey
    No no not the fake one.
    the file on excel is just an example.
    What I want is to make the dialogs in thread.
    Is there any api/script to do this?


  • how to create topic with posts in an easy way
  • R riddle911

    Hi,
    I 'm using nodebb as a developer's club.
    Now I come across a problem which is there's lots of discussion in the social network software. I want to create topic with posts using these dialogs.
    Now what I can do to export these dialogs into excel which are like this.
    0_1481193351970_dialog.png

    Maybe a script could do this automatically.
    What I am thinking is to edit the mongodb directly, but it's too hard to make the database clear to me.

    Dear friends, I wonder if you have any ideas to hep me with it.
    Thanks.😀

  • 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.