View Full Version : Same old problem stats not showing up
Scankman
23-03-2003, 09:08
I have setup and have been runing my server and clients with out a problem for the last week or so I then throught it would be a good idea to use the webpost scripts.
I have read through all alot of the posts so I first logged in to the webclient and setup the webpost so that the settings in the ini file where there I then opened the ini file and added the post url I copied that in to my clipboard and tested that the url was all ok (the url is at my host)
I waited 30 minutes with out seeing the server. I then rebooted the server and tested again no luck. I then looked at my firewall and looked to see any connects that are made out of the TS to my site but I did not see a single request go out.
I can I set a debug option to see the requests made in the TS log file I am useing the lates version for the website on a WinXP Sp1 PC.
Now my website provider (that I know is not getting any requests made to )
Here is the info on the server
- Windows 2000 Server SP3 IIS
- .net framework SP2
- php 4.2.3
- activestate perl 5.6.1
- XML Parser 4
- frontpage server extensions 2002
- MySQL server 3.23.53
- SQL Server 2000 SP2
I had similar problems mainly becuase i was using the wrong version of PHP try using version PHP 4.0.6. Certain functions used in webpost have changed i think in current versions of PHP.
Scankman
23-03-2003, 12:06
thats the problem its on my providers website so I cant do any thing about that :-( but as I said I dont see any action on my firewall or in the log file I might be able to sort out another host but for the time being I need to make sure my TS is outputting to the host and as I said I dont think it is I will try and make a connection to http://www.thzclan.com/ts2/webpost.php and see if my server shows up there.
PS thanks for your time you tock to reply to this post :-)
Update yep looks like its down to the php version (which I throught could cause a problem)
My server showed up on thz's server does any one know when V4 is coming out or is there any work around for the version of php ?
[GR] Cool K
23-03-2003, 14:39
Set global variables in your php.ini file to on and your webpost will rock the world!
-or get your host to do so ;)
PrimalFear
23-03-2003, 20:16
Hi can anyone tell me the location of the php.ini file.
I am using the nuke version of webpost & its installed here >>>mysite<<< (http://216.40.216.218/~admin3/html/modules.php?name=webpost)
I have it installed on a remote linux server
RedHat Linux 7.2 Features:
Red Hat Applications
RedHat 7.2
Apache 1.3.22
Sendmail 8.11.6
Bind 9.1.0
MySQL 3.23.36
mod_perl 1.24
Kernel 2.4.9-31
EXT3 Filesystem
PHP 4.0.6
PERL 5.6.0-12
OpenSSH 2.9
I have my TS servers up & running but getting no response from webpost as you can see.
I have full root access so I can change the php file if I can find it.
My site is running on php-nuke 6.5, I eventually want to run the ticker but one step at a time.
In advance thanks for reading & if there are any other pointers please let me know.
[GR] Cool K
23-03-2003, 21:24
Hmm - I'm running a Windows 2000 Server utilizing IIS - so I wouldn't know where to look for the php.ini file on a Linux system. A good guess though would be in the php directory or in the Linux system directory. :D
Btw: I'm using the ticker in a postnuke block (cool feature) and as a toolbar for my TS users...
Have a look over at WARGAMER (http://wargamer.adsl.dk/) :cool:
Scankman
23-03-2003, 22:31
Would it be possible to get a copy of the ticker would the block be the same as a PHPNUKE block I guess if I could look at the code I could port it to use phpnuke would you be happy to share the code ?
[GR] Cool K
24-03-2003, 07:33
Sure - no problem... Currently my computer is down due to a video card failure - but as soon as I'm up and running again (on my own computer) I'll contact you!
Would that be OK?
Scankman
24-03-2003, 10:18
Sure thats fine with me :-)
[GR] Cool K
24-03-2003, 17:03
Hmmm - well - this isn't very fancy or anything - but here is how I did it.
I'm not sure that it works the same way in phpnuke - but here's how to do it with postnuke... :D
Add a block - select the Core/php option - and insert the below line - where the path is replaced with your own path.
include("http://wargamer.adsl.dk/ts2/pnticker.php?group=[GR]");
Please note that the ticker.php in my case has been changed to pnticker.php since I wanted identify the one for the postnuke block (due to colorchanges to match the theme)...
The pnticker.php code is inserted below (incl. the credit to the people who deserves it ;) )
I've set the refresh interval to 7200 seconds. This way it refreshes only when the user reloads the web page. If set to 60 secs. the web page will refresh with the ticker (I've not figured out how to refresh the block only) with is pretty annoying when typing - since the text you type will be deleted on refresh)
Well, I hope this helps you out - I can't really do better :(
<?
/*
****************************
****************************
*Webpost2 for TeamSpeak 2 by Ryan Snook
*
*www.thzclan.com/snooknet
*(c) Copyright TeamCom Team, Ralf Ludwig, Niels Werensteijn
*
* All rights are reserved.
* Copying or other reproduction of this
*program except for archival purposes is prohibited
*without the prior written consent of TC-Team. ****************************
****************************
*/
include("pndb_inc.php");
clearinactive();
$tickermarg = 'topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"';
$tickerrefresh = '<meta http-equiv="Refresh" content="7200">';
if (isset($group)) {
$show = "WHERE server_ispname='$group'";
$link = "?showgroup=$group";
}
if (isset($name)) {
$show = "WHERE server_name='$name'";
$link = "?showgroup=";
}
$sql = query("SELECT * FROM $dbtable $show ORDER BY clients_current DESC LIMIT 1");
while ($data = mysql_fetch_row($sql)) {
if ($data[17] != '0') {
$online = 'on';
} else {
$online = 'off';
}
}
include("tpl_style.php");
?>
<table border="0" cellpadding="0" cellspacing="0" width="165" height="20">
<tr>
<td align="center" width="15"><a href="ts2/listing.php<?= $link ?>" target="_blank"><img src="ts2/images/<?= $online ?>.gif" alt="<?= $online ?>"></a></td>
<td valign="top">
<marquee direction="up" scrollAmount="1" style="width:144px; height:18px; border:0px solid white; padding:1px" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=1">
<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="<?= $bordercolor ?>" class="listfont">
<tr>
<td align="center" bgcolor="<?= $catrowcolor1 ?>" colspan="2" class="catagory" valign="middle"><b><a href="ts2/listing.php<?= $link ?>" target="spf_latest">TeamSpeak Servers</a></b></td>
</tr><?
$sql2 = query("SELECT * FROM $dbtable $show ORDER BY clients_current DESC");
while ($data2 = mysql_fetch_row($sql2)) {
if ($rowcolor == $rowcolor2) {
$rowcolor = $rowcolor1;
} else {
$rowcolor = $rowcolor2;
}
echo '
<tr>
<td align="center" bgcolor="'.$rowcolor.'" class="listing" nowrap><a href="ts2/listing.php?detail='.$data2[0].'" target="spf_latest">'.$data2[10].':'.$data2[11].'</a></td>
<td align="center" bgcolor="'.$rowcolor.'" class="listing">'.$data2[17].'</td>
</tr>';
}
?>
</table>
</marquee>
</td>
</tr>
</table>
</body>
</html>
Scankman
24-03-2003, 22:10
perfect thanks for sharing that code will give it a try tonight :-)
well Linux is naturaly EVERY config files in /etc folder so for expample php.ini shoud try to find in /etc/php /etc/php.d /etc/apache /etc/httpd and other folder names! (it sometimes depends on distribution)
DO not change something in this folder /etc you DON'T KNOW ok ?!!!!!
so if I look on some school linux (CentOS) I see folder /etc/php.d and /etc/httpd/conf.d/php.conf (not favorite distribution)
I'm not sure about that "globals" settings ... I running PHP with safe_mode ON
so if you want try gllcTS2 ...
... you can
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.