Название форума
Название темы
Ответов
Последний от
» Зарег. на сайте
Всего: 1483
Новых за месяц: 2
Новых за неделю: 0 >Новых вчера: 0
Новых сегодня: 0
» Из них
Администраторов: 2
Модераторов: 1
Киноманы: 14
Проверенных: 2
Обычных юзеров: 1443
» Из них
Парней: 978
Девушек: 505

Безропотные / The Qu...
Категоря: Фильмы 2024 - 2025 г.




Просмотров: 2
Размер: 1,37 ГБ
От: bard
Скачан 2 раз(а)

Королевство / Kingdo...
Категоря: Фильмы 2024 - 2025 г.




Просмотров: 3
Размер: 2,05 ГБ
От: bard
Скачан 3 раз(а)

Падение президента /...
Категоря: Фильмы 2024 - 2025 г.




Просмотров: 3
Размер: 1,37 ГБ
От: bard
Скачан 3 раз(а)

Nat Geo Wild: Охотни...
Категоря: Документальные фильмы




Просмотров: 1
Размер: 1.21 GB
От: bard
Скачан 1 раз(а)

Иерархия / Hierarchy...
Категоря: Фильмы 2024 - 2025 г.




Просмотров: 0
Размер: 1,37 ГБ
От: bard
Скачан 0 раз(а)
  • Страница 1 из 1
  • 1
Модератор форума: Mytorrento  
Табличка мульти трекера как на DLE
MytorrentoДата: Пятница, 07-Июн-19, 12:40 | Сообщение # 1
Уверенный пользователь
Группа: Администраторы
Сообщений: 49
Награды: 4
Репутация: 41
Статус: Вне форума


Доброго времени суток уважаемые пользователи и гости! Зная что многие делают себе сайты с кино направлением в стиле DLE,
по думал а почему бы не совместить с псевдо мульти трекером как на сайтах DLE. Думаю кому то и понадобится.
ПРИСТУПИМ.
Скачиваем архив с картинками и в нужное место прописываем блок таблицы:
Код
<center>
<?if($FILE_URL$)?>
<div class="torrent" align="left">
  <div class="title">
  <div class="info_c"> </div>
  <div class="download"> </div>
  <div class="info_d"><div class="info_d1"><a href="$FILE_URL$">$ENTRY_TITLE$</a><?if($RFILE_SIZE$)?>($RFILE_SIZE$)<?else?>??<?endif?> </div></div>
  </div>

  <div class="cont">
  <div class="bord_a1"><b>Загрузил:</b> $USERNAME$ ($ADD_DATE$) | <b>Размер торрент-файла:</b> $FILE_SIZE$ | <?if($RFILE_SIZE$)?><b>Размер раздачи:</b> ($RFILE_SIZE$)<?else?>??<?endif?></span> </div>

  <div class="bord_a1"><b>Взяли:</b> $LOADS$ | <b>Смотрели:</b> $READS$ | <b>Последняя активность:</b> $DATE$</div>
<div class="bord_a1"><b>Мультитрекер:</b> <b>Раздают:</b> <span class="li_distribute_m"><?rnd(200)?></span> <b>Качают:</b> <span class="li_swing_m"><?rnd(200)?></span> <b>Скачали:</b> <span class="li_download_m">$LOADS$</span></div>
  <div class="bord_a1"><span class="download_torrent_subtitle"><b>Содержание файла:</b> <img src="http://ipic.su/img/img7/fs/avi.1559758418.png"> $ENTRY_TITLE$ <?substr($FILE_DIRECT_URL$, strrpos($FILE_DIRECT_URL$,'/') +1)?></span></div>
   
  <div class="li_list_a3">

  <div class="li_list_a1" id="tr_f_{id}" style="display: none;">$ENTRY_TITLE$</div>
  </div>
  </div>
</div>
<br clear="left">
  <?endif?></center>


Значения (rnd)в коде ставим свои в зависимости от нужного количества.
Далее в стилях прописываем внешний вид:
Код
.torrent {
  margin-top: 5px;
  padding-left: 10px;
  padding-right: 10px;
  }
.torrent .title {
  height:50px;
  clear:left;
  }

.torrent .title a {
  color:#636363;
  text-decoration:none;
  }
.torrent .title a:hover{
  text-decoration:underline;
  }

.torrent .download, torrent .download a {
  width:174px;
  height:50px;
  background:#6bba1d url('/img/tor_down_03.jpg') no-repeat top left;
  text-decoration:none;
  float:left;
  }
.torrent .info_d {
  height:50px;
  background:url('/img/tor_down_04.jpg') repeat-x;
  color:#636363;
  font-weight:bold;
  }

.torrent .info_d1 {
  margin-left:180px;
  font-size:12px;
  padding:17px 10px 0px 0px;
  }

.torrent .info_d1 span {
  color:#000;
  border-bottom: dashed 1px #000;
  }
.torrent .info_c {
  background:#6bba1d url('/img/tor_down_06.jpg') no-repeat;
  height:50px;
  width:5px;
  float:right;
  }
.torrent .cont {
  background:url('') no-repeat;
  margin-left:0px;
  padding:5px 10px;
  }
.torrent .cont a {
  color:#666666;
  text-decoration:none;
  }
.torrent .cont a:hover {
  color:#222222;
  text-decoration:underline;
  }
.torrent .cont .bord_a1 {
  border-bottom:1px dashed #000;
  padding:5px;
  }
.torrent .li_download {
  background:#9f9c9c url('/img/tor_down_11.jpg') repeat-x top left;
  padding:2px 5px;
  margin-right:5px;
  float:left;
  color:#FFFFFF;
  font-weight:bold;
  margin-top:-2px;
  }
.torrent .li_download_a1 {
  float:left;
  }
.torrent .li_download_a2 {
  margin-left:100px;
  }
.torrent .li_distribute {
  background:#028e02 url('/img/tor_down_14.jpg') repeat-x top left;
  padding:2px 5px;
  margin-right:5px;
  float:left;
  color:#FFFFFF;
  font-weight:bold;
  margin-top:-2px;
  }
.torrent .li_distribute_a1 {
  float:left;
  }
.torrent .li_distribute_a2 {
  margin-left:100px;
  }
.torrent .li_swing {
  background:#9d2e22 url('/img/tor_down_16.jpg') repeat-x top left;
  padding:2px 5px;
  margin-right:5px;
  float:left;
  color:#FFFFFF;
  font-weight:bold;
  margin-top:-2px;
  }
.torrent .li_swing_a1 {
  float:left;
  }
.torrent .li_swing_a2 {
  margin-left:100px;
  }
.torrent .li_list_a3 {
  padding:5px;
  }
.torrent .li_list {
  background:#cecece url('/img/tor_down_18.jpg') repeat-x top left;
  padding:2px 5px;
  margin-right:5px;
  float:left;
  color:#8f8f8f;
  margin-top:-2px;
  }
.torrent .li_list_a1 {
  margin-left:110px;
  border-left:#b4b4b4 solid 2px;
  padding:0px 5px;
  color:#6a6a6a;
  }
.torrent .li_distribute_m {
  background:#028e02 url('/img/tor_down_14.jpg') repeat-x top left;
  padding:2px 5px;
  margin-right:5px;
  color:#FFFFFF;
  font-weight:bold;
  margin-top:-2px;
  }
.torrent .li_swing_m {
  background:#9d2e22 url('/img/tor_down_16.jpg') repeat-x top left;
  padding:2px 5px;
  margin-right:5px;
  color:#FFFFFF;
  font-weight:bold;
  margin-top:-2px;
  }
.torrent .li_download_m {
  background:#9f9c9c url('/img/tor_down_11.jpg') repeat-x top left;
  padding:2px 5px;
  margin-right:5px;
  color:#FFFFFF;
  font-weight:bold;
  margin-top:-2px;
  }


Вот и все радуемся результату. В архиве есть картинки для создания дополнительных полей как на пример золото, серебро и т.д.создавать по аналогии в коде.
Прикрепления: img.rar (37.0 Kb)



подпишись не пропусти новинки
 
  • Страница 1 из 1
  • 1
Поиск: