Comments (11)
###<?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.
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.
want me to screen share?
from tslink.
I can't, I'm not @home right now.
from tslink.
np - the website im using is on a different host machine than the website
from tslink.
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.
the sql is running on the website the ts is running on something different
from tslink.
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.
Tried re-installing it same error
from tslink.
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.
sure
from tslink.
Related Issues (11)
- Incompatible with 1.8? HOT 3
- Error HOT 5
- Plugin errors whenever I change the status of a user HOT 8
- PHP Fatal Error
- Not working... HOT 1
- No way to enter TS3 UiD? HOT 9
- 1366 - Incorrect integer value: '' for column 'tid' at row 1 HOT 3
- Issues HOT 5
- help please HOT 25
- Not showing any menu HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tslink.