Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 19th March 2010, 10:12
toksskey toksskey is offline
Member
 
Join Date: Sep 2009
P2P
Posts: 7
Default Poster mod
Hi, need poster mod, for TBDEV netmaniack's edition 1.5
Reply With Quote
  #2  
Old 25th March 2010, 21:46
helvijs13 helvijs13 is offline
Senior Member
 
Join Date: Sep 2008
Posts: 23
Default
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

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!<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 http://www.tbdev.net/index.php?showtopic=15390

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; 25th March 2010 at 22:27.
Reply With Quote
The Following 3 Users Say Thank You to helvijs13 For This Useful Post:
BamBam0077 (15th June 2022), bestlap (23rd January 2013), nicukent (16th November 2011)
  #3  
Old 23rd January 2013, 10:40
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Thanks it works !!!

Click the image to open in full size.

Last edited by bestlap; 23rd January 2013 at 18:37.
Reply With Quote
  #4  
Old 16th January 2014, 02:01
Tmx Tmx is offline
Member
 
Join Date: Dec 2009
Latvia
Posts: 11
Default
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
  #5  
Old 16th January 2014, 11:10
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
They are Static images. They won 't rotate or change order randomly.
Reply With Quote
Reply

Tags
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 28th June 2010 14:50
ballon tooltip poster+informations problem lovebeer TBDev 13 4th March 2010 16:00
details.php - Poster carloscorp Torrent Strike 2 8th November 2008 20:34



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