Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > TBDev
Reply
  #1  
Old 19-03-10, 10:12
toksskey's Avatar
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 25-03-10, 21:46
helvijs13's Avatar
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; 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)
  #3  
Old 23-01-13, 10:40
bestlap's Avatar
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; 23-01-13 at 18:37.
Reply With Quote
  #4  
Old 16-01-14, 02:01
Tmx's Avatar
Tmx Tmx is offline
Member
 
Join Date: Dec 2009
Latvia
Posts: 10
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 16-01-14, 11:10
Krypto's Avatar
Krypto Krypto is offline
Administrator
 
Join Date: Jan 2008
P2P
Posts: 493
Default
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
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 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 15:15. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.