Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Adapting Ventrilo Status

 
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial)
View previous topic :: View next topic  
Author Message
IG88
Smarty n00b


Joined: 25 Mar 2009
Posts: 3

PostPosted: Wed Mar 25, 2009 8:18 pm    Post subject: Adapting Ventrilo Status Reply with quote

I am looking for some one to adapt a Ventrilo Status to Smarty.

It is very straight forward. There is already a php file with everything needed. All that needs to be done is to separate the markup and apply the Smarty launguage.
Back to top
View user's profile Send private message
IG88
Smarty n00b


Joined: 25 Mar 2009
Posts: 3

PostPosted: Wed Mar 25, 2009 8:24 pm    Post subject: Reply with quote

Here is the php code

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


include "ventrilo/ventrilostatus.php";
include "ventrilo/ventrilodisplay.php";

$stat = new CVentriloStatus;
$stat->m_cmdprog = "/home/******/public_html/ventrilo-view/ventrilo_status"; // Adjust accordingly.
$stat->m_cmdcode = "2";
$stat->m_cmdhost = "**.**.**.**"; // server IP or host name
$stat->m_cmdport = "****"; // Port to be statused.
$stat->m_cmdpass = ""; // Status password if necessary.

$rc = $stat->Request();
if ( $rc )
{
echo "CVentriloStatus->Request() failed. <strong>$stat->m_error</strong><br><br>\n";
}

echo "<br><center><b>Connected users $stat->m_clientcount/$stat->m_maxclients</b></center>";

$name = $stat->m_name;
if ( strlen( $stat->m_comment ) )
$name .= " ($stat->m_comment)";

$name = "Name";
if ( strlen( $stat->m_comment ) )
$name .= " ($stat->m_comment)";

echo "<br>\n";
echo "<center><table width=\"50%\" border=\"0\">\n";
VentriloDisplayEX1( $stat, $name, 0, 0 );
echo "</table></center>\n";
echo "</center>";

--------------------------------------------------------------------------
Back to top
View user's profile Send private message
IG88
Smarty n00b


Joined: 25 Mar 2009
Posts: 3

PostPosted: Sat Apr 11, 2009 2:02 am    Post subject: Reply with quote

wow.

150 views and no one is interested? I find that really hard to believe.

Well maybe some one would like to do it for free? Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP