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: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 542
  • Total: 542

[Block] ventrilo block

Started by Moocat, October 04, 2005, 06:34:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cas91572

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?

IchBin

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.

cas91572

Nope I used the exact code you posted and got that error message

cas91572

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>


IchBin

inlcude ('ventrilo/ventrilotest.php');require once()

This is wrong. It needs to be like this:
inlcude ('ventrilo/ventrilotest.php');

cas91572

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

IchBin

Well, I don't know whats wrong then. Sorry.

Dazed

If you copied and pasted...
Quoteinlcude
.... then you have a little typo. Maybe you typed it by hand though?

IchBin

Ahh.... good eye Drifter. :)

Corrupter

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.


This website is proudly hosted on Crocweb Cloud Website Hosting.