Git Product home page Git Product logo

Comments (9)

Fonta avatar Fonta commented on June 27, 2024

Hi killkeeblerelves, that's indeed not possible.
The way the plugin works is that it automatically finds your UIDs.
(And will succeed when you're visiting the forum and connecting to the TS server from the same computer.)
Simply go to your UserCP -> TeamSpeak Link and press the button.
If you really want to do it manually, you can add them directly in the database (mybb_tslink_uids table).

from tslink.

MNCritter avatar MNCritter commented on June 27, 2024

I've tried the "teamspeak link button" it doesnt work. Check www.AwakenRP.com
I can send you the config file to verify

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Please try the version attached. I added logging to the plugin which can be enabled/disable in the config file. Also upload the log folder and make sure it's writable for the webserver (chmod 777 or something).
After clicking on the button in the UserCP it should write a log file in the log folder.
You could sent me this file together with your config file to [email protected]

tslink1.3.5.zip

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Hi killkeeblerelves,

did you solve the ip's being different? If so, could you tell us how?
Also I added a little tweak to the config.sample.php file to get the right ip when the board is behind cloudflare.

from tslink.

MNCritter avatar MNCritter commented on June 27, 2024

I had to remove http proxy on cloud flare.

On Oct 15, 2016 1:41 PM, "Gianni Fontanini" [email protected]
wrote:

Hi killkeeblerelves,

did you solve the ip's being different? If so, could you tell us how?
Also I added a little tweak to the config.sample.php file to get the right
ip when the board is behind cloudflare.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVhZ4rtyUlVwf--_cS7ncj2mzskceGKqks5q0R5wgaJpZM4KL4gN
.

from tslink.

MNCritter avatar MNCritter commented on June 27, 2024

Would be interesting to make the plugin reference a user entered ts3 UID.
As I still do not get requests upon sign up. Only on "update groups"

On Oct 15, 2016 1:42 PM, "Ken W" [email protected] wrote:

I had to remove http proxy on cloud flare.

On Oct 15, 2016 1:41 PM, "Gianni Fontanini" [email protected]
wrote:

Hi killkeeblerelves,

did you solve the ip's being different? If so, could you tell us how?
Also I added a little tweak to the config.sample.php file to get the
right ip when the board is behind cloudflare.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVhZ4rtyUlVwf--_cS7ncj2mzskceGKqks5q0R5wgaJpZM4KL4gN
.

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Ah ok! Well if you want it back, you could try to replace the following in your config:

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

To:

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

I'm not a big fan of letting users add their UID themselves, because if they would be a vip member, they could add someone else's UID to the database making them a VIP too.
After activation of someone's account the plugin should be triggered.
I don't know if you work with activation emails, but when users click the link, magic should start happening.
If you take a look in tslink.php you can see the hooks at the bottom.

In the future I'll probably check how MyBB is configured and build the hooks upon that.

from tslink.

MNCritter avatar MNCritter commented on June 27, 2024

I've tried cf_connecting with no luck actually

On Oct 15, 2016 1:52 PM, "Gianni Fontanini" [email protected]
wrote:

Ah ok! Well if you want it back, you could try to replace the following in
your config:

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

To:

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

I'm not a big fan of letting users add their UID themselves, because if
they would be a vip member, they could add someone else's UID to the
database making them a VIP too.
After activation of someone's account the plugin should be triggered.
I don't know if you work with activation emails, but when users click the
link, magic should start happening.
If you take a look in tslink.php you can see the hooks at the bottom.

In the future I'll probably check how MyBB is configured and build the
hooks upon that.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVhZ4tGVDhbWu2AT1dYTuUV1hrmaQk-Hks5q0SDlgaJpZM4KL4gN
.

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Hmm, too bad. According to the CF support pages, this is the only way.

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.