PDA

View Full Version : ASP Edition of WebPost


Dark-mixer
01-11-2002, 09:19
I have just released a version of WebPost written in ASP.
You can download the script here :
WorldWideWhat.Dk (http://www.worldwidewhat.dk)

/Dark

Butte
04-11-2002, 17:17
Hi, this is surly great.
Thanks for making Webpost ASP compatible.
And great to see that you are Danish too :D

Im new to Teamspeak, and indeed also webpost. So ive got some problems.
Im missing some guidelines in your version. A manual of some kind.

Here is what i have done so far.
Ive installed the files on my server, and the only thing i have changed, is the adress to the db.

Now when entering the site, index.asp, only the graphics and your logo apears, and nothing else. No errors or data.

Is there something else i need to do ?
What about the ip and such where Teamspeak is hosted ?

Hope you have time to help a newbie in this area.
Thanks

Butte

Andy King
04-11-2002, 18:06
Hi, you need to go to your servers ini file and look for POSTURL= You need to point your POSTURL= to your Webpost script like this.

POSTURL=http://www.<YOURSITE>.com/WebPost/webpost.asp

That directs your servers data to the webpost script. Hope this helps.

Butte
04-11-2002, 21:39
It worked great.
Thanks for the quick answer

Butte

Andy King
04-11-2002, 21:46
No probs, glad I could give something back.

Butte
05-11-2002, 15:11
I got problems.
Could you mabye help me with this ?

Yesterday, when i got the scrip working, all was fine for an hour or so.
Then suddenly i get this error, when pressing "details" :

Active Server Pages error 'ASP 0113'
Script timed out
/mysite/teamspeak/index.asp
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.

Does that make any sense to you ?
Today, it still comes with this error.
Ive tried to emty the db, to start over, but still the same problem.
I have no control over the server, it is hosted else where.
Any ideas anyone ?

Oh yes, the first page with the overview is ok, only when going to the details page.

Thanks
Butte

Butte
05-11-2002, 15:22
I know of cource what the "time out" means, but WHY do i get it ?
Could it be an infinite loop in the code? or a left out recordset.MoveNext or something ?
Any suggestions ?

Butte
06-11-2002, 20:06
I got it :o

It was the firewall on the host's machine :D

Bigman
16-12-2002, 21:03
Good script :-)

The only problem i have is that, i have added the address to the posturl to access webpost.asp but it still wont show on my page.

Need help,

Cheers

http://bigmanrlfans.dyndns.org/RLFANS/index.asp

When i tried to change the database path in the display.asp file i got this error.

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x178 Thread 0x6ec DBC 0x1017004 Jet'

Im new to computing, any help appreciated :confused:

Dark-mixer
17-12-2002, 20:58
Sry that I havent been arround to answer your questions.
If you need quick answers, then the best way to get them are by sending a mail. I havent got time at the moment to brows different forums to answer questions (sry again). However by "throwing" a mail with the subject WebPost ASP i cant ignore it ;)
---------------
To Bigman :
The Microsoft OLE DB Provider for ODBC Drivers (0x80004005) Error you get are caused by a wrong/incorrect path to the database (could be a misspell).
The timeout you get could be created if the server doesn't support w3 sockets, or something like that.
---------------
A better guide?
Well as time isn't a thing i've got a lot of the new "manual" isn't that well descriped, but it contain some of the issues from this forum. I have attached it to this messages in form of a txt file.

/Dark

IRON_Sniper
20-12-2002, 04:32
I was unable to get this script to work.

It appears that the database is not being written to.

I have W3 Sockets installed.

I have the teamspeak server.ini edited, so that PostURL=http://www.iron-hq.com/ts2/webpost.asp

And I have rebooted both the TS2 server and the IIS server.

I even created a MSSQL database and did a proper connection string to that, and it was never populated.

It just seems like TS2 is not sending out the GET command every 5 minutes or so - therefore webpost.asp is never being touched and the script to populate the DB is never being run.

Here is my exact TS server.ini



[debug]
MessageTypes=LMTALL
MessageDepths=LMDALL
[Main Config]
ExternalIPDectection=1
HTTPServer Port=14534
HTTPServer Enabled=1
DateTimeFormat=dd-mm-yyyy hh:nn:ss
TCPQueryPort=51234
BoundToIp=
[WebPost]
AdminEmail=iron_brigade@tds.net
ISPLinkURL=na
ISPName=Private
ISPCountry=USA
Enabled=1
PostURL=http://www.iron-hq.com/ts2/webpost.asp
[server_cfg Default]
ServerName=Iron Brigade
ServerType=5
ServerWelcomeMessage=[Welcome to the Iron Brigade, check www.IRON-HQ.com]
ServerMaxUsers=32
ServerUDPPort=8767
ServerPassword=xxxxx
ServerFlags=0
AllowCodecCelp51=1
AllowCodecCelp63=1
AllowCodecGSM148=1
AllowCodecGSM164=1
AllowCodecWindowsCELP52=1
WebPost_LinkURL=
[Servers]
0=server_cfg Default

badbrainz
21-12-2002, 00:30
http://blackdogs.servegame.com/TS2/index.asp

Any one have any idea's? please!

I have copied the script files to the folder on the server, I have installed the w3 Sockets succecfully and have changed the PostURL= in my server.ini.
The page comes up blank as you can see in the link above.
Any insight will be hugely appreciated!

BadBrainz

IRON_Sniper
21-12-2002, 05:38
Yup, I'm getting the same exact thing. Either there is some sort of security setting not mentioned that must be done to IIS, or the W3 component isn't working correctly.

I'm going to dig into it some more and see if I can come up with some ASP alternatives.

badbrainz
21-12-2002, 08:15
Well, I got the server to show up in the list, so I imagine the w3Sockets are working correctly, but im still not sure about our index.asp.
I believe there is supposed to me something more to the webfront than just those teamspeak logos. Im not sure , but isnt it supposed to be showing the different channels on your server and possibly how many people are on. Statistics maybe?

Please any insight?

Thank you in advance and after!!

heres our Index: http://blackdogs.servegame.com/TS2/index.asp

***EDIT****
As you can see now , our index.asp is not just blank anymore, but its not working properly.
Its seems that everyone is going with the PHP. Is there anyone that has an example of a working "index.asp" ?

=<M.a.D.>=Plunk
29-12-2002, 23:03
how do i change the server address in the db file?

=<M.a.D.>=Plunk
30-12-2002, 01:51
C:\Documents and Settings\Joe Jr\Desktop\sig.gif
i open the svr_db.mdb with microsoft access form here what do i do to set up the server info from here..start form the beginning please lol.. i am not new to teamspeak servers and clients but am new at the webpost...i have tried the webpost.php and never got it to worked so i switched to the webpost.asp and it looks easier...if some1 couild send me there database fiel so i can just edit it for mine i will b grateful:)

Butte
30-12-2002, 12:15
Badbrainz i got it working fine on www.klanplayboys.dk
Didnt do anything special, other than edit the ini.

The only prob i got, was because the host of TS had zonealarm running.
Also note, every time you try something new, you must give your default.asp a few minutes (about 5min) before the result is actually showing.

Hope this helps a little bit.
Sorry i can not be of more help.

Dark-mixer
30-12-2002, 15:46
To those of you that have problems with TeamSpeak not posting to the script this might be at some help.
I found out that newer versions of the teamspeak server uses this setting in the server.ini
WebPost_LinkURL instead of PostURL
So to be 100% sure set both equal your address to the webpost file.

Dark-mixer
30-12-2002, 15:49
Mad >> To change the path to your access file alter the dbConn in both webpost.asp and display.asp

=<M.a.D.>=Plunk
30-12-2002, 19:41
wut do u suggest i use to edit those 2 files?

Gryphon
05-01-2003, 10:01
Originally posted by =&lt;M.a.D.&gt;=Plunk
wut do u suggest i use to edit those 2 files?

Notepad.

Dark-mixer, WebPost_LinkURL is not the posting address. It is used for a homepage link so that script can display a link to the server admins homesite.

Butte
05-01-2003, 14:38
Please look past my previous post....now mine is suddenly not working either :confused:

Nothing changed, just suddenly not working any more, have been like this for about a week now :confused:

Butte
11-01-2003, 17:48
My Asp version is killing me.
Its been all ok, for serveral weeks, since i downloaded it.

Now suddenly it wont work anymore ? nothing changed.
Suddenly one day its working again, still nothing changed.
Next day, nothing. Strange ??

When not working, i take a look in my db, and its updating ok. So it is connected to the servers ok. But nothing on the page ?

Have anybody else encountered this ? Any help is very much apriciated.


Oh yes, Dark-Mixer, will you continue updating the asp version to the new version ?
Thanks for your good work, its very much appriceated.

Madhouse
16-01-2003, 11:39
I have uploaded the files, made the nessary changes , restarted the server , made sure we had the w3 files on the server , but yet get nothing replying back from TS server to webserver to display information.

Any good idea or reasons why not?

You can check it out here .. http://rtmclan.com/TS/rtm.asp


let me know if you have any ideas of why its not working correctly.......

-xXx-Palbin
18-01-2003, 22:29
For you people who were not getting there data base written to make sure that scripts are set to be run in your web folders.


It is reporting to me but now i get this when i click on the details button and the server name is messed up.

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/teamspeak/include/function.asp, line 61

Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

www.xxxclan.com/teamspeak/index.asp

-xXx-Palbin
18-01-2003, 22:36
never mind i see it a w3sockets problem

-xXx-Palbin
21-01-2003, 22:43
Ok guys here is what you have to do to make this work.

First unzip the files into your webroot directory. Well i suggest you make a folder called teamspeak and unxip it there. Nex you have to maek sure teamspeak/access_dir has write permission so the database can be written to. Next you have to make sure that the teamspeak directory has the ability to run scripts in it. So that webpost.asp can write to the database. You also have to have w3 sockets installed on your server these can be found here http://www.dimac.net/websites/dimac/website/products/w3Sockets/Buy#

Now on the teamspeack server side you have to edit the posturl in the server.ini file. make posturl=http://www.<yoursite>.com/teamspeak/webpost.asp now if you didn't make a teamspeak directory it would be posturl=http://www.<yoursite>.com/webpost.asp.

ok that should be it but here are a few errors to help you trouble shoot.

1) When you go to posturl=http://www.<yoursite>.com/teamspeak/index.asp and all you have is a purple screen with with some logos and no servers listed.
a)You do not have script llowed to be run in your folders
b)you o not have permission to write to the database
c)you do not have your posturl= set correctly

2)When you go to index.asp you have you server comes up but when you click on details you you get some kind of error (refer to two posts up).
a)You do not have w3 sockets installed on your server

These are a few problems that i have come across.
Hope this helps!

-xXx-Palbin
21-01-2003, 22:48
Originally posted by Madhouse
I have uploaded the files, made the nessary changes , restarted the server , made sure we had the w3 files on the server , but yet get nothing replying back from TS server to webserver to display information.

Any good idea or reasons why not?

You can check it out here .. http://rtmclan.com/TS/rtm.asp


let me know if you have any ideas of why its not working correctly.......


I would say that it has to do with script permissions. You have to be able to run scripts in the directory containing the webpost.asp or maybe just set all your folders dealing with this to allow scripts.

Dark-mixer
23-01-2003, 18:34
Do you have the webpost.asp file in the same directory as the index file??
If it's not in the same directory have you then changed the Db path in the webpost.asp file?

If you give me the webpost address i'll try and make some posts to it.

/Dark

Dark-mixer
23-01-2003, 18:40
Butte >> I'll try and update the asp script when there's a new version of teamspeak, but since im not using Teamspeak I dont keep an eye out for updates on the product. However if theres a new version released just let me know by sending an email to coder@worldwidewhat.dk all i'll update the ASP script if needed.

/Dark

DiZZiD
25-01-2003, 15:01
erhm.. i wanted to download it, but the link doesnt work :(
it does update the download count, but doesnt send me the file

[edit]
wooh, its fixed

Dark-mixer
26-01-2003, 07:47
DiZZiD >>
Sorry that it didn't work the first time. You must have run into my monthly server reboot/server check.

Dark-mixer
26-01-2003, 21:14
I've just updated some stuff in the ASP Edition of the TeamSpeak Script.
I have made some changes in the Webpost file, and updated some of the functions used in the site.

You can download the updated version here :
http://www.worldwidewhat.dk/?show=sourcecode&type=1&id=21

Cstar_maxim
03-02-2003, 16:47
Think this will work on Sun ONE Active Server Pages (ASP)? If no reply I will eventually find out anyway. ;)

Dark-mixer
05-02-2003, 21:49
I dont know if it will work on a Sun server.
The server would have to support the W3 Socket component to make the script work.
However I've been wondering if I should build a version in JSP as well.

Cstar_maxim
05-02-2003, 23:44
I just realised that that site supports PHP aswell as ASP. Going to try PHP first. Thanks

Cstar_maxim
07-02-2003, 03:39
I have yet to get that site up so I am testing out sitecoding on a temporary webserver I have setup on my own computer and cable. (sssshhhhh don't tell the cable company)

I am having problems with the the server name. is there a code I can use to specify a space. I get a + insted. see pic below

http://comstar.ca/images/aspdefault.jpg

Dark-mixer
08-02-2003, 14:45
Sure.. open the webpost.asp file, and insert this line :
Data(10) = Replace(Data(10), "+", " ")
after this line
Data(10) = Replace(Request("server_name"),"'","''")

Save the file, and next time the webpost is updated from the teamspeak server + should be replaced with space.

Madhouse
08-02-2003, 15:17
I am still having an issue with this reporting back, I have updated to the new files and yes the w3 sockets are on the server.

It will not bring up the info for anything.

http://rtmclan.com/TS/rtm.asp

Cstar_maxim
08-02-2003, 21:26
Thanks DM :),

I would learn ASP but peeps tell me to learn php insted.

Dark-mixer
10-02-2003, 18:51
Madhouse >> w3 sockets havent anything to do with the listing of the server on the front page. If the socket wasnt installed you would get an error while loading the page.
The problem could be caused by some wrong settings in your server.ini file for the TS server. The URL to the webpost.asp file have to be entered correct. If its not entered correct or in the right place you wont get the server to post the data to the script.

Dark-mixer
10-02-2003, 18:57
Cstar_maxim >> ASP are on its way to the waste lands because its being releaved by ASP.NET. So if you want to learn a language thats well documented PHP are a good start. I write a lot of PHP myself along with some oldfasion ASP scripting.
So good luck with the scripting :D

GASCRLModernAge
21-02-2003, 22:41
Gentlemen,

My server displays fine but I get this error message when I click the details link.

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/include/function.asp, line 57

Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.


Any ideas? Also, my server name actually displays with %2B representing spaces in my server name.

Any help you folks can provide is greatly apprectiated. I'm running IIS 5.0 on Win2K SP3.

Madhouse
21-02-2003, 23:02
Dark Mixer the URL is correct but still getting nothing to display.

NM156
22-02-2003, 07:37
Dave, You need to install the W3 sockets for your server. ASP can not natively connect to other computers via the TCP socket. So there are third party components that take care of these functions, that MS so kindly neglected to include... :rolleyes:

All of the data strings passed from the TS server are "URLEncoded", which means that you'll see those weird things like %2B. They aren't parsed before they get inserted into the database.

HTH...


TeamSpeak WebPost ASP Edition
Requirement:
This script require that the w3 Sockets
are installed on the server. The component
are a freeware, and can be downloadet from
Dimac's homepage : http://www.dimac.se/



Originally posted by GASCRLModernAge
Gentlemen,

Server.CreateObject Failed

/include/function.asp, line 57

Any ideas? Also, my server name actually displays with %2B representing spaces in my server name.

GASCRLModernAge
22-02-2003, 07:43
ummmm...the site referenced for downloading w3 sockets has nothing of the sort anywhere on that site.

Have another location they can be obtained from?

NM156
22-02-2003, 07:50
Check your email... just sent it to you. :cool:

GASCRLModernAge
23-02-2003, 16:10
Thanks...and found it buried about 4 levels deep on another web site.

Dark-mixer
27-02-2003, 14:15
To thoose who seem to have problems finding a page where they can download the w3 socket, then this should be a "direct" link to there download page.
http://www.duplo.se/websites/dimac/website/products/w3Sockets

Jimbo71
04-03-2003, 14:46
Does this script works with the new RC2. version ?
Becouse my RC2 server not being shown in my server list.

Jim

NM156
04-03-2003, 20:34
It works fine for me, haven't seen any issues...

Originally posted by Jimbo71
Does this script works with the new RC2. version ?
Becouse my RC2 server not being shown in my server list.

Jim

GASCRLModernAge
07-03-2003, 23:48
it's not working for me either :(

Jimbo71
08-03-2003, 00:09
I just forgett to edit in server.ini

PostURL=http://your ip/webpost.asp

/Jim

GASCRLModernAge
08-03-2003, 00:11
scratch my complaint too...it simply had taken awhile to show back up in the list...all seems well now :D

Chirkov
29-06-2004, 12:12
Yup, I'm getting the same exact thing. Either there is some sort of security setting not mentioned that must be done to IIS, or the W3 component isn't working correctly.

I'm going to dig into it some more and see if I can come up with some ASP alternatives.

May be w3sockets component not always works?
I wrote this code, and it always returns an error (Can't assign requested address) .. May be anybody know why?

var sk = Server.CreateObject("Socket.TCP");
sk.Host=....:port;
}
catch(skt)
{
throw "Can't create Socket object!";
}
sk.Open();
sk.TimeOut=2000;
sk.SendLine("sel 8767");
sk.SendLine("slogin super 123");
for(var i=0;i<Users.length;i++)
{
sk.SendLine("fp "+Users[i]);
}
sk.SendLine("quit");
sk.WaitForDisconnect();

via Telnet i can work with this server..
all ports, hostnames are right! .. i suppose that problem in sequrity options....? but which options?

tristan31
30-06-2004, 23:59
Hey there all

i have a little porblem i want to remove all those " form the list you know when the list comes up its saying "Channel" and for the names on the list is "dude" some thing like that but you can see it here See here. (http://frip.dk/tristan/ts/index.asp)

So any boddy pls help

tristan31
01-07-2004, 01:56
Hey there all

i have a little porblem i want to remove all those " form the list you know when the list comes up its saying "Channel" and for the names on the list is "dude" some thing like that but you can see it here See here. (http://frip.dk/tristan/ts/index.asp)

So any boddy pls help



the link ditten work but here it comes

See here. (http://frip.dk/tristan/ts/index.asp?svrID=18)

Evil_XL
11-07-2004, 22:44
OK, finally I made it to the forums.
I got the same problem many of you have or have had.

I got no servers listed when I open the index.asp page.
The svr_db.mdb is containing some default info but even that won't show.
The database is not being written...
The server.ini is adjusted

I got the w3socket installed but I think that is just the next step.

The link is: http://82.75.6.152/TS/index.asp

FYI: I got the TS server and IIS on the same machine....

server.ini looks like this:
[debug]
MessageTypes=LMTALL
MessageDepths=LMDALL
[Main Config]
ExternalIPDectection=1
HTTPServer Port=14534
HTTPServer Enabled=1
DateTimeFormat=dd-mm-yyyy hh:nn:ss
TCPQueryPort=51234
AllowedClientNameChars=
DisAllowedClientNameChars=()[]{}
BoundToIp1=
[WebPost]
AdminEmail=xl@4evil.com
ISPLinkURL=http://www.4EVIL.com
ISPName=4EVIL
ISPCountryNumber=4445
Enabled=1
PostURL=http://82.75.6.152/TS/webpost.asp
ListPublic=1
UserAgent=teamspeak
[log]
access_r=0
access_u=0
channel_registerred=0
channel_unregisterred=0
sa=0
chat=0
kick_server=0
kick_channel=0
[Spam]
max_commands=10
in_seconds=2

I got IIS 5.0 (Windows 2000) and TS RC2 20201

TIA!!!
XL

Evil_XL
12-07-2004, 17:18
when I alter the PostURL to http://www.websolutionsinmotion.com/wp2/listing.php
the page shows the server and all.
No problems so it seems that the problem is in the script or my IIS?!

Anyone got a testsite with this script running that I can webpost to??

Evil_XL
12-07-2004, 18:45
That is http://www.websolutionsinmotion.com/wp2/webpost.php of course.

The result shows on http://www.websolutionsinmotion.com/wp2/listing.php

cracknix
12-07-2004, 21:29
Hi,
okay i've got the same problems.. but i solved them:

1. DB must be read/writeable and must be accessible for iis user (anon)

2. /conf/settings.asp -> was to small so use this line:

txtCodec = Array("CELP 5.1 Kbit","CELP 6.3 Kbit","GSM 14.8 Kbit","GSM 16.4 Kbit","CELP Windows 5.2 Kbit","","","","","","","","","","","","","","","")

3. Can't Assign Address -> don't use Localhost for WebPost Update -> Try 127.0.0.1 or the UNC Name or DomainName if resolved.

Hope u will get it work!

Evil_XL
13-07-2004, 23:40
1. DB must be read/writeable and must be accessible for iis user (anon)

2. /conf/settings.asp -> was to small so use this line:

txtCodec = Array("CELP 5.1 Kbit","CELP 6.3 Kbit","GSM 14.8 Kbit","GSM 16.4 Kbit","CELP Windows 5.2 Kbit","","","","","","","","","","","","","","","")

3. Can't Assign Address -> don't use Localhost for WebPost Update -> Try 127.0.0.1 or the UNC Name or DomainName if resolved.


Thnx for your help Cracknix!
Still got the same problems though...
I think I got item 1. covered but I'm not completely sure. Since I can see that the database is not being written to... Is there an easy ASP page/script to test this????

I altered the line you mentioned in item 2.

I altered the address to the Netbios name of the PC. Since it is the same machine IIS is running on, this should not be the problem I guess.

If you are willing to help me out we could test 2 things...
1. When you have the script running, you also have a webpost.asp page I can webpost to??? Just for the test? I think this should work since I tested it with a php-based server. But we could see if all data is passed through.
If this is working, the script is obviously running and I know I got a problem with the rights in IIS...correct?!

2. You could try to webpost to my IP (http://82.75.6.152/TS/webpost.asp) and see if something comes up... This way I can exclude problems of running TS and IIS on the same machine.

Can you mention I'm getting desperate?? :(

Evil_XL
14-07-2004, 14:18
Dunno what happened but here is what I did:

- all the things I mentioned in the previous post.
- updated and switched of the personal firewall.
- edited the webpost.asp database path to C:\inetpub.....svr_db.mdb. I know I actually should use a virtual path but.... now the database was triggered and updated?! Just once and then it was gone. Set back everything to normal and restarted the TS server ... voilā... up and running. Anyone got an explanation besides I'm probably losing it?!
- now restarted the complete server and it still seems to be working.
- Fired up the firewall, no problem...

Last problem:
When I take a look at the index.asp file (http://82.75.6.152/TS/index.asp) my server shows up twice?????

Kind regards to those who helped me so far!!

chrismu1
16-09-2004, 17:45
hi all
i did not see this error so can anyone help me with this.
I can get my server to show up but when i click on the details i get a 500 error.

TS webspost (http://www.elitelangamer.net/servers/webpost/index.asp)

thanks

TMacT
17-09-2004, 23:12
Hi,

I just DLed and installed this today. I am not at 100% yet, but here is what I found.

** Database **
If you leave the access database in the default location, and copy it to the folders for your web site, it will most likely not have Read/Write permissions for internet user account (mentioned above). Now since leaving it in that spot would allow anyone to type the URL into their browser and open/edit the MDB in Access, I would recomend moving it. It should be placed outside of the folders that are your web site. I know that not everyone can do this, it is just the preferred solution.

Now that you have the database where you want it, you have to make sure the TsInternet user can Read/Write the file.

Some IIS configurations restrict access to "parent paths" (.. & . ) so trying to open the database with ".\..\..\access_db\dbfile.mdb" will not be allowed. I had to hard code the location in to the ASP files. Files you say ? Isn't it in the settings.asp ? Yes, and in several other places / files. (settings.asp, webpost.asp, index.asp and sometimes more than once per file.) So, now you have your database in a nice place on your web server, and you can read/write it and the ASP source knows where to find it.

** Codec Type **
One of the values passed is the CODEC that is in use. It is jsut a number from 1 - ?? and there is an array (txtCodec) that has all the actual names of the codecs. This is quite snazzy but there are only 5 CODEC in the list and my server returns number 13. ChrisMu1, this is the source of your error, which I got as well. To fix this, you need to edit 2 files. Fix the list of CODEC in the settings.asp, and then add a check in case more codecs are added in the future (not likely, but why fix it twice). Here are the fixes.

'''' in \conf\settings.asp - find this section
'###########################
'### Codec convert array ###
'###########################
'' txtCodec = Array("CELP 5.1 Kbit","CELP 6.3 Kbit","GSM 14.8 Kbit","GSM 16.4 Kbit","CELP Windows 5.2 Kbit") - the next line replaces this one.
txtCodec = Array("Celp51", "Celp63", "GSM148", "GSM164", "WindowsCELP52", "SPEEX2150","SPEEX3950", "SPEEX5950", "SPEEX8000", "SPEEX11000", "SPEEX15000","SPEEX18200", "SPEEX24600", "UNKNOWN")

'''in \index.asp - add this IF ... END IF
'Check for Codec - If not on the list, set to UNKnown, the last in the list
if ChannelCodec(i) > (UBound(txtcodec) - 1) then
ChannelCodec(i) = UBound(txtCodec)
end if

'These next two line should be at about line 142 in index.asp. Insert the above IF ... END IF routine above these.
dFind = Array("[CHANNELNAME]", "[CODEC]", "[USERS]")
dRepl = Array(dChLnk, txtCodec(ChannelCodec(I)), ChannelOnlineCount & "/" & ChannelMax(I))

This has stopped the errors. I will let you know if everything is working.

Knuddesoft
02-10-2004, 14:30
I have read the whole topic, but still not able to get it working.
I have my own Windows2003 server (IIS6.0 and for ASP enabled parrent path)
Downloaded the teamspeak 2.0 file, unpacked it to a folder called teamspeak, so that's the root dir, the url is: My URL (http://teamspeak.thaskullman.nl/) and I see a default teamspeak screen (without errors)
Gave the IUSR write-rights on de database dir (all path settings in index.asp, settings.asp are still default, so I didn't modify the path to the database yet)
Edit the server.ini to: PostURL=http://teamspeak.thaskullman.nl/webpost.asp (same as the above link)
I have NOT installed the w3socks, because I thought it only needed if you got errors
Using teamspeakserver: ts2_server_rc2_20201.exe

What do I wrong or what did I forget, or.....?

Knuddesoft
12-10-2004, 10:40
I don't remember where I saw it (somewhere in this forum) :p

Harkone
24-11-2004, 18:54
Hi all. Having a bit of an issue here.

w3sockets is installed and the index.asp page works until I attempt to view the details for the page, at which point I get this error:

Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/teamspeak/conf/functions.asp, line 132

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

Line 132 references this piece of code:

'Open w3 Socket
set socket = Server.CreateObject("Socket.TCP")

I'm assuming it's an IIS permission that needs to be set, but I'm at aloss where to do it. I have full control over this server. Any help would be appreciated. Thanks!

Harkone
24-11-2004, 19:16
Hi all. Having a bit of an issue here.

w3sockets is installed and the index.asp page works until I attempt to view the details for the page, at which point I get this error:

Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/teamspeak/conf/functions.asp, line 132

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

Line 132 references this piece of code:

'Open w3 Socket
set socket = Server.CreateObject("Socket.TCP")

I'm assuming it's an IIS permission that needs to be set, but I'm at aloss where to do it. I have full control over this server. Any help would be appreciated. Thanks!
Ahhh found it. The DLL had deny permissions on it by default due to Ensim Pro. Fixed now. Thanks!

Grenzer
24-11-2004, 22:06
Harkone... can you pls explain me what you did to solve that problem? Because I have the same problem. I can see the servers in the serverlist, but when I click on details i get the error message you mentioned above.

Thx in advance

Edit:
Server and Homepage are running on different servers. W3 is installed on both servers because webpage and Teamspeak were running on same server before :)

JOR
06-02-2005, 01:27
Hi folks

I hope there is a coder, who knows some to ASP, cause i donīt

My problem is, I canīt get any data from the server to show :

The webpost URL is set, but can it run with an IP (http://**.**.**.**/aso)??

Can the webpost run with the newest TSS (version: 2.0.20.01) ???

Is it possible to change the path for the db in the webpost.asp ( (*.mdb)};DBQ=c:\*******\******\**\svr_db.mdb ) ???

http://83.72.193.66/Deling/teamspeak/index.asp

killingseed
28-02-2005, 20:42
when try to make this tool/mod to work i had only one issue "can not create object", but i seemed to resolve it by adding iuser or internet guess read access to that file "socket.dll" or w3sockets

hope this help some ppl

HoboJo3
28-02-2005, 21:35
i know this aint part of this forum but i started a server do i have to pay cuz i think ive been billed

diGestive
01-03-2005, 09:36
The webpost URL is set, but can it run with an IP (http://**.**.**.**/aso)??
...Y not_? IP or DNS name ..it is all the same, I assume u're tryin to get it work on ur local server, just type ur IP and dont forget to set virtual directory for the folder where script should be
Can the webpost run with the newest TSS (version: 2.0.20.01) ???
I think it can cause I got it worked (partially) ... will explain my problem L8R

Is it possible to change the path for the db in the webpost.asp ( (*.mdb)};DBQ=c:\*******\******\**\svr_db.mdb ) ???
Off course it is but you have to set READ/WRITE privileges for that folder...


Ok, now what is my problem_?
I've read whole topic several times but not seen anyone had problem with displaying info bout players - server details... well I have info bout server but when I click DETAILS there are displayed all the channels set in tS but no info bout players inspite that on the first page is shown that 5 users are online.

any help would be appreciated

diGestive
01-03-2005, 16:33
no need 4 HELP...
original script had two errors in code:
1. module functions.asp --> Function GetUserInfo(usrData,xID)
2. module index.asp --> Sub Main()
---------------------------------------------------
Function GetUserInfo(usrData,xID)
tmpArray = Split(usrData,vbTab)
For I = 0 To UBound(tmpArray) - 1
If Len(tmpUsr) > 0 Then tmpUsr = tmpUsr & vbTab
tmpUsr = tmpUsr & tmpArray(I)
Next

xUsr = Split(tmpUsr,vbTab)
If UBound(xUsr) >= 15 Then
For I = 0 To UBound(xUsr) step 16
If Len(xOutUsr) > 0 Then xOutUsr = xOutUsr & vbCrLf
if I=0 then
xOutUsr = xOutUsr & xUsr(I + int(xID))
else
xOutUsr = xOutUsr & xUsr(I + int(xID)-1)
end if
Next
Else
xOutUsr = ""
End If
GetUserInfo = xOutUsr
End Function



--inside of Sub Main() you have to put this line

dLister = GetDataItem(SiteDesign, "", "")

inside of LOOP statement ..otherwise if there are 3 servers that must be
shown in the list it will only show 1st server 3x times... :D :D :D



enjoy folks..it is fixed now...Im workin on ASP.NET version so I'LL post link with complete rewritten script as soon as I finish....

JimS514
09-03-2005, 01:16
I have TS running on a Windows 2000 server at my location, and I host my web through www.powweb.com

I uploaded the files to my webspace, made the server.ini modifcation, and when I go to view the page I get a whole page of text......looks like coding (ASP code)?

Anyone know what I did wrong. What info do you need from me to help.

Thanks in advace!

JimS514
09-03-2005, 01:19
Oh, and I have W3sockets installed I believe. Is there any way to check that?

diGestive
14-03-2005, 00:46
I uploaded the files to my webspace, made the server.ini modifcation, and when I go to view the page I get a whole page of text......looks like coding (ASP code)?


make sure that u allow running scripts in ur folder ...check ur IIS permissions...
ooh I C, u r runnin ur webpost.asp on powweb.com, well in that case ur installed w3socks want help u at all cause the script is resolving on server not on ur home computer. w3socks is 3rd party telnet protocol and I dont think that powweb.com admin will let u install it on public server...
u can take a look at script runnin on my home server here (http://ri051.kicks-ass.net/ts2/index.asp)

9994
15-04-2005, 10:34
I have just released a version of WebPost written in ASP.
You can download the script here :
WorldWideWhat.Dk (http://www.worldwidewhat.dk)

/Dark



Just found this post and might just be excactly what I am looking for..... Sorry to see the page down though (but hey... the post isnt really new so,,, ,o))


Anyone know if this Webpost in .ASP is avaliable somwhere?

WalkaboutTigger
16-05-2005, 21:26
It is available at

http://www.worldwidewhat.dk/?show=codes&type=1&id=47

el_pipi
02-06-2005, 13:33
I can see the server, total users, etc... When I click in DETAILS I can see all the channels, but not the users [NICKNAME] or quantity of users [USERS] :(

TS Server Under Linux.
WEBPOST under Windows 2000 + W3 Sockets

el_pipi
04-06-2005, 03:17
I can see the server, total users, etc... When I click in DETAILS I can see all the channels, but not the users [NICKNAME] or quantity of users [USERS] :(

TS Server Under Linux.
WEBPOST under Windows 2000 + W3 Sockets

Solution : With Upgrade :rolleyes: Thanks DARK...

Now i want to modify the code to see the subchannels under the channels....

Working..... :confused:

Dark-mixer
08-06-2005, 09:15
el_pipi > Your very much welcome ;)

Im glad that someone uses the TS ASP script, and adds functions plus other things to the script. If you think that others could gain anything from the development you've made to the script feel free to mail me the source. Then I'll put it on my website, and credit you the development.
mail: coder@worldwidewhat.dk

warstar
11-07-2005, 18:53
okay..

I have a problem ..

I have set all settings what i should do and i get information in to the Access database, but i get nothing out on my site...
And yes i have permission in the folder to write , read, run scripts all that stuff..

So are there some one here there can help me out please...?

my link in the line webposurl its. http://www.snookieworld.dk/ts/wepost.asp

and i have try : http://www.snookieworld.dk:51234/ts/wepost.asp
and : http://www.snookieworld.dk/ts/index.asp
and : http://www.snookieworld.dk:51234/ts/index.asp

But nothing show up, but i dont understand its write to my database, but i can get the information out... its cranky...or spookie.. please help me

HaVoC
26-08-2005, 02:03
I have 2 separate servers in my TS Server list and my list shows 2 servers but the info for both listed is the same (the 1st server). I checked and -- dLister = GetDataItem(SiteDesign, "", "") -- is in the Sub Main(). Any suggestions as to what other fix there may be for that?



no need 4 HELP...
original script had two errors in code:
1. module functions.asp --> Function GetUserInfo(usrData,xID)
2. module index.asp --> Sub Main()
---------------------------------------------------
Function GetUserInfo(usrData,xID)
tmpArray = Split(usrData,vbTab)
For I = 0 To UBound(tmpArray) - 1
If Len(tmpUsr) > 0 Then tmpUsr = tmpUsr & vbTab
tmpUsr = tmpUsr & tmpArray(I)
Next

xUsr = Split(tmpUsr,vbTab)
If UBound(xUsr) >= 15 Then
For I = 0 To UBound(xUsr) step 16
If Len(xOutUsr) > 0 Then xOutUsr = xOutUsr & vbCrLf
if I=0 then
xOutUsr = xOutUsr & xUsr(I + int(xID))
else
xOutUsr = xOutUsr & xUsr(I + int(xID)-1)
end if
Next
Else
xOutUsr = ""
End If
GetUserInfo = xOutUsr
End Function



--inside of Sub Main() you have to put this line

dLister = GetDataItem(SiteDesign, "", "")

inside of LOOP statement ..otherwise if there are 3 servers that must be
shown in the list it will only show 1st server 3x times... :D :D :D



enjoy folks..it is fixed now...Im workin on ASP.NET version so I'LL post link with complete rewritten script as soon as I finish....

HaVoC
30-08-2005, 12:20
Anyone??? :confused:

HaVoC
01-09-2005, 05:54
nevermind...found the right place to put it :)

Mr. Leech
08-09-2005, 10:06
ASP Edition of WebPost

The link www.WorldWideWhat.Dk does not work :eek:

/Mr. Leech

TheCryptowizard
01-12-2005, 20:26
WOW - I just took a look at this code and its database connections and realized how incredibly sloppy this is.

I don't have time to write my own script right now ... so I'll probably use the PHP version for now. But when I do get the time I plan on writing an asp.net version that uses a MySQL backend.

If someone else does it in the meantime, many thanks.

chris_W_2k5
01-02-2006, 00:30
When i try clicking on "Details" on the site, it gives me this error

ServerObjectCreateObject: - Error 'ASP 0134'

Invalid ProgID attribute

/pa/teamspeak/conf/functions.asp, line 133

The object has an invalid ProgID of 'Socket.TCP'.

Here is the site its on. http://wilsonracing.org/pa/teamspeak/index.asp

chris_W_2k5
09-02-2006, 22:27
Can anyone help me at all?

Naesstrom
24-02-2006, 23:08
I'm getting this strange error after uploading the files to my webspace:

Error Type:
Server object, ASP 0177 (0x800401F3)
System message, messageid = 0x800401f3
conf/functions.asp, line 13


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Page:
GET /ts3/index.asp

Time:
Saturday, February 25, 2006, 12:02:31 AM

don't know what's wrong and I have read all the threads in this topic...

[edit] just found out that I cant runt acess db's on my webspace... only mysql...

Barrierman
18-03-2006, 10:13
Please, help me......

Where can i download this ASP script???


Kind regards.

joeyj248
15-05-2006, 17:47
I have been trying to get this to work for a few days now and I am hoping that it is something simple I'm doing wrong that someone here can point out to me.

I have W3sockets installed and working. I run IIs on a windows 2000 server. The teamspeak folder has script access and the access_dir folder has script and read/write access for aynonomous users. In Windows, I have the everyone user setup in all folders with full access. I have the Posturl=(mywebsite/webpost.asp) correct.

I can see the server and users fine, but when I click on the details link, I get the following error:

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Socket.TCP (0x8000FFFF)
Error while processing Socket opperation: Connection refused
/cgi-bin/teamspeak/conf/functions.asp, line 141


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

Page:
GET /cgi-bin/teamspeak/index.asp

------------------------------------------------------------------------------------

When i look up line 141 in the functions.asp file, it is SOCKET.OPEN()
any help is greatly appreciated.
Thanks,
Joey

Biterbites
25-09-2006, 01:15
Originally Posted by Harkone
Hi all. Having a bit of an issue here.

w3sockets is installed and the index.asp page works until I attempt to view the details for the page, at which point I get this error:

Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/teamspeak/conf/functions.asp, line 132

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

Line 132 references this piece of code:

'Open w3 Socket
set socket = Server.CreateObject("Socket.TCP")

I'm assuming it's an IIS permission that needs to be set, but I'm at aloss where to do it. I have full control over this server. Any help would be appreciated. Thanks!

Ahhh found it. The DLL had deny permissions on it by default due to Ensim Pro. Fixed now. Thanks!



Harone, or anyone else, could you explain what you did to get this working? I'm not very good at asp and spent the last three hours reading these forums....Darkmixer and Bastien needs to narrow down what all these post mean.....there's everything in here, php, asp, win this win that....lol