When using mobile to browse the pages, it dosen't show the tag of topic.
riddle911
Posts
-
cannot display topic when using mobile -
Cannot write data using write-api@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!
-
Cannot write data using write-api@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-apiHi, 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.
It seems that the server dosen't get the data.
I am so confused....Can you point out me my error. -
Cannot find installed plugins@revir
Problem solved.
After installation, it dosen't generate awrite-api.tpl
file into/nodebb/public/templates/admin/plugins
.
I put a copy in it. Then it works.
Thank you. -
Cannot find installed plugins@revir
no. I don't see any error. The plugin just disappered. -
Cannot find installed plugins@revir
yeah I have restarted it again and again, but comes no result which makes me so confused. -
how to create topic with posts in an easy way@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 pluginsHi,
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? -
how to create topic with posts in an easy way@vstoykov
Aha.. Dude,I want make my dialogs into thread.
Not export the posts. -
how to create topic with posts in an easy way@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 wayHi,
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.
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.