Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Poster mod (http://www.bvlist.com/showthread.php?t=4693)

toksskey 19th March 2010 10:12

Poster mod
 
Hi, need poster mod, for TBDEV netmaniack's edition 1.5

helvijs13 25th March 2010 21:46

This mod is for Recommended Torrents only with poster

lets get start

First add in SQL:
ALTER TABLE `torrents` ADD `recommended` ENUM( 'Yes', 'No' ) NOT NULL DEFAULT 'No';

then in browse.php (or where you want to be the posters) add:

PHP Code:

<?
$rezfive 
mysql_query("SELECT id, recommended, name, poster FROM torrents WHERE recommended = 'yes' ORDER BY added DESC LIMIT 7") or sqlerr(__FILE____LINE__);
print 
'<h2 align=center><font color=white>Recommend Torrents</font></h2><table width=100% border=1 ><tr>';
if (
mysql_num_rows($rezfive) > 0) {
while (
$fiverow mysql_fetch_assoc($rezfive)) {
$poster = (!empty($fiverow["poster"]) ? (str_replace(" ""%20"htmlentities($fiverow['poster']))) : 'pic/poster.jpg');
print (
"<td><a href=\"".$BASEURL."/details.php?id=".$fiverow['id']."\" /><img src=\"".$poster."\" width=\"145\" height=\"210\" border=0 /></a></td>");
}
}
echo 
"</tr></table>";
?>

in edit.php

after
PHP Code:

    if ($CURUSER["admin"] == "yes")
        
tr("Banned""<input type=\"checkbox\" name=\"banned\"" . (($row["banned"] == "yes") ? " checked=\"checked\"" "" ) . " value=\"1\" /> Banned"1); 

add

PHP Code:

        tr("Recommended Torrent","<input type=radio name=recommended" . ($row["recommended"] == "yes" " checked" "") . " value=yes>Yes!<input type=radio name=recommended" . ($row["recommended"] == "no" " checked" "") . " value=no>No!<font class=small size=1>IF you want to recommend this torrent!</font>",1); 

in takeedit.php
PHP Code:

if (!empty($_POST['recommended']))
$recommended unesc($_POST['recommended']); 

and this
PHP Code:

$updateset[] = "recommended = " sqlesc($recommended); 

I think thats all


Mod by Westony Orginal topic in http://www.tbdev.net/index.php?showtopic=15390

Orginal Picture : http://img100.imageshack.us/i/asddsadsadd7.jpg/

My tracker picture : http://img25.imageshack.us/img25/188...2010213641.png

bestlap 23rd January 2013 10:40

Thanks it works !!!

http://i.imgur.com/tfjUuKv.jpg

Tmx 16th January 2014 02:01

What about the pictures? They rotate or just standing there?

If, I'll take like 10 torrents recommend the torrent, pictures show all ten in browse or her will rotate in a random order?

Krypto 16th January 2014 11:10

They are Static images. They won 't rotate or change order randomly.


All times are GMT +2. The time now is 08:15.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.