Git Product home page Git Product logo

Comments (11)

PaXo0 avatar PaXo0 commented on June 27, 2024

###<?php

// Disallow direct access to this file for security reasons.
if (!defined('IN_LINKTS')) {
    die('Direct initialization of this file is not allowed.');
}

// Database configuration.
$hostname = 'mys************k';
$username = 'u542289125_ts3';
$password = '*******';
$database = 'u542289125_ts3';

// The MyBB users table in the DB. This should be just fine, but if you are also using this plugin from outside MyBB you'll have to enter it fully like in the second (disabled) line.
$table = TABLE_PREFIX.'users';
//$table = 'mybb_users';

// Teamspeak connection.
$ts3_server = '8**********';
$ts3_server_port = '27016'; // 9987 is default
$ts3_query_port = '10011'; // 10011 is default
$ts3_username = 'website';
$ts3_password = '********';
$ts3_nickname = 'Closed Militants Website';

// Teamspeak groups.
$ts3_sgid_member = '26923'; // the group id of the group which should be added to a user on teamspeak after they register on the forum
$ts3_sgid_don_member = '19'; // the group id of the group which should be set when a user is a Donating member
$ts3_sgid_vip_member = '35'; // the group id of the group which should be set when a user is a vip member

// Define the servergroups the plugin shouldn't even try to remove.
$ts3_sgid_dont_remove = ['261922', '261999'];

// Define which groups should have access to the TS Link ModCP module.
$tslink_modcp_groups = ('270088');

// DONT CHANGE ANYTHING UNDERNEATH!!!!
// Piece of pie to determine which IP to work with.
if (!isset($givenip)) {
    $givenip = '';
}

if ($givenip == '') {
    $givenip = $_SERVER['REMOTE_ADDR'];
    $mybb_ip = bin2hex(inet_pton($givenip));
} else {
    $mybb_ip = bin2hex(inet_pton($givenip));
}

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Try an ip address on the hostname line of the database configuration. Normally this would be 127.0.0.1 or localhost. (You could take a look in the MyBB config.)
And does it tell you in which file the error occurs? Because there is no line 4485.

from tslink.

PaXo0 avatar PaXo0 commented on June 27, 2024

want me to screen share?

from tslink.

Fonta avatar Fonta commented on June 27, 2024

I can't, I'm not @home right now.

from tslink.

PaXo0 avatar PaXo0 commented on June 27, 2024

np - the website im using is on a different host machine than the website

from tslink.

Fonta avatar Fonta commented on June 27, 2024

That might be a problem. If the sql port isn't open (3306). You could still try to use the ip of the other machines in stead of the dns name.

from tslink.

PaXo0 avatar PaXo0 commented on June 27, 2024

the sql is running on the website the ts is running on something different

from tslink.

PaXo0 avatar PaXo0 commented on June 27, 2024

found an error code when i click to make vip or donator

Fatal error: Call to a member function fetch_array() on boolean in /home/u542289125/public_html/forums/inc/plugins/tslink/tslinkfunctions.php on line 345

from tslink.

PaXo0 avatar PaXo0 commented on June 27, 2024

Tried re-installing it same error

from tslink.

Fonta avatar Fonta commented on June 27, 2024

I'm missing the logging part in your config. Could you download the latest version from github? There are also some other changes.

from tslink.

PaXo0 avatar PaXo0 commented on June 27, 2024

sure

from tslink.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.