TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 563
  • Total: 563

Teamspeak block!

Started by -Prismatic-, October 14, 2005, 11:20:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xadio

Quote from: MentalMuscle on March 03, 2006, 01:27:18 AM
The code that ts_config.inc.php file that Xadio and Core have come up with will log a member in with the nickname=<user login name>.  This is the registered name on the website they have logged in with using a server password.

All SMF user accounts have their passwords encrypted, and you would have to mach the hash from the SQL database with the TS password.  Not knowing much about the TS database I can't say how the passwords are stored.  If the TS database stores passwords in MD5 encryption then passing the username and password to the server should be possible.  The TS server would just compare hashes like SMF does.

The only other option is to prompt for authentication, but I don't really see the point in that.

SMF stores passwords in MD5, but were talking about hacking TS to just do a match.  If TS server was written in a non-compiled language I would look at hacking it, but from my research there is no way. Possibly someone could research or suggest to the TS creators a way to pass the MD5 encrypted password through.

Omniverse

Well, I like the way it works now fine.... I was thinking more along the lines of an added option.

For instance, instead of the Title being a link to the your site (why you need it? you already there), have it a pop up where you could fill in user and pw if you are registered with the server.

MentalMuscle

There is a script to prompt for username and password, but it would need to be moded to check to see if the user is a registerd TS user.  This could be an additional field added to the profile. A checkbox only admins can see that will allow them to check that the user is registered on TS.

I'll see if I can find the script, and what would be needed for this.

BCB

#143
Here is some code that is HTML that puts up a button and 3 textboxes for you to fill in for the Nickname, Username and Password, when pushed it will join the Teamspeak that is defined. I am by no means a code wizard or I would implement it myself, but someone of the standards I have seen here can make the 2 work together. 

Also attached is a Screeen shot of the way it looks now on my site, again not a coding wizard that is why there is such a large space in it.

BTW the way I got that to work I just added a block on my TP for HTML and put the code in there. but I would rather have just one block then 2.

<table width="112" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" height="10"><div align="center">Team Speak</div></td>
</tr>
<tr>
<td width="140" class="leftnavtable" align="center" valign="middle"><form name="testform">

<p>
<input name="NICKNAME" type="text" value="Nickname" size="14">
<input name="LOGINNAME" type="text" value="Login name" size="14">
<input name="PASSWORD" type="password" value="Password" size="14">
</p>
<input name="button" type="button" class="navlinks" onClick="location.href='teamspeak://xxx.xxx.xxx.xxx:8767/nickname=' + testform.NICKNAME.value + '?loginname=' + testform.LOGINNAME.value + '?password=' + testform.PASSWORD.value;" value="Join">
<input name="Clear" type="reset" class="navlinks" id="Join" value="Clear" />
</p>
</form> </tr>
</table>

oooppps forgot to mention that the xxx.xxx.xxx.xxx:8767  is the IP of the server and the port, I am sure you can put in the url if needed.

[attachment deleted by admin]

nevermore

My forum logs are being spamming with the following messages:

Quote8: Undefined property: g_channels
File: /home/yorksonl/public_html/tagamers/teamspeak/ts_config.inc.php
Line: 76

Quote8: Use of undefined constant _B - assumed '_B'
File: /home/yorksonl/public_html/tagamers/teamspeak/ts_config.inc.php
Line: 238

Quote8: Use of undefined constant _D - assumed '_D'
File: /home/yorksonl/public_html/tagamers/teamspeak/ts_config.inc.php
Line: 288

The website is www.tagamers.com

Any ideas what these mesages mean and how I can fix them? They are logging every couple minutes and creating quite the log file.

BCB

just curious but what all did you change from the original code?

IchBin

Are you referring the BCB's code, or the teamspeak block code itself?

xadio

Quote from: IchBinâââ,¬Å¾Ã,¢ on March 14, 2006, 07:19:44 PM
Are you referring the BCB's code, or the teamspeak block code itself?

It would be with the teamspeak block itself.  Due to the nature of the errors....

Nevermore, make sure you are using the most recent TSBlock. Found: http://www.tinyportal.net/smf/index.php?topic=1021.msg26256#msg26256

I have already corrected these problems.  If this is the one that you downloaded then I will recheck it.

Also to a moderator:  Could we add a link on the thread starters post to direct people to the updated TSBlock?

xadio

Quote from: MentalMuscle on March 06, 2006, 02:45:45 PM
There is a script to prompt for username and password, but it would need to be moded to check to see if the user is a registerd TS user.  This could be an additional field added to the profile. A checkbox only admins can see that will allow them to check that the user is registered on TS.

I'll see if I can find the script, and what would be needed for this.

Basically you want your TS block restricted to those that are registered? So those who arn't registered can't see it or can't use the direct links?

IchBin

Quote from: xadio on March 14, 2006, 08:07:44 PM
Also to a moderator:  Could we add a link on the thread starters post to direct people to the updated TSBlock?

Will do that right now Xadio. Thanks for keeping up on this.

This website is proudly hosted on Crocweb Cloud Website Hosting.