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
Torrent Manage + Delete
Controls ·  Search New posts · Mark unread

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

Unknown User
2011-06-24 18:25:40
Requested [url="http://www.torrenttrader.org/index.php?showtopic=13728&view=findpost&p=73095"]Here[/url]

Delete Your old $action of torrentmanage from admincp.php and Add this....

	if ($action == "torrentmanage") {



if ($do == "delete") {

if (!@count($_POST["torrentids"]))

 show_error_msg("Error", "Nothing selected click <a href='admincp.php?action=torrentmanage'>here</a> to go back.", 1);

foreach ($_POST["torrentids"] as $id) {

deletetorrent(intval($id));

write_log("Torrent ID $id was deleted by $CURUSER[username]");

}

show_error_msg("Torrents Deleted", "Go <a href='admincp.php?action=torrentmanage'>back</a>?", 1);

}



$search = (!empty($_GET["search"])) ? htmlspecialchars(trim($_GET["search"])) : "";



$where = ($search == "") ? "" : "WHERE name LIKE " . sqlesc("%$search%") . "";



$count = get_row_count("torrents", $where);



list($pagertop, $pagerbottom, $limit) = pager(25, $count, "admincp.php?action=torrentmanage&");



$res = mysql_query("SELECT id, name, seeders, leechers, visible, banned, external FROM torrents $where ORDER BY name $limit");



stdhead("Torrent Management");

navmenu();



begin_frame("Torrent Management");



?>



<center>

<form method='get' action='admincp.php'>

<input type='hidden' name='action' value='torrentmanage' />

Search: <input type='text' name='search' value='<?php echo $search; ?>' size='30' />

<input type='submit' value='Search' />

</form>



<form method='post' action='admincp.php?action=torrentmanage'>

<input type='hidden' name='do' value='delete' />

<table cellpadding='5' cellspacing='3' class='table_table'>

<tr>

<th class='table_head'>Name</th>

<th class='table_head'>Visible</th>

<th class='table_head'>Banned</th>

<th class='table_head'>Seeders</th>

<th class='table_head'>Leechers</th>

<th class='table_head'>External</th>

<th class='table_head'>Edit</th>

<th class='table_head'>Del</th>

</tr>



<?php while ($row = mysql_fetch_array($res)) { ?>



<tr>

<td class='table_col1'><a href='torrents-details.php?id=<?php echo $row["id"]; ?>'><?php echo CutName(htmlspecialchars($row["name"]), 40); ?></a></td>

<td class='table_col2'><?php echo $row["visible"]; ?></td>

<td class='table_col1'><?php echo $row["banned"]; ?></td>

<td class='table_col2'><?php echo number_format($row["seeders"]); ?></td>

<td class='table_col1'><?php echo number_format($row["leechers"]); ?></td>

<td class='table_col2'><?php echo $row["external"]; ?></td>

<td class='table_col1'><a href='torrents-edit.php?id=<?php echo $row["id"]; ?>'>Edit</a></td>

<td class='table_col2'><input type='checkbox' name='torrentids[]' value='<?php echo $row["id"]; ?>' /></td>

</tr>



<?php } ?>



</table>

<br />

<input type='button' value='Check All' onclick='this.value=check(form)' />&nbsp;

<input type='submit' value='Delete checked' />

</form>

<br />

<?php echo $pagerbottom; ?>

</center>



<?php



end_frame();

stdfoot();



}


See Screenshot.
Unknown User
2011-06-24 21:59:29
Hello guys,

This is only to tell you guys that this MOD or maybe customization works like a charm on v2.06.

Thanx to DJ.

Cheers. Regards.
2011-06-24 22:53:55
Wowww , big thanks DJ !   :D

#1 ~  v2.07
Unknown User
2011-06-24 23:27:16
Dj great job thanks
Unknown User
2011-06-25 04:54:49
works 100% tt2.05 also , nice one Dj bud
Unknown User
2011-06-25 15:22:09
Hello Djowarth,

Some other good features would be to have colums such as freeleech, categories and others!  But personally, this enhancement would be good for PREMIUM people only!

Thanx. Regards.
Unknown User
2011-06-25 19:00:50
Yep of course il probably create it, me posting this mod was a test. A test to see what the normal members would say but as usual they don't like to say thanks so they can think again now, all my future mods will remain hidden to the premium section!
Unknown User
2011-06-25 20:02:00
"djhowarth, post: 73293":
Yep of course il probably create it, me posting this mod was a test. A test to see what the normal members would say but as usual they don't like to say thanks so they can think again now, all my future mods will remain hidden to the premium section!

this is why i only post in the premium section ( thats if i have anything to post ) as no one says thanks

but maybe TT should think about 3 diffrent sections on the forum 1 for 2.05 mods 2.06 and 2.07 etc or add 3 child boards to the v2 section which ever is easier for him, even though most will probably work on all 3 versions but it will help keep the forum tidy  :D

gonna be having a look around the forum soon to see what i can update to the latest version  ;)

excellent mod dj keep up the good work bud
Unknown User
2011-06-25 21:42:23
i personnally don't think 3 seperate forums would be the right way to go , after all i say 95% of all mods will work on all 3 , so wouldn't justify having to search 3 seperate forums to see what new ......thats just me personnally mind :D
Unknown User
2011-06-25 21:46:06
"SJC2TK, post: 73302":
i personnally don't think 3 seperate forums would be the right way to go , after all i say 95% of all mods will work on all 3 , so wouldn't justify having to search 3 seperate forums to see what new ......thats just me personnally mind  ;)

it was just a suggestion  ;)

or it could be re-phrased for the future as mods are made for a specific version so say if you start with 2.07 then all new mods would be posted in 2.07 and when 2.08 is released and so forth then you could have a retired version section where they could all be moved too once new and future versions are released may be me being daft like i said suggestion  :D  but yeah i do agree most will work on all v2 release but some do require little adjuesment to the code
Unknown User
2011-06-25 21:55:03
i suppose if your using say v2.06 and create a new mod then yeh , its upto the individual who's using say v2.05 to try it and then maybe post in the relevant version saying from v2.06 and working 100% or not wahtever the case maybe and maybe add the fix
Unknown User
2011-06-25 22:00:48
Hi guys,

To add more to this and this is a personnal thought... most of the MOD's post are AWFULL to follow.  Especially for newbies and when you have many pages.  It would be nice reorganize things to be properly read.

Has per example, the SILVERLEECH mod has been completely re-written after many attempts.  Why not deleting the older post and re-post the WORKING ONE!

I don't know your rules about this Forum, but THINGS that where posted years ago... why not doing a cleanup!

Thanx. Regards.
Unknown User
2011-06-25 22:04:33
"rdesormiers, post: 73307":
Hi guys,
To add more to this and this is a personnal thought... some post are REALLY AWFULL to follow.  Especially when you have many pages.  It would be nice reorganize things to be properly read.

Has per example, the SILVERLEECH mod has been completely re-written.  Why not deleting the older post and re-post the WORKING ONE!

Thanx. Regards.

ill be  updating that to 2.07 soon and will post a whole new topic  :D

we shouldnt trash djs thread with this maybe open a new topic in general chat sorry dj bud
Unknown User
2011-06-25 22:14:09
Hello thedarklord,

Thank you for your update of this MOD, but personnally, a thread should be open for v2.06 for the Silverleech has per example.  Without taking CREDIT of the first member who had posted it!

Cheers m8.
Unknown User
2011-06-25 22:21:59
"rdesormiers, post: 73310":
Hello thedarklord,
Thank you for your update of this MOD, but personnally, a thread should be open for v2.06 for the Silverleech has per example.  Without taking CREDIT of the first member who had posted it!

Cheers m8.

i wont take credit for it ill give the credit to the original person even though it will probly go straight in 2.07 this is how ill label it if it goes straight in same topic title but will add to that 2.06/2.07 but as i did say in my other post were posting in the wrong thread here this is dj,s thread :D
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728