Bravo List
Go Back   > Bravo List > Source Code > Trackers > TBDev
Old 19-03-10, 10:12
toksskey's Avatar
toksskey toksskey is offline
Join Date: Sep 2009
Posts: 7
Default Poster mod
Hi, need poster mod, for TBDEV netmaniack's edition 1.5
Reply With Quote
Old 25-03-10, 21:46
helvijs13's Avatar
helvijs13 helvijs13 is offline
Senior Member
Join Date: Sep 2008
Posts: 23
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><br /></td>");
echo "</tr></table>";
in edit.php

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

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!<br><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

Orginal Picture : Click the image to open in full size.

My tracker picture : Click the image to open in full size.

Last edited by helvijs13; 25-03-10 at 22:27.
Reply With Quote
The Following 2 Users Say Thank You to helvijs13 For This Useful Post:
bestlap (23-01-13), nicukent (16-11-11)
Old 23-01-13, 10:40
bestlap's Avatar
bestlap bestlap is offline
Senior Member
Join Date: Nov 2012
Posts: 51
Thanks it works !!!

Click the image to open in full size.

Last edited by bestlap; 23-01-13 at 18:37.
Reply With Quote
Old 16-01-14, 02:01
Tmx's Avatar
Tmx Tmx is offline
Join Date: Dec 2009
Posts: 10
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?
Reply With Quote
Old 16-01-14, 11:10
Krypto's Avatar
Krypto Krypto is offline
Join Date: Jan 2008
Posts: 504
They are Static images. They won 't rotate or change order randomly.

Please DO NOT "PM" me for Personal Support!! Keep all questions on the board so all can benefit.

Reply With Quote

mod , poster

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
poster/images with glossy effect daffy Mods & Themes 0 28-06-10 14:50
ballon tooltip poster+informations problem lovebeer TBDev 13 04-03-10 16:00
details.php - Poster carloscorp Torrent Strike 2 08-11-08 20:34

All times are GMT +2. The time now is 13:06. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.