Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
overflow
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2021-10-27 14:39:28
Hello, can you tell me how and where to add the overflow code in the code below to reduce the height of the members who said thanks for the torrent ??


overflow code to add in the code below,  >>>>    <div style='height:80px;line-height:2em;overflow:auto;padding:5px;'>


   
//START THANKS\\\\
 
$thanksl = explode(",", $row['thanks']);
if ($CURUSER['username'] == $row['username']) {
$leftthanks = true;
$leftthanks2 = true;
} else {
foreach ($thanksl as $u) {
$thanks .= ($i > 0) ? ", $u" : $u;
if ($u == $CURUSER['username']) {
$leftthanks2 = true;
$leftthanks = true;
}
$i++;
}
}


if ( get_user_class() >= 1 )

if (!$leftthanks2) {
$button='<br/>

<input src="images/thanks.gif" height="30" width="290"style="border:0px;" type="image" id="refresh">';
} else {
$button='';
}


if ( get_user_class() >= 1 )

echo '<table align="left"><b>Merci par : </b></table>

<div id="thankput"></div>'.$button.'
<script type="text/javascript" src="'.$site_config["SITEURL"].'/js/thanks.js"></script>


<script type="text/javascript">
var $s = jQuery.noConflict();

$s("#thankput").load("thanks.php?id='.$id.'");
$s(function() {
$s("#refresh").click(function() {
$s("#thankput").empty().html(\'<center><img src="'.$site_config["SITEURL"].'/images/ajax-loader.gif"></center>\');

$s("#thankput").load("thanks.php?id='.$id.'&to=give&torrent='.$id.'")
return false;
})
})
</script>
<br/>';

////END THANKS\\\\\

Last edited by niki on 2021-10-27 14:41:27
2021-10-29 21:18:46
have you tried just adding it below the other DIV?
<div style='height:80px;line-height:2em;overflow:auto;padding:5px;'></div>

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2021-10-30 14:09:16
the purpose of this modification is to reduce the height when there are many members who thank because it takes a lot of space on the page of the detail of the torrent



thank you for your help i tried with the code below and it does not work we are redirected to a white page

    //START THANKS\\\\
 
$thanksl = explode(",", $row['thanks']);
if ($CURUSER['username'] == $row['username']) {
$leftthanks = true;
$leftthanks2 = true;
} else {
foreach ($thanksl as $u) {
$thanks .= ($i > 0) ? ", $u" : $u;
if ($u == $CURUSER['username']) {
$leftthanks2 = true;
$leftthanks = true;
}
$i++;
}
}



if ( get_user_class() >= 1 )

if (!$leftthanks2) {
$button='<br/>

<input src="images/thanks.gif" height="30" width="290"style="border:0px;" type="image" id="refresh">';
} else {
$button='';
}


if ( get_user_class() >= 1 )

echo '<table align="left"><b>Thanks by : </b></table>

<div style='height:80px;line-height:2em;overflow:auto;padding:5px;'></div>

<div id="thankput"></div>'.$button.'
<script type="text/javascript" src="'.$site_config["SITEURL"].'/js/thanks.js"></script>


<script type="text/javascript">
var $s = jQuery.noConflict();

$s("#thankput").load("thanks.php?id='.$id.'");
$s(function() {
$s("#refresh").click(function() {
$s("#thankput").empty().html(\'<center><img src="'.$site_config["SITEURL"].'/images/ajax-loader.gif"></center>\');

$s("#thankput").load("thanks.php?id='.$id.'&to=give&torrent='.$id.'")
return false;
})
})
</script>


<br/>';

////END THANKS\\\\\

Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728