anyone have code for a ventrilo block that shows who is on ventrilo and maybe even launches the program with a link or something? i know i saw something like that on ichbin's site (or maybe it was someone else's)... anyway, help plz :P
Ok, here's the ventrilo files. I have it working on my site with no errors. All I've done is edit the files so that it would only display the channels and users on the server. I commented "//" out all the lines that weren't needed and added a few things to make it work a little better. All credit goes to the creator of the scripts not me. :) If you'd like to see a working version of this feel free to visit my site at http://www.tmrules.com
Instructions:
First thing you need to know, is your servers operating system windows or Linux? Depending on which one you have you need a certain file to be included with these scripts. This file is called ventrilo_status (for linux) or ventrilo_status.exe (for windows). If you need the windows file you can download it in the ventrilo server package located at http://www.ventrilo.com/download.php for windows. I've included the file for linux in this package. It's a good idea to check with your host to make sure its ok that you have Executable files on their computer. :)
Ventrilo server settings that need to be changed:
Server Status Queries Enabled and Server Status Password if you so desire.
Next you need to edit one file.
Open up ventrilotest.php and scroll until you see these lines:
//The next 6 lines are the only thing you need to change.
$stat->m_cmdprog = "/path/to/ventrilo_status"; // Adjust accordingly (full path recommended)
// The ventrilo_status file must be in the same directory as this script
$stat->m_cmdcode = "2"; // Detail mode.
$stat->m_cmdhost = "IP or domain here"; //IP or Domain
$stat->m_cmdport = "3835"; // Port used for your ventrilo.
$stat->m_cmdpass = "YourPassword"; // Status password if necessary.
Everything that needs to be changed is pretty much self explanatory.
If you get any errors about no status it is likely caused by things such as:
path to ventrilo_status is not correct, server settings not set. Always double check your settings. :)
Once all that is done go into TPadmin and add a php block. All you need to put in it is this line right here:
inlcude ('ventrilo/ventrilotest.php');
Of course, make sure your path is correct if you don't put the ventrilo folder in your root folder of your website.
I'm probably going to keep working on this to make the text a little more fitting to my theme. Just thought I'd share since a couple of you seemed interested. Good luck!
Zip is posted again at this post.
http://www.tinyportal.net/index.php?topic=911.msg101870#msg101870
If you get a "CVentriloStatus->Request() failed error, please goto this post.
http://www.tinyportal.net/index.php/topic,911.msg223497.html#msg223497
no teamspeak?? :(
Yes, I have one for team speak too. lol But I'm not done with that one. :)
tyvm ;D
it says on your site CVentriloStatus->Request() failed. No response from server.
I would be very interested in the teamspeak one as well :)
got a nice big error....
Fatal error: Call to undefined function: inlcude() in /home2/xxxxxx/public_html/forum/Sources/Load.php(1642) : eval()'d code(32) : eval()'d code on line 1
entire forum dissapeared after the error, so removed the block and it works again.
Yea, for some reason the status doesn't work 100% of the time when it loads in TP. Not sure what causes it. What did you do Moocat? DId you just include the file? It shouldn't have anything to do with Load.php.
copied all your code exactly except changing paths around a little bit to lead to the right directory
i don't know what the problem here is lol but it says load.php.
I have the same error and problem when I run it as well. The likely cause is the linux exe file because if you run ventrilotest.php you get this error:
CVentriloStatus->Request() failed. PHP Unable to start external status process.
Lobby
Join
This is all that dumps out on the page. I put all of the files in a folder named ventrilo off of the smf forum main folder and have tried several different links in ventriotest.php to see if it just isn't pointing correctly and every time I still get the same error.
Perhaps both of our web hosts have prevented programs from running and that is causing the error. I don't know but I'm most dissapointed. :(
This script would be just what my site needed if I could get it running.
Which is why I said you should contact your host concerning having executable files on their server. :) Mine, runs pretty good for the most part. You can actually get the original script from ventrilo.com if you want to take a look at it. The script itself when loaded (not in SMF or TP) loads every time. Which leads me to think that something in TP/SMF is not letting it connect or something sometimes.
Yep, I asked the host and they said they don't allow such scripts. Guess its a nice thought but I'm SOL on this one. Is it possible to have the exe file on a different server from the PHP scripts? I have places I can run exe's from that are public, but they don't have a PHP server running on them. Catch 22 huh?
Oh well, hope this script helps others.
Sorry to say it won't work without the exe file on the same computer. When I first discovered this script I wanted it to work so bad.... that is the reason I run my own webserver now. :)
Hi, I have enjoyed using your Teamspeak block, but we want a ventrilo server again. I noticed your Vent Block on http://www.tmrules.com is busted.
Have you refined this script?
If you reload the page it works. I don't know why it doesn't load everytime. Haven't been able to figure out why.
I installed the ventrilo files as everyone else did, and Im having the same:
Fatal error: Call to undefined function: inlcude() in /home/blacsto1/public_html/forums/Sources/Load.php(1040) : eval()'d code(32) : eval()'d code on line 1
Im contacting my host about it...
Can you post what code you put in your block?
inlcude ('ventrilo/ventrilotest.php');
my host refuses to allow me to run ventrilo_status
yeah, I figured many hosts would be this way considering it's an executable file....
awwww poo!
I don't know if you all are using free servers or pay, but I'm using darkstar hosting and they now provide everything for a ventrilo status block. Just copy and paste the java code from your account control panel and you get exactly what you wanted. Prices are pretty cheap and I've been using them for a long time.
darkstarllc.com if interested.
Thanks Wizard Hawk. But I just transfered to ANHosting.com (part of midPhase) I get 15GB on a blazin fast line and 250GB of BW for $8.00/mo
Of course all the bells ans whistles for a linux server. I think Ill ssave myself the pain of migration and simply petition them to approove Ventrilo_Status for their users. After all, it is a verifiable commercial product. No more dangerous than pop3 for cryin out loud lol...
Thanks for the update tho. It encouraged me to press my new host.
BTW, Id suggest everyong look at OUTPOST USA: www.OUTPOST-HOST.us
Its a Nation-wide internet company. They do alot of free stuff like custom HTML web design and low cost, pro FLASH design for 75% less than market price. All you have to do is subscribe, and they give you everything else free.
www.OUTPOST-HOST.us
Darkstar is a ventrilo host, not a web host ;-)
I didn't change my web host and I have one that refuses to allow the program to run. The script I was talking about is provided by my ventrilo host and the exe runs on their servers. There is nothing to add to your web host at all, just copy and paste the java code provided in your ventrilo control panel and paste it into a new script box in TP and you get full ventrilo status with a nice layout.
If you are paying for a ventrilo host now and having a ventrilo block is something you care about, changing your vent host to darkstar is worth looking into since they have very good prices and solid servers anyway.
Any good Vent host should provide you with such a feature as it is part of the Ventrilo server....
Ya know, Im paying for my vent server through ECGN (East Coast Gaming Network) I shoulda thought of that I guess :P
I didnt know that they could provide that to me, because I thought that all the files had to be on the same server as my forums.
I think the reason this isn't working for some is because IchBin's scipt is for Windows servers. I went to http://www.ventrilo.com/download.php and there is a specific script for users that are running Linux in the "third party utilities" section.
I downloaded the Windows version and the files contained in the download look EXACTLY like the ones that IchBin posted here. In addition the readme in the zip file for windows specifically states, "Installing the windows ventrilo_status.exe program on a Linux machine will not work no matter how hard you try."
In addition the files for the Linux version are totally different. I have little expierience in this stuff. Can someone step up and break this down to NOOB programmer terms like IchBin did and post this Linux Ventrilo Status Block NOOBIE HOW TO...
There will be many members who will praise you up and down including myself!!!
The only difference is the ventrilo_status file. The php scripts are the same. That is why it says that the ventrilo_status.exe file will not work on linux (because .exe is a windows execution file). All you need to do is replace the .exe file with the linux binary and everything should work the same. I do believe I stated that in the original post.
inlcude ('ventrilo/ventrilotest.php');
It should be include. I get this now:
CVentriloStatus->Request() failed. PHP Unable to start external status process.
OOH that was my problem too!!! "inlcude" LOL.
But now I DO NOT get any errors, just nothing shows up in the module.
BUT when I go directly to http://www.cyeclan.com/ventrilo/ventrilotest.php I ALSO get:
CVentriloStatus->Request() failed. PHP Unable to start external status process.
Ok I am getting there. I took a shot at this WITH NO HELP I might add and changed the file permissions to 777. When I go to http://www.cyeclan.com/ventrilo/ventrilotest.php it displays but it doesn't within the module.
I am almost there HELP!!!
Ok got it. AGAIN ALL BY MYSELF (I M PROUD)!!!
I included the full path in the block (include).
It works!!!
Quote from: scotte44 on February 23, 2006, 06:50:11 PM
inlcude ('ventrilo/ventrilotest.php');
It should be include. I get this now:
CVentriloStatus->Request() failed. PHP Unable to start external status process.
As Daygo said, it might be your files permissions. Or it could be that you're host isn't allowing you to run this file.
A good thing to do also if you don't know already, go to http://yourdomain.com/ventrilo/ventrilotest.php to see if it works. Then you are half way there if it does. That worked for me but then it didn't appear in my module. So what I had to do then was use the full path in the module.
EX:
include ('/home/xxxx/public_html/ventrilo/ventrilotest.php');
try to chmod 755 on ventrilo_status. i was having same problems until i changed the permissions
Gah, this things driving me crazy. it's the final piece of my site.
here's what i'm getting.
CVentriloStatus->Request() failed. PHP Unable to start external status process.
Lobby
JOIN
i current have the vintrilo file the OG posted installed in my forum, as well as all of the base file inside the folder installed in the root of the forum.
Trying to make either one work, and can't.
I've tried
Quoteinclude ('/ventrilo/ventrilotest.php');
include ('full path/ventrilo/ventrilotest.php');
-and-
include ('ventrilotest.php');
include ('full path/ventrilotest.php');
the third is the only thing that even makes me see anything. and it's what i showed above.
Let me make all your worries go away. :)
This seems to be a block that not many people have the resources to make it work. I'm not sure if this was posted already, but this site provides a way for you to get status without having the setup anything other than inserting code into a block.
www.ventrilospy.net
Ventrilo > Teamspeak - but the server status thingy for ventrilo is teh ghey.
Things should work, without hassle.
Hang on.. this just in: Ich posted a link: www.ventrilospy.net
Update: Ich - that link opens nothing.Ã, The page hangs on load. <_< Maybe their site took a dump.
Well, regardless. i'd love to get it working. looks pretty nice on your site, ich.
Yes it appears so. Hopefully he will have his site up soon. I have the developer on my MSN so I'll shoot him a PM if it doesn't come up soon.
i get these clowns on my site that think they need to post big ass comments. these comments throw the blocks outta whack bad. anyway to prevent this by having the comments word wrap?
Well if you're using the same script as me which I posted on the front page, open up the ventrilodisplay_ex1.php and find this line of code:
if ( $client->m_comm )
echo " ($client->m_comm)";
Change to this:
// if ( $client->m_comm )
// echo " ($client->m_comm)";
NICE!!!
So now it doesn't show any!! MUCH PREFERRED...
We've got some crazy guys and the crap they put in their comments are even crazier at times so it won't be seen on the site. GREAT JOB...!!!! THANKS AGAIN!!!!
Hi, Looks like a cool script to get running. I'm also running my own web server (windows) and would like to use this feature in my forum.
- I have my forum stored in C:\Program Files\xampp\htdocs\untforum
- My sub domain unt.swisshut.com points straight to the \untforum folder
- I put the attached files into \xampp\htdocs\untforum\ventrilo (also added the win server .exe)
- I changed the ventrilotest.php to:
$stat->m_cmdprog = "/untforum/ventrilo/ventrilo_status.exe"; // Adjust accordingly (full path recommended)
// The ventrilo_status file must be in the same directory as this script
$stat->m_cmdcode = "2"; // Detail mode.
$stat->m_cmdhost = "203.13.37.55"; //IP or Domain
$stat->m_cmdport = "3784"; // Port used for your ventrilo.
$stat->m_cmdpass = "YourPassword"; // Status password if necessary.
Is that correct?
We are using Vent Client v2.1.4. and the only older server packages I could find were 2.1.2 or 2.2.0. I'm using the server from 2.1.2 for this purpose.
Im getting a error: CVentriloStatus->Request() failed. PHP Unable to start external status process. Is there a mistake how I'm pointing to the vent folder?
The ventrilo_status.exe (not the server.exe) needs to be in the folder for it to start the process.
yup I have that file in the same directory \untforum\ventrilo\
did I assign the directories properly in the php document?
Yes, you need to set the path to the status file.
I never got this working but found another solution. To those who were having problems with it too try:
http://www.serverspy.net/site/ (http://www.serverspy.net/site/)
There's also this one that I posted on page 5.
http://www.ventrilospy.net/
Your link is actually a lot better IchBin!! Looks like its been improved a lot since I last looked!
Quote from: IchBinâ„¢ on October 04, 2005, 09:08:53 PM
Ok, here's the ventrilo files. I have it working on my site with no errors. All I've done is edit the files so that it would only display the channels and users on the server. I commented "//" out all the lines that weren't needed and added a few things to make it work a little better. All credit goes to the creator of the scripts not me. :) If you'd like to see a working version of this feel free to visit my site at http://www.tmrules.com
Instructions:
First thing you need to know, is your servers operating system windows or Linux? Depending on which one you have you need a certain file to be included with these scripts. This file is called ventrilo_status (for linux) or ventrilo_status.exe (for windows). If you need the windows file you can download it in the ventrilo server package located at http://www.ventrilo.com/download.php for windows. I've included the file for linux in this package. It's a good idea to check with your host to make sure its ok that you have Executable files on their computer. :)
Ventrilo server settings that need to be changed:
Server Status Queries Enabled and Server Status Password if you so desire.
Next you need to edit one file.
Open up ventrilotest.php and scroll until you see these lines:
//The next 6 lines are the only thing you need to change.
$stat->m_cmdprog = "/path/to/ventrilo_status"; // Adjust accordingly (full path recommended)
// The ventrilo_status file must be in the same directory as this script
$stat->m_cmdcode = "2"; // Detail mode.
$stat->m_cmdhost = "IP or domain here"; //IP or Domain
$stat->m_cmdport = "3835"; // Port used for your ventrilo.
$stat->m_cmdpass = "YourPassword"; // Status password if necessary.
Everything that needs to be changed is pretty much self explanatory.
If you get any errors about no status it is likely caused by things such as:
path to ventrilo_status is not correct, server settings not set. Always double check your settings. :)
Once all that is done go into TPadmin and add a php block. All you need to put in it is this line right here:
inlcude ('ventrilo/ventrilotest.php');
Of course, make sure your path is correct if you don't put the ventrilo folder in your root folder of your website.
I'm probably going to keep working on this to make the text a little more fitting to my theme. Just thought I'd share since a couple of you seemed interested. Good luck!
I may be dense and just missing something but...
What files are you talking about? I don't see any links to the files . I don't see any any of the mentioned files in this posting in any of the ventrilo installations with the exception of the ventrilo_status file.
Am I missing something?
We lost a lot of attachments in the move when we changed servers here. I would highly suggest you use one of the sites that provide this service for free, which have been posted on the last page or 2 in this thread.
www.ventrilospy.net seems to be a dead link and
http://www.serverspy.net/site/ is a now a pay only feature.
Hmm.. I'll have to ask the guy about ventrilospy.net I think he's still on my MSN. Other than that, here's the zip.
Is there any Possible solution for people that dont host there own vent server, but use one that belongs to somebody else? (Friend of a clan member)
vetrilospy is up and running now (server change).
It works great, all you need is the vent server info to use.
Can you link me? :D
www.ventrilospy.net
Quote from: TiKi-Cobra on January 11, 2007, 11:52:09 PM
Can you link me? :D
Or you could read up about 5 or 6 posts.....
http://www.fioch.org/index.php?action=tpmod;dl=cat6
can someone please tell me what's causing
undefined offset 1 errors (about 10 of them) every time i load up the page when i have this block of text in it.. BTW this block works its a Ventrilo block which i grabbed off the net (i had to use my own images)
I've also fixed all the undefined variables and constants errors
see it in action at http://ubernubes.darkstargamers.com/ (a friends site)
####################################################################
# This file is Copyright (c) 2005 Scott Benson #
# #
# Please submit changes, suggestions to #
# scott@sbhostingsolutions.com #
# #
# Modified by Vlorn vlornmail@vlornsworld.com #
# December 2006 #
# Modified by C.Arnott cameron@ecn.net.au #
# March 2007 #
####################################################################
define ("NAME", "NAME");
define ("CHANNEL", "CHANNEL");
define ("CLIENT", "CLIENT");
define ("SERVER", "SERVER");
define ("PID", "PID");
define ("CID", "CID");
$chanvar[1]=" ";
$value[1]=" ";
$content=" ";
$ventip = "202.3.110.54";
$ventport = "3952";
$ventpass = "";
$enable_graphics = "1";
$enable_link = "1";
$use_url = "1"; // if you can't use exec on the web server (safe mode prevents this) then enable to use
$ventrilo_status = "ventrilo_status"; // location of ventrilo_status - use the full path
$use_as_page = "yes"; // set to no to use as a nuke block, anything else and it will work as a regular page that can be called directly.
$username_color = "yellow"; // set color of username, use color name or Hex value, use "" for default style.css value
$show_comments = "0"; // show user comments "1" enables, "0" disables
$comment_color = "#808080"; // user comment color, use color name or Hex value, use "" for default style.css value
$scrolling_block = "0"; // Enable fixed hieght block that scrolls, "1" enables, "0" disables
$scroll_hieght = "420"; // Block hieght only used if scrolling is enabled
$graphics['1']['SERVER']= "<img src=images/ventserver.png align=middle>";
$graphics['1']['CLIENT']= "<img src=images/ventclient.png align=middle>";
$graphics['1']['CHANNEL']= "<img src=images/ventchannel.png align=middle>";
###################################################################
#
# No changes should be needed below here
##################################################################
if (($use_as_page == "no") and (eregi("block-Ventrilo.php", $_SERVER['PHP_SELF']))) {
Header("Location: index.php");
die();
}
if ($use_url == "1") {
$vent_info = "http://ns2.sbhost.net/ventstatus.php?detail=2&ip=".$ventip."&port=".$ventport."&pass=".$ventpass;
$lines = file($vent_info);
} else {
$command = $ventrilo_status . " -c2 -t".$ventip.":".$ventport.":".$ventpass;
$lines = `$command`;
$lines = explode("\n", $lines);
}
$channels[] = 0;
$settings['CHANNEL'][0]['CID'] = "0";
$settings['CHANNEL'][0]['NAME'] = " Lobby";
$settings['CHANNEL'][0]['PID'] = "0";
foreach ($lines as $line) {
if ( $line == " " ) {
next($line); # Ignore blankline
} else {
$line = rtrim($line); # Get rid of newline characters
# $line = ltrim($line); # Get rid of any leading spaces
$value = preg_split("/\s*:\s*/", $line, 2); # split by "=" and removing blank space either side of it.
if (($value[0] == "CHANNEL") or ($value[0] == "CLIENT")) {
$vars = preg_split("/\s*,\s*/", $value[1]);
foreach ($vars as $var) {
$chanvar = preg_split("/\s*=\s*/", $var);
if ($value[0] == "CHANNEL") {
if ($chanvar[0] == "CID") {
$channels[] = $chanvar[1];
$id = $chanvar[1];
}
if ($chanvar[0] == "PID") {
$subchans[$id][] = $chanvar[1];
}
// $key = "CID";
} elseif ($value[0] == "CLIENT") {
if ($chanvar[0] == "UID") {
$clients[] = $chanvar[1];
$id = $chanvar[1];
}
//$id = "UID";
}
$settings[$value[0]][$id][$chanvar[0]] = $chanvar[1];
$key="";
}
} else {
$settings[$value[0]] = $value[1]; # Create a new array with all the values.
}
}
}
$serverpic = $graphics[$enable_graphics][SERVER];
$clientpic = $graphics[$enable_graphics][CLIENT];
$channelpic = $graphics[$enable_graphics][CHANNEL];
$content .= "<b><center>".$serverpic.$settings[NAME]."</center></b><br>\n";
if ($scrolling_block == "1"){
$content .="<MARQUEE behavior= \"scroll\" direction= \"up\" height=\"$scroll_hieght.\" scrollamount= \"1\" scrolldelay= \"25\" onmouseover='this.stop()' onmouseout='this.start()'>";
}
foreach ($channels as $channel) {
$pid = $settings['CHANNEL'][$channel]['PID'];
$cid = $settings['CHANNEL'][$channel]['CID'];
if ($pid == "0"){
$chaname = $settings['CHANNEL'][$channel]['NAME'];
$content .= "<b>".$channelpic.$chaname."</b><br>\n";
if ($clients) {
foreach ($clients as $client) {
$current = $settings['CLIENT'][$client]['CID'];
if ($current == $channel) {
$name = $settings['CLIENT'][$client]['NAME'];
$comment = $settings['CLIENT'][$client]['COMM'];
$content .= "<font color=".$username_color."> ".$clientpic."$name</font>\n";
if ($show_comments == "1"){
$content .= "<font color=".$comment_color."> $comment<br></font>\n";
}
else {
$content .= "<br>\n";
}
}
}
foreach ($channels as $channel) {
$pid2 = $settings['CHANNEL'][$channel]['PID'];
$cid2 = $settings['CHANNEL'][$channel]['CID'];
if ($cid == "0"){}
elseif ($pid2 == $cid) {
$chaname = $settings['CHANNEL'][$channel]['NAME'];
$content .= "<b> ".$channelpic.$chaname."</b><br>\n";
if ($clients) {
foreach ($clients as $client) {
$current = $settings['CLIENT'][$client]['CID'];
if ($current == $channel) {
$name = $settings['CLIENT'][$client]['NAME'];
$comment = $settings['CLIENT'][$client]['COMM'];
$content .= "<font color=".$username_color."> ".$clientpic."$name</font>\n";
if ($show_comments == "1"){
$content .= "<font color=".$comment_color."> $comment<br></font>\n";
}
else {
$content .= "<br>\n";
}
}
}
}
}
}
}
}
}
if ($enable_link == "1") {
$content .= "<center><a href=\"ventrilo://".$ventip.":".$ventport."/servername=".$settings[NAME]."\">Connect</a></center><br>\n";
}
if ($use_as_page != "no"){
print "$content\n";
}
anyone know if ventrilospy.net is still working?
I can't seem to connect to it.
Seems to be down.
I am looking at the downloads section of the ventrilo website and I do not see a ventrilostatus.exe, all I see is the ventrilostatus.php zip file, am I looking at the wrong place?
The only one I have found that works correctly is from gamespy which unfortunately is paid. The one on the ventrilo site requires an executable file to be on your server; most webhosts are unwilling to allow that... :(
The ventrilo status file is in the server package download.
Quote from: IchBinâ„¢ on August 07, 2007, 04:01:30 PM
The ventrilo status file is in the server package download.
But it requires an exe file on the host server doesn't it?
As I stated in the setup post, yes. Some hosts allow it while others do not.
Is the snippet on the front page still making a lot of errors on the site, or is it more stable now? I would like to try to put this on my site, but am scared that there will be errors. Thanks so much!
It should work I'm running it on one of my sites.
Thanks!
I hate to be a pain. But I just took out 100 seats for Ventrilo at vent4.gameservers.com and I would love to be able to get this block to work..
I downloaded the ventrilo.zip file that IchBin has in his post (http://www.tinyportal.net/index.php?action=dlattach;topic=911.0;attach=8280)
Uploaded it to my site. Changed the parameters in the ventrilotest.php file, and added. the Include statement to a php block..
All I get is Fatal error: Call to undefined function inlcude() in
/home/mudshark/public_html/theoldmudshark.com/Sources/Load.php(1751) :
eval()'d code(200) : eval()'d code on line 1
Any help would be greatly appreciated
Can you post the code you used? You can try require_once() as well.
Thanks IchBin,
The require once()
Corrected the error above...
I see the block now which contains this error...
CVentriloStatus->Request() failed. PHP Unable to start external status process.
Also the word "Lobby"
and the Link Button "Join" which does bring up the Ventrilo External Protocol Request window.
When I click on Launch Application I do end up at Ventrilo, with a pop-up that says the weblink did not specify a servername..
From my vintrilotest.php page...
$stat = new CVentriloStatus;
$stat->m_cmdprog = "/home/ventrilo/ventrilo_status"; // Adjust accordingly.
$stat->m_cmdcode = "2"; // Detail mode.
$stat->m_cmdhost = "vent4.gameservers.com"; // Assume ventrilo server on same machine. If not, put the IP or hostname in.
$stat->m_cmdport = "46xx"; // Port to be statused.
$stat->m_cmdpass = ""; // Status password if necessary.
Unable to start the external status process means it can't find or execture the ventrilo_status file. You'll need to make sure your host allows this as well as the path to the file is correct etc.
My host has instructions posted for installing ventrilo, so I would have to assume they allow it?
Well if its not starting the status script you need to trouble shoot it with them.
Quote from: carver on August 17, 2007, 12:45:19 AM
My host has instructions posted for installing ventrilo, so I would have to assume they allow it?
Carver, who is your host?
Okay been working on this a few days now and still kinda confused. Ok we run a website through a location in california, our vent host is zebgames and if you look at there forum, you can see that they are allowing it I think http://www.zebgames.com/forum/viewtopic.php?t=74&highlight=server+status (http://www.zebgames.com/forum/viewtopic.php?t=74&highlight=server+status)
So my questions is, my website server allows executables, does that mean I upload to the website to point to the ventrilo server, or am I that lost lol. Is anyone else using zebgames that has it working??
Sorry i have been on the road all week.. I host with Bluehost.com
Ok..I followed Your directions precisely and I get this--Parse error: parse error, unexpected ')' in /home/content/c/a/s/cas91572/html/simplemachinesforum/Sources/Load.php(1735) : eval()'d code(36) : eval()'d code on line 1
Any Ideas how to fix?
Well I just followed the instructions again, and didn't have a problem. Perhaps you have added something extra in your code. I can't tell without being able to look at it.
Nope I used the exact code you posted and got that error message
Ok Here is the coded i'm using,
In the Block: inlcude ('ventrilo/ventrilotest.php');require once()
In the ventrilotest file:
$stat = new CVentriloStatus;
$stat->m_cmdprog = "/html/www.unforgivenguidet.org/ventrilo/ventrilo_status.php"; // Adjust accordingly.
$stat->m_cmdcode = "2"; // Detail mode.
$stat->m_cmdhost = "74.53.253.26"; // Assume ventrilo server on same machine. If not, put the IP or hostname in.
$stat->m_cmdport = "4005"; // Port to be statused.
$stat->m_cmdpass = "wow069"; // Status password if necessary.
$rc = $stat->Request();
if ( $rc )
{
echo "CVentriloStatus->Request() failed. $stat->m_error
\n";
}
// Create a web link for this server. Please note that the status password
// is not the same thing as a servers global logon password. This is why the
// example doesn't add one.
//echo "Building a ventrilo:// web link from the supplied information. \n";
//echo "Please note that if the retrieved server name has spaces in it then anything following them \n";
//echo "will not show up in the client. This is a client side issue. You might use _'s in server names ";
//echo "instead until the problem is fixed.
\n";
//$weblink = "ventrilo://$stat->m_cmdhost:$stat->m_cmdport/servername=$stat->m_name";
//echo "<center><a href=\"$weblink\">JOIN</a></center>
\n";
// Server basic info.
//echo "Basic information about the server using VentriloInfoEX1.
\n";
//echo "<center><table width=\"50%\" border=\"0\">\n";
//VentriloInfoEX1( $stat );
//echo "</table></center>\n";
// Server channels/users info.
//echo "
Channel and user info using VentriloDisplayEX2.
\n";
//echo "
\n";
//echo "<center><table width=\"95%\" border=\"0\">\n";
//$name = "";
//VentriloDisplayEX2( $stat, $name, 0, 0 );
//echo "</table></center>\n";
//echo "
Channel and user info using VentriloDisplayEX1.
\n";
/* Use this if you prefer the first channel name to look more
like a ventrilo client display where the first entry is the
server name followed by it's comment.
$name = $stat->m_name;
if ( strlen( $stat->m_comment ) )
$name .= " ($stat->m_comment)";
*/
$name = "Lobby";
// echo "
\n";
echo "<table width=\"95%\" border=\"0\">\n";
VentriloDisplayEX1( $stat, $name, 0, 0 );
//$weblink = "ventrilo://$stat->m_cmdhost:$stat->m_cmdport/servername=$stat->m_name";
//echo "<center><a href=\"$weblink\">JOIN</a></center>
\n";
echo " <tr><td>\n";
$weblink = "ventrilo://$stat->m_cmdhost:$stat->m_cmdport/servername=$stat->m_name";
echo "<center><a href=\"$weblink\" style=\"padding: 2px; border-style: solid; border-color: black; border-width: thin;\">JOIN</a></style></center>
\n";
echo " </td></tr>\n";
echo "</table>\n";
?>
</body>
</html>
inlcude ('ventrilo/ventrilotest.php');require once()
This is wrong. It needs to be like this:
inlcude ('ventrilo/ventrilotest.php');
Ok when I use include ('ventrilo/ventrilotest.php'); I get this:
Fatal error: Call to undefined function: inlcude() in /home/content/c/a/s/cas91572/html/simplemachinesforum/Sources/Load.php(1735) : eval()'d code(36) : eval()'d code on line 1
Well, I don't know whats wrong then. Sorry.
If you copied and pasted...
Quoteinlcude
.... then you have a little typo. Maybe you typed it by hand though?
Ahh.... good eye Drifter. :)
Also, just a little tip for you php noobies who are doing your best to admin your own sites.
Make sure also, since you are using the include command to specify in the ventrilotest.php the FULL path of the ventrilo_status or ventrilo_status.exe files. even if they are in the same directory as the ventrilotest.php not having a full path can sometimes cause TP to not load it as an include using the parent "./" sign will sometimes use a different directory in certain scenarios.
I can not seem to get this to work at all, it brakes my entire website.
I do as the instructions says about creating a php block, the ventrilotest.php is setup correctly and I get a fatal error.
I am not using typefrag as a ventrilo server host however, which is probably one of the causes for this issue. I am using a separate webhosting service as well.
Anyone know a fix so I can actually be able to list my ventrilo server on my website.
This is the error:
"Fatal error: Call to undefined function: inlcude() in /home/xxxx/xxxxx/xxxxxx/Sources/Load.php(1737) : eval()'d code(35) : eval()'d code on line 1"
Include is spelled wrong. :)
Heya IchBin (ein Berliner?),
I managed to get the script working after chmod'ing the ventrilo directory to 755 and correcting the spelling but like you said, the lay-out need improvement. I checked ventrilospy.net and got an almost tailor-made script in java. It runs and looks like a charm.
<script language="javascript" type="text/javascript">
var vspy_width=160;
var vspy_height=200;
var vspy_style="160x200_html";
var vspy_server="IP:port";
</script>
<script language="javascript" type="text/javascript" src="http://ventrilo-monitor.com/js/show_ventrilo.js"></script>
This little script fits like a glove into a portalblock.
Can't modify cause of a persistant white page but all will understand the
follows after
<script language="javascript" type="text/javascript" src="http://ventrilo-monitor.com/js/show_ventrilo.js"></script>
Just though I'd mention this since I beat my head against a brick wall trying to get this to work.
I was getting the "CVentriloStatus->Request() failed. PHP Unable to start external status process" error and couldn't work out why, the binary was there, in the right place, with the correct permissions. Then I tried running it from the shell prompt and got "Command not found". Wierd right? Well after some rooting around it turns out that this is what you get when you try to run a 32bit binary (as ventrilo_status is) on a 64bit system (which my hoster neglected to point out).
So, if you keep getting this error and you can't tell why, try doing uname -a to see if it's a 64 bit system and if it is you'll need to install the ia32-libs (or beg hoster) to make it run.
I'd suggest this is added to the original instructions post near the start of the thread.
Thanks, added to my post on the frontpage that has the instructions.
Got this working on my site using http://ventrilo-monitor.com/code/index.html
Very easy to configure and use. Just tweak to match your theme and put into a script box.
<script language="javascript" type="text/javascript">
var vspy_width=156;
var vspy_height=250;
var vspy_style="custom_html";
var vspy_server="your_vent_info.com:port";
var vspy_background="101010";
var vspy_fontcolor="FFFFFF";
var vspy_linkcolor="1e90ff";
var vspy_refresh=60;
</script>
<script language="javascript" type="text/javascript" src="http://ventrilo-monitor.com/js/show_ventrilo.js"></script>