edit the userdetails.lang.php
add
PHP Code:
'torrentstats10' => 'streaming uploader',
edit the userdetail.php
before
PHP Code:
<a href="#showcontents" onclick="TSAjaxRequest(\'showuploaded\');">';
echo $lang->userdetails['torrentstats1'];
echo '</a>
<br />
add
PHP Code:
<a href="#showcontents" onclick="TSAjaxRequest(\'showstream\');">';
echo $lang->userdetails['torrentstats10'];
echo '</a>
<br />
edit the ts_ajax2.php
before
PHP Code:
if ((isset ($_POST['what']) AND $_POST['what'] == 'showuploaded'))
{
$ultorrentscount = tsrowcount ('id', 'torrents', 'owner=' . $userid);
if (($ultorrentscount AND 0 < $ultorrentscount))
{
$r = mysql_query ('SELECT t.id, t.name, t.seeders, t.leechers, t.times_completed, t.category, t.added, t.anonymous, t.owner, c.name as categoryname, c.image FROM torrents t INNER JOIN categories c ON (t.category=c.id) WHERE t.owner=' . sqlesc ($userid) . ' ORDER BY t.added DESC');
$torrents = '
<table class=\'main\' border=\'1\' cellspacing=\'0\' cellpadding=\'0\' width=\'100%\'>
' . '<tr><td class=\'colhead\' align=\'center\' width=\'36\'>' . $lang->global['type'] . '</td><td class=\'colhead\' align=\'left\' style=\'padding: 0px 0px 0px 2px;\'>' . $lang->global['name'] . '</td><td class=\'colhead\' align=\'center\'>' . $lang->global['snatched'] . '</td><td class=\'colhead\' align=\'center\'><img src=\'' . $BASEURL . '/' . $pic_base_url . 'seeders.gif\'></td><td class=\'colhead\' align=\'center\'><img src=\'' . $BASEURL . '/' . $pic_base_url . 'leechers.gif\'></td></tr>
';
while ($a = mysql_fetch_array ($r))
{
$orj_name_ = $a['name'];
$t_added = my_datee ($dateformat, $a['added']) . ' ' . my_datee ($timeformat, $a['added']);
$a['name'] = htmlspecialchars_uni ($a['name']);
$cat = '<img src="' . $BASEURL . '/' . $pic_base_url . $table_cat . '/' . $a['image'] . ('' . '" alt="' . $a['categoryname'] . '" title="' . $a['categoryname'] . '">');
$torrents .= '' . '<tr><td align=\'center\' width=\'36\' heigth=\'48\'>' . $cat . '</td><td align=\'left\' style=\'padding: 0px 0px 0px 2px;\'><a href=\'' . $BASEURL . '/details.php?id=' . $a['id'] . '\' alt=\'' . $a['name'] . '\' title=\'' . $a['name'] . '\'><b>' . cutename ($orj_name_, 80) . ('' . '</b></a><br />' . $t_added . '</td>') . ('' . '<td align=\'center\'><a href=\'' . $BASEURL . '/viewsnatches.php?id=') . $a['id'] . '\'><b>' . ts_nf ($a['times_completed']) . ' x </b>' . $lang->global['times'] . '</a></td><td align=\'center\'>' . ts_nf ($a['seeders']) . '</td><td align=\'center\'>' . ts_nf ($a['leechers']) . '</td></tr>
';
}
$torrents .= '</table>';
}
else
{
$torrents = $lang->global['nothingfound'];
}
show_msg ($torrents);
exit ();
return 1;
}
add
PHP Code:
if ((isset ($_POST['what']) AND $_POST['what'] == 'showstream'))
{
$uldivxcount = tsrowcount ('id', 'divx', 'owner=' . $userid);
if (($uldivxcount AND 0 < $uldivxcount))
{
$r = mysql_query ('SELECT t.id, t.title, t.category, t.added, t.owner, c.name as categoryname, c.image FROM divx t INNER JOIN categories c ON (t.category=c.id) WHERE t.owner=' . sqlesc ($userid) . ' ORDER BY t.added DESC');
$divx = '
<table class=\'main\' border=\'1\' cellspacing=\'0\' cellpadding=\'0\' width=\'100%\'>
' . '<tr><td class=\'colhead\' align=\'center\' width=\'36\'>' . $lang->global['type'] . '</td><td class=\'colhead\' align=\'left\' style=\'padding: 0px 0px 0px 2px;\'>' . $lang->global['name'] . '</td></tr>
';
while ($a = mysql_fetch_array ($r))
{
$orj_name_ = $a['title'];
$t_added = my_datee ($dateformat, $a['added']) . ' ' . my_datee ($timeformat, $a['added']);
$a['title'] = htmlspecialchars_uni ($a['title']);
$cat = '<img src="' . $BASEURL . '/' . $pic_base_url . $table_cat . '/' . $a['image'] . ('' . '" alt="' . $a['categoryname'] . '" title="' . $a['categoryname'] . '">');
$divx .= '' . '<tr><td align=\'center\' width=\'36\' heigth=\'48\'>' . $cat . '</td><td align=\'left\' style=\'padding: 0px 0px 0px 2px;\'><a href=\'' . $BASEURL . '/detailvod.php?id=' . $a['id'] . '\' alt=\'' . $a['name'] . '\' title=\'' . $a['name'] . '\'><b>' . cutename ($orj_name_, 80) . ('' . '</b></a><br />' . $t_added . '</td>') . ('' . '') . '<b></tr>
';
}
$divx .= '</table>';
}
else
{
$divx = $lang->global['nothingfound'];
}
show_msg ($divx);
exit ();
return 1;
}
Quote:
Originally Posted by xblade
ok need it in eng please asp and a read a read me doc as well as to where to put stuff so on
|
Quote:
Originally Posted by xblade
ok need it in eng please asp and a read a read me doc as well as to where to put stuff so on
|
create streaming.lang.php
PHP Code:
<?php
/*
+--------------------------------------------------------------------------
| TS Special Edition v.5.7
| ========================================
| by xam
| (c) 2005 - 2008 Template Shares Services
| http://templateshares.net
| ========================================
| Web: http://templateshares.net
| Time: April 7, 2009, 2:44 pm
| Signature Key: TSSE451412009
| Email: contact@templateshares.net
| TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
/*
TS Special Edition English Language File
Translation by xam Version: 0.1
*/
if(!defined('IN_TRACKER'))
die('Hacking attempt!');
// streaming.php
$language['streaming'] = array
(
'upload' =>'upload',
'streaming' =>'streaming',
'descr' =>'details pour le streaming',
'added' =>'ajouter',
'owner' =>'uploader'
);
?>
edit the detailvod.php
after
PHP Code:
stdhead("Streaming ");
add
PHP Code:
$lang->load ('streaming');
search
PHP Code:
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">uploader</td>
remplace by
PHP Code:
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'.$lang->streaming['owner'].'</td>