Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 14th October 2011, 14:17
djlive djlive is offline
Banned
 
Join Date: Apr 2010
Ethiopia
Posts: 2
Default Sticky torrents
I need the "stichy torrents" for tbdev 2008 if someone can help me thx
Reply With Quote
  #2  
Old 23rd January 2013, 10:33
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Yes... and I need a recomended torrent in browse.php on tbdev 08 please help.
thanks
Reply With Quote
  #3  
Old 26th February 2013, 18:40
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Sticky Torrent Mod, credits to Alex2005

Add this to your database

PHP Code:
ALTER TABLE torrents ADD `stickyenum('yes','no'NOT NULL default 'no'
open Browse.php and fine

PHP Code:
$orderby "ORDER BY torrents.id DESC"
and change it to

PHP Code:
$orderby "ORDER BY torrents.sticky ASC, torrents.id DESC"
still in browse look for the big query

PHP Code:
$query "SELECT torrents.id, torrents.category, torrents.leechers, torrents.seeders... 
and add this to it

PHP Code:
torrents.sticky 
now open Edit.php and fine this

PHP Code:
tr("TYPE"$s1); 
and add this under it

PHP Code:
if(get_user_class() > UC_MODERATOR)
           
tr("sticky""<input type='checkbox' name='sticky'" . (($row["sticky"] == "yes") ? " checked='checked'" "" ) . " value='yes' />Set sticky this torrent!"1); 
open takeedit.php and fine

PHP Code:
$updateset[] = "category = " . ($type); 
and add this underneath

PHP Code:
if(get_user_class() > UC_MODERATOR){
if (
$_POST["sticky"] == "yes")
          
$updateset[] = "sticky = 'yes'";
   else
          
$updateset[] = "sticky = 'no'";

now open bittorrent.php and fine this

PHP Code:
$dispname htmlspecialchars($row["name"]); 
and add this underneath

PHP Code:
$sticky = ($row[sticky]=="yes" "<img src='pic/sticky.gif' bored='0' alt='sticky'>" ""); 
this is only an example so don't copy this next part

and then add where you want it to be shown (the $sticky) in bittorrent.php (remember this is only an example)

PHP Code:
if (sql_timestamp_to_unix_timestamp($row['added']) >= $last_browse)
                echo 
"\" title=\"" $dispname "\"><b>" $dispname "</b></a><img src='/pic/new.gif' border='0' alt=NEW>".$sticky."<br><b>" $description "</b>\n";
                else
                echo 
"\" title=\"" $dispname ."\"><b>" $dispname "</b></a>".$sticky."<br><b>" $description "</b>\n"
then add sticky.gif to your pic folder, sticky.gif attached below
Attached Images
 
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
The Following User Says Thank You to Chez For This Useful Post:
AbOoOdY (20th July 2013)
Reply

Tags
sticky , torrents

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



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