"m-jay, post: 67624, member: 20288":
i had this issue with bootstrap, try this in theme.css replace .ttable_headinner
.ttable_headinner {
border-collapse: collapse;
border: 1px solid #777;
table-layout: fixed;
width: 100%;
}
You may need to refresh cache
print ("<table align='center' class='ttable_headinner' width='100%'><thead><tr width='80%' class='ttable_head'>");
foreach ($cols as $col){
// Ligne D'Entête Avec Titres
switch ($col){
echo '<table align="center" class="ttable_headinner" width="100%"><thead><tr class="ttable_head">';
foreach ($cols as $col) {
switch ($col) {
<table align="center" class="border_table" width="97%" border="0"><thead><tr>';
// Mod Similar Torrents
print("<center>(¯`·._.·Torrent(s) Similaire(s)·._.·´¯)</center><br/>");
$char1 = 50; //cut length
$shortname = CutName(htmlspecialchars($a["name"]), $char1);
$searchname = substr($row['name'], 0, 8);
$query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
$query2 = str_replace(".", " ", sqlesc("%" . $searchname . "%"));
#$r = SQL_Query_exec("SELECT id, name, size, added, seeders, leechers, category FROM torrents WHERE name LIKE {$query1} AND seeders > '0' AND id <> '$id' OR name LIKE {$query2} AND seeders > '0' AND id <> '$id' ORDER BY seeders DESC LIMIT 10") or die(mysqli_error());
$r = SQL_Query_exec("SELECT torrents.id, torrents.name, torrents.size, torrents.added, torrents.seeders, torrents.leechers, torrents.category, categories.image
FROM torrents
LEFT JOIN categories
ON (categories.id = torrents.category)
WHERE (torrents.name LIKE {$query1}
AND torrents.seeders > '0'
AND torrents.id <> '$id')
OR
(name LIKE {$query2}
AND torrents.seeders > '0'
AND torrents.id <> '$id')
ORDER BY torrents.seeders
DESC LIMIT 10");
if (mysqli_num_rows($r) > 0) {
echo "<table width=100% border=0 cellspacing=0 cellpadding=0 class=table_table>\n" . "
<tr>
<td class='table_head' width='20' align='center'> " .T_("TYPE"). "</td>
<td class='table_head' align='center'> " .T_("NAME"). "</td>
<td class='table_head' align='center'> " .T_("TOTAL_SIZE"). "</td>
<td class='table_head' align='center'> " .T_("UPLOAD_COMPLETE"). "</td>
<td class='table_head' align='center'> " .T_("SEEDERS"). "</td>
<td class='table_head' align='center'> " .T_("LEECHERS"). "</td></tr>\n";
while ($a = mysqli_fetch_assoc($r)) {
#$r2 = SQL_Query_exec("SELECT name, image FROM categories WHERE id=$a[category]");
#$a2 = mysqli_fetch_assoc($r2);
$cat = "<img src=\"images/categories/$a2[image]\" alt=\"$a2[name]\" title=\"$row[cat_parent] : $row[cat_name]\" width=\"110\" height=\"40\">";
$name = $a["name"];
echo"<tr><td class='table_col1' style='padding: 1px' align='center'>$cat</td>
<td class='table_col2'> <a title=".$a["name"]." href=torrents-details.php?id=" . $a["id"] . "&hit=1><b>" . CutName(htmlspecialchars($a["name"]), $char1) . "</b><br/></a></td>
<td class='table_col1' style='padding: 1px' align='center'>" . mksize($a[size]) . "</td>
<td class='table_col2' style='padding: 1px' align='center'>$a[added]</td>
<td class='table_col1' style='padding: 1px' align='center'><span style='color:Chartreuse'>$a[seeders]</span></td>
<td class='table_col2' style='padding: 1px' align=center><span style='color:red'>$a[leechers]</span></td></tr>\n";
}
echo "</table>";
} else {
echo "<b>". T_("SIMILAR_TORRENT"). " : </b> <font color='#FF4400'><i>". T_("SIMILAR_TORRENT_NOT"). "</i></font>";
}
// End Mod Similar Torrents
shadows:
Remove this
$r2 = SQL_Query_exec("SELECT name, image FROM categories WHERE id=$a[category]");
$a2 = mysqli_fetch_assoc($r2);
Never include SQL query inside while loop. It will loop X time the query and make database requery itself X times.
Use JOINS instead like this:
$r = SQL_Query_exec("SELECT torrents.id, torrents.name, torrents.size, torrents.added, torrents.seeders, torrents.leechers, torrents.category, categories.image
FROM torrents
LEFT JOIN categories
ON (categories.id = torrents.category)
WHERE (name LIKE {$query1}
AND seeders > '0'
AND id <> '$id')
OR
(name LIKE {$query2}
AND seeders > '0'
AND id <> '$id')
ORDER BY seeders
DESC LIMIT 10");
<?php if ($_SERVER["SCRIPT_NAME"] == "/site_tour.php"){ ?>
<style type="text/css">.accordian{width:98%;margin:50px auto;text-align:center}.accordian li{list-style-type:none;padding:0 5px}.dimension{height:auto}.even, .odd{font-weight:900;height:27px;padding-top:3px;padding-left:10px}
.even{border:1px solid #d8d8d8;background-color:#ececec}.odd{border:1px solid black;background:#333;color:#fff}.fluid{width:90%;text-align:center}</style>
</script><script type="text/javascript" src="'.$site_config["SITEURL"].'/commons_js/jMenu.js"></script>
<?php }?>
<table border="0" cellpadding="3" align="center">
<tr><td align="center"><b><?php echo T_("USERNAME"); ?>:</b> <input type="text" size="40" name="username" /></td></tr>
<tr><td align="center"><b><?php echo T_("PASSWORD"); ?>:</b> <input type="password" size="40" name="password" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo T_("LOGIN"); ?>" /><br /><br /><i><?php echo T_("COOKIES");?></i></td></tr>
</table>
<table border="0" cellpadding="3" align="center">
<tr><td align="center"><b><?php echo T_("USERNAME"); ?>:</b> <input type="text" size="30" name="username" /></td></tr>
<tr><td align="center"><b><?php echo T_("PASSWORD"); ?>:</b> <input type="password" size="30" name="password" onKeyUp="verif(this.value)" /></td></tr>
<tr><td align="center"><b><?php echo T_("CONFIRM"); ?>:</b> <input type="password" size="30" name="passagain" onKeyUp="verif(this.value)" /></td></tr>
<tr align="center"><td align="center" colspan="2" class="img" onKeyUp="verif(this.value)" rows="10" id="verif"><div onKeyUp="verif(this.value)" /></div></td></tr>
<tr><td align="center"><input type="submit" value="<?php echo T_("LOGIN"); ?>" /><br /><br /><i><?php echo T_("COOKIES");?></i></td></tr>
</table>
/* image of the validation password and account-login security */
.img {
display: inline-block !IMPORTANT;
height: 23px !IMPORTANT;
width: 229px !IMPORTANT;
border: 2px groove DarkGray; /*border size and ca color */
background: rgba(255,255,255,0.05); /* background colors the border */
border-radius: 8px; /* size round corners */
-moz-border-radius: 8px; /* size round corners with firefox */
-webkit-border-radius: 8px; /* size round corners with chrome */
margin: 4px; /* sets the size of the margins on the four sides of the element */
}
<!-- js verif password -->
<script type="text/javascript" src="<?php echo $site_config["SITEURL"]; ?>/js/verif.js"></script>
h1 {
margin-top: 20px;
margin-bottom: 40px;
color: #345;
text-shadow: 1px 1px 1px #fff;
}
h2 {
color: #678;
text-shadow: 1px 1px 1px #fff;
font-size:1.1em
}
#volet {
width: 250px;
padding: 10px;
background: #6B9A49;
color: #fff;
font-family: Papyrus;
font-size: 14px;
}
#volet a.ouvrir,
#volet a.fermer {
padding: 10px 15px;
background: #555;
color: #fff;
text-decoration: none;
font-family: Papyrus;
font-size: 14px;
}
#volet {
position: absolute;
left: -270px; /* test fixed + scroll, on retire la position top */
-webkit-transition: all .5s ease-in;
-moz-transition: all .5s ease-in;
transition: all .5s ease-in;
}
#volet a.ouvrir,
#volet a.fermer {
position: absolute;
right: -88px;
top: 150px;
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-o-transform: rotate(270deg);
-ms-transform: rotate(270deg);
-moz-radius: 0 0 8px 8px;
border-radius: 0 0 8px 8px;
}
#volet a.fermer {
display: none;
}
#volet:target {
left: 10px;
}
/* code pour la fermeture */
#volet:target a.fermer {
display: block;
}
#volet:target a.ouvrir {
display: none;
}
#volet_clos:target #volet {
left: -270px;
}
/* test fixed + scroll */
#volet_clos {
position: fixed;
top: 55px; left: 0;
}
<?php
echo "
<div id='volet_clos'>
<div id='volet'>
<p>Fashion under construction ... </p>
<p>Will be used very soon! </p>
<a href='#volet' class='ouvrir' aria-hidden='true'>Open !</a>
<a href='#volet_clos' class='fermer' aria-hidden='true'>Close !</a>
</div>
</div>";
?>
case 'category':
echo "<th>Cat.</th>";
break;
case 'cover':
echo "<th>Cover</th>";
break;
case 'category':
print("<td class='ttable_col1' align='left' valign='middle'>");
if (!empty($row["cat_name"])) {
print("<a href=\"torrents.php?parent_cat=" . $row["cat_parent"] . "\">");
if (!empty($row["cat_pic"]) && $row["cat_pic"] != "")
print("<center><img border=\"0\" src=\"" . $site_config['SITEURL'] . "/images/categories/".$row["cat_parent"].".png\" alt=\"".$row["cat_parent"]."\" /></center>");
else
print(" ".$row["cat_parent"]);
print("</a>");
} else
print("-");
print("</td>\n");
break;
case 'cover':
if (!empty($row['image1']))
{
$imgCover = '/uploads/images/' . htmlspecialchars($row['image1']);
}
else
{
$imgCover = 'images/nocover.jpg';
}
echo '<td class=ttable_col'.$x.' align="center"><img width="30" height="35" src="'.$imgCover.'"></td>';
break;
$site_config["torrenttable_columns"]category,cover,
<!-- Noel By @Spiritblue -->
<script type="text/javascript" src="http://www.jimdo.com/l/usersnippets/snowfall.min.js"></script>
<script type="text/javascript" src="http://www.jimdo.com/l/usersnippets/snowcursor.min.js"></script>
<div id="guirlande1"></div>
<div id="guirlande2"></div>
<div id="guirlande3"></div>
/* Noel By @Spiritblue */
#guirlande1 {
z-index:9998;
position:absolute;
background:url(images/guirlande1.png) 300% top repeat-x;
height:130px;
top:18px;
left:0;
width:100%;
}
#guirlande2 {
z-index:9997;
position:absolute;
background:url(images/guirlande2.png) 70% top repeat-x;
height:130px;
top:28px;
left:0;
width:100%;
}
#guirlande3 {
z-index:9996;
position:absolute;
background:url(images/guirlande3.png) 10% top repeat-x;
top:-10px;
height:130px;
left:0;
width:100%;
}
[/color]"steven07, post: 67592, member: 1032":
in my style, I have adjust the widht to 100% on everything so everything is centered
dans mon style je dois ajuster la largeur à 100% pour que tout soit centré ,style Standard
////////////// Similar Torrents mod /////////////////////
begin_frame(T_("SIMILAR_TORRENTS"));
$char1 = 50; //cut length
$shortname = CutName(htmlspecialchars($a["name"]), $char1);
$searchname = substr($row['name'], 0, 8);
$query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
$query2 = str_replace(".", " ", sqlesc("%" . $searchname . "%"));
$r = SQL_Query_exec("SELECT torrents.id, torrents.name, torrents.size, torrents.added, torrents.seeders, torrents.leechers, torrents.category, categories.image FROM torrents LEFT JOIN categories ON (categories.id = torrents.category) WHERE (torrents.name LIKE {$query1} AND seeders > '0' AND torrents.id <> '$id') OR (torrents.name LIKE {$query2} AND seeders > '0' AND torrents.id <> '$id') ORDER BY seeders DESC LIMIT 10") or die(mysqli_error());
if (mysqli_num_rows($r) > 0) {
echo "<table width=100% class=main border=1 cellspacing=0 cellpadding=0 class=table_table>\n" . "
<tr>
<td class='table_head' width='20'>Type</td>
<td class='table_head'>Name</td>
<td class='table_head' align='center'>Size</td>
<td class='table_head' align='center'>Added</td>
<td class='table_head' align='center'>S</td>
<td class='table_head' align='center'>L</td></tr>\n";
while ($a = mysqli_fetch_assoc($r)) {
// $r2 = SQL_Query_exec("SELECT name, image FROM categories WHERE id=$a[category]");
// $a2 = mysql_fetch_assoc($r2);
$cat = "<img class=glossy src=\"images/categories/$a[image]\" alt=\"$a[name]\" title=\"$row[cat_parent] : $row[cat_name]\"\>";
$name = $a["name"];
echo"<tr><td class='table_col1' style='padding: 1px' align='center'>$cat</td>
<td class='table_col1'><a title=".$a["name"]." href=torrents-details.php?id=" . $a["id"] . "&hit=1><b>" . CutName(htmlspecialchars($a["name"]), $char1) . "</b><br/></a></td>
<td class='table_col1' style='padding: 1px' align='center'>" . mksize($a[size]) . "</td>
<td class='table_col1' style='padding: 1px' align='center'>$a[added]</td>
<td class='table_col1' style='padding: 1px' align='center'><span style='color:Chartreuse'>$a[seeders]</span></td>
<td class='table_col1' style='padding: 1px' align=center><span style='color:red'>$a[leechers]</span></td></tr>\n";
}
echo "</table>";
}
else {
print(T_("NO_SIMILAR_TORRENT_FOUND"));
}
end_frame();
////////////// End Similar Torrents mod /////////////////////
// Similar Torrent
$LANG["SIMILAR_TORRENTS"] = "Torrent[s] Similar[s]";
$LANG["SIMILAR_TORRENT"] = "Similar Torrent ";
$LANG["SIMILAR_TORRENT_NOT"] = "No Similar Torrent !";
"steven07, post: 67589, member: 1032":
[ATTACH=full]5278[/ATTACH]
ok,i have music youpiiieeehhhh But, my player looks not like yours:unsure:
// Multi Media By @Spiritblue [30-Nov-2019]
// Shoutcast Simple PHP Stats
// dlnetworks.net
$dnas = "2"; // DNAS Version Shoutcast (1 or 2)
$ip = "HERE IP"; // IP or hostname (without http://)
$port = "HERE PORT"; // Port
$sid = "1"; // Stream ID (dans 2 only)
$timeout = "5"; // Number of seconds before connecton times out.
$fp = @fsockopen($ip,$port,$timeout);
if ($dnas == '1') {
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla/5.0\r\n\r\n");
} else {
fputs($fp, "GET /7.html?sid=$sid HTTP/1.0\r\nUser-Agent: Mozilla/5.0\r\n\r\n");
}
while (!feof($fp)) {
$info = fgets($fp);
}
$info = str_replace('<html><head><meta http-equiv="Pragma" content="no-cache"></head><body>', "", $info);
$info = str_replace('</body></html>', "", $info);
$stats = explode(',', $info,7);
$song = $stats[6];
$listeners = $stats[0];
$max = $stats[3];
$bitrate = $stats[5];
$peak = $stats[2];
stdhead(T_("Radio Shoutcast By @spiritblue"));
begin_frame(T_("Radio Shoutcast By @spiritblue"));
?>
<div class="block">
<table width="80%" cellspacing="0" cellpadding="2" border="0" align="center">
<td class="ttable_head" colspan='2'>Shoutcast Online</td>
<tr>
<div align="left">
<td id="mediaimg">
Choose Your Media!
<br/><br/>
<a href='https://crazyspirits.com/mediaplayer.asx' target='new'><img src='../images/player/mediaplayer.png' width='70' height='70' border="0" alt='Écouter Avec Windows Media Player ♪' title='Écouter Avec Windows Media Player ♪' /></a>
<a href='https://crazyspirits.com/mediaplayer.pls' target='new'><img src='../images/player/winamp.png' width='70' height='70' border="0" alt='Écouter Avec Winamp ♪' title='Écouter Avec Winamp ♪' /></a>
<br/>
<img src='../images/player/egaliseur.gif' width='170' height='50' border="0" alt='' title='' />
</td>
</div>
<div align="right">
<td id="infomedia">
Song: <div style="display: inline" id="loaddiv1"><?php print "$song";?></div><br/>
Listeners: <div style="display: inline"id="loaddiv2"><?php print "$listeners";?></div><br/>
The Auditors In 24Hrs: <?php print "$peak";?><br/>
Auditor's Capability: <?php print "$max";?><br/>
Frequency Issued: <?php print "$bitrate";?> Kbps<br/>
</td>
</div>
</tr>
</table>
</div>
<br/>
<!-- Actualisation JS By spiritblue -->
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
////Refresh Chanson
var auto_refresh = setInterval(
function()
{
$('#loaddiv1').fadeOut('slow').fadeIn("slow");
}, 10000);
/////Refresh Auditeur
var auto_refresh = setInterval(
function()
{
$('#loaddiv2').fadeOut('slow').fadeIn("slow");
}, 20000);
</script>
</head>
<!-- End Actualisation -->
<?php
end_frame();
// End
/* Multi Media Player By Spiritblue */
.block {
position: relative;
margin: 22px auto 0;
width: 70%;
height: 250px;
background-image: url("https://zupimages.net/up/19/48/9dv6.jpg"); /* background images */
background-repeat: no-repeat;
background-size: cover;
background-color: #000000a3; /* background refresh */
}
.block:before, .block:after {
content: '';
position: absolute;
left: -2px;
top: 2px;
background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00,#ffff00, #ff0000, #fb0094, #0000ff, #00ff00,#ffff00, #ff0000); /* border color */
background-size: 400%; /* size */
width: calc(100% + 4px);
height: calc(100% + 4px);
z-index: -1;
animation: steam 20s linear infinite; /* speed 20s */
}
@keyframes steam {
0% {
background-position: 0 0;
}
50% {
background-position: 400% 0; /* size */
}
100% {
background-position: 0 0;
}
}
.block:after {
filter: blur(50px);
}
#mediaimg{
display: block;
position: relative;
width: 70%;
font-family: Goudy Old Style;
color: #F0F8FF;
font-size: 25px;
text-align: center;
line-height: 16px;
padding-top: 55px;
padding-right: 20px;
line-height: -30%;
border:2px solide red;
}
#mediaimg:hover {
border: 0;
border: initial;
}
#infomedia {
width: 70%;
text-shadow: 5px 5px 10px black;
font-family: Goudy Old Style;
color: #F0F8FF;
font-size: 22px;
text-align: center;
line-height: -30%;
padding-top: 35px;
padding-left: 180px;
}
/* End */
"steven07, post: 67573, member: 1032":
then I'm just too stupid, because I can not get this damned radio running :ROFLMAO::ROFLMAO: