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;'>
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