Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Bookmark Torrent
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-02-12 14:12:48
delete

case 'dl':

break;





find:



if ($variant == "bookmarks")

echo "<td class=ttable_col2 align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='images/delchat.gif' border='0' width='10px' alt='delete' title='delete' /></a></td>";

break;





change for:



if ($variant == "bookmarks")

echo "<td class=ttable_col$x align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='".$site_config['SITEURL']."/images/delchat.gif' border='0' width='10px' alt='delete' title='delete' /></a></td>";

break;
Unknown User
2009-02-12 14:20:33
"savi, post: 53689":
no and 1 problem still:
this last column must be difrent color:

1st picture is browsing torrents.

2nd picture is my bookmarks:

try change: ttable_col$x for: ttable_col2 or: ttable_col1

in bookmark, normaly it can't be bookmark.gif but delete.gif   ;)

don't understand why you have bookmark.gif
Unknown User
2009-02-12 14:47:31
Quote:
try change: ttable_col$x for: ttable_col2 or: ttable_col1

no, it
Unknown User
2009-02-12 15:16:34
Quote:
delete


case 'dl':

break;
find:



i
f ($variant == "bookmarks")

echo "<td class=ttable_col2 align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='images/delchat.gif' border='0' width='10px' alt='delete' title='delete' /></a></td>";

break;







change for:





if ($variant == "bookmarks")

echo "<td class=ttable_col$x align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='".$site_config['SITEURL']."/images/delchat.gif' border='0' width='10px' alt='delete' title='delete' /></a></td>";

break;



Sorry...

not work again... very strange...

now this is my function.php..

and this is my result:



[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3519"]functions.php[/url]
functions.php
Download
Unknown User
2009-02-12 15:28:21
"gandalf76, post: 53698":
Sorry...not work again... very strange...

now this is my function.php..

and this is my result:



did you edit your config file? there you have a part ofr adding to the torrent table
Unknown User
2009-02-12 15:40:59
yes... this is my actualy config.php:

i have added " bookmark, "

$site_config["torrenttable_columns"] = "category,name,uploader,comments,size,seeders,leechers,completed,health,exter

nal,bookmark";
Unknown User
2009-02-12 17:34:41
try mine

function torrenttable($res, $variant="") {
global $site_config, $CURUSER, $THEME, $LANGUAGE;  //Define globals

if ($site_config["MEMBERSONLY_WAIT"] && $site_config["MEMBERSONLY"] && in_array($CURUSER["class"], explode(",",$site_config["WAIT_CLASS"]))) {

$gigs = $CURUSER["uploaded"] / (1024*1024*1024);

$ratio = (($CURUSER["downloaded"] > 0) ? ($CURUSER["uploaded"] / $CURUSER["downloaded"]) : 0);

if ($ratio < 0 || $gigs < 0) $wait = $site_config["WAITA"];

elseif ($ratio < $site_config["RATIOA"] || $gigs < $site_config["GIGSA"]) $wait = $site_config["WAITA"];

elseif ($ratio < $site_config["RATIOB"] || $gigs < $site_config["GIGSB"]) $wait = $site_config["WAITB"];

elseif ($ratio < $site_config["RATIOC"] || $gigs < $site_config["GIGSC"]) $wait = $site_config["WAITC"];

elseif ($ratio < $site_config["RATIOD"] || $gigs < $site_config["GIGSD"]) $wait = $site_config["WAITD"];

else $wait = 0;

}

// Columns

$cols = explode(",", $site_config["torrenttable_columns"]);

$cols = array_map("strtolower", $cols);

$cols = array_map("trim", $cols);

$colspan = count($cols);

// End

// Expanding Area

$expandrows = array();

if (!empty($site_config["torrenttable_expand"])) {

$expandrows = explode(",", $site_config["torrenttable_expand"]);

$expandrows = array_map("strtolower", $expandrows);

$expandrows = array_map("trim", $expandrows);

}

// End

echo '<table align=center cellpadding="0" cellspacing="0" class="ttable_headinner" width=99%><tr>';

foreach ($cols as $col) {

switch ($col) {

case 'category':

echo "<td class=ttable_head width=80>".TYPE."</td>";

break;

case 'name':

echo "<td class=ttable_head>".NAME."</td>";

break;

case 'dl':

echo "<td class=ttable_head>DL</td>";

break;

case 'uploader':

echo "<td class=ttable_head>".UPLOADER."</td>";

break;

case 'comments':

echo "<td class=ttable_head>Comm</td>";

break;

case 'nfo':

echo "<td class=ttable_head width=20>NFO</td>";

break;

case 'size':

echo "<td class=ttable_head width=80>".SIZE."</td>";

break;

case 'completed':

echo "<td class=ttable_head>C</td>";

break;

case 'seeders':

echo "<td class=ttable_head width=20><img src='images/green.gif' border='0' width='10px' alt='Seedeurs' title='Seedeurs' /></td>";

break;

case 'leechers':

echo "<td class=ttable_head width=20><img src='images/red.gif' border='0' width='10px' alt='Leecheurs' title='Leecheurs' /></td>";

break;

case 'health':

echo "<td class=ttable_head width=60><img src='images/heart.png' border='0' width='10px' alt='Sant
Unknown User
2009-02-12 17:38:17
"gandalf76, post: 53702":
yes... this is my actualy config.php:i have added " bookmark, "

$site_config["torrenttable_columns"] = "category,name,uploader,comments,size,seeders,leechers,completed,health,exter

nal,bookmark";


Try this functions m8 and copy tick.gif to images.

Edit: lol azuris well atleast one will work.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3520"]functions.zip[/url]
functions.zip
Download
Unknown User
2009-02-16 02:59:28
Thanks greatly, thanks man!
Unknown User
2009-02-16 07:25:33
I have carried out many modifications to mine function.php I cannot replace it completely. You can give the modifications to the code? Thanks
Unknown User
2009-02-16 10:25:38
modification are in first post
Unknown User
2009-02-17 01:34:41
Thanks man, it's really useful.
Unknown User
2010-07-06 09:25:18
Gandalf , I was having same problem,

in functions.php find:

function torrenttable($res) {
change for


function torrenttable($res, $variant="") {



hope this helps somebody
Unknown User
2011-03-05 16:58:40
Great mod thank you "AzuriS"

I wonder if you can put a button to delete the torrent that's on my wish list
Unknown User
2011-03-05 22:52:59
yes we need a delete function if its bookmarked already to save going into the torrent-details and hitting the red x as thats the only way atm to delete out of bookmarks when u have finished and it does not show currently bookmarked ones clearly  ;)

so as above would like the last fix and i can then see it will be 100% working my end on v2.06 al spot on then  ;)

cheers will watchout for last fix...........
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728