Best posts made by DavidPS
Latest posts made by DavidPS
-
RE: Custom PHP Page
I want to redirect user to login as when you try to go any other private page like /unread
-
RE: Custom PHP Page
More questions: How make content for registred users only?
-
RE: [nodebb-plugin-portal-homepage] menu problems
Anybody know how to add title?
-
RE: Custom PHP Page
Nice I nearly finished it! just need how to store some info to database and how to display errors with the nodebb modal boxes
-
RE: Custom PHP Page
@belstgut said:
var TeamSpeakClient = require("node-teamspeak"), util = require("util"); var cl = new TeamSpeakClient("##SERVERIP###"); cl.send("login", {client_login_name: "##USERNAME##", client_login_password: "##PASSWORD##"}, function(err, response, rawResponse){ cl.send("use", {sid: 1}, function(err, response, rawResponse){ cl.send("clientinfo", {clid: "##CLIENTID##"} ,function(err, response, rawResponse){ console.log(util.inspect(response)); }); }); });
this should connect you to your server, log u in, select virtual server 1, and print clientinfo for the client with id ##CLIENTID##.
(slightly modified from the node-teamspeak example)
tryed to use it between <script> tang on HTML and nothing appeared
-
RE: Custom PHP Page
oh nice, how send it as var from plugin to template? becouse if i add this script as script won't be secure becouse i will show my user password to everyone who insepct the code
-
RE: Custom PHP Page
in what var this information will be stored? i don't understand the concept console.log of node.js