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
[ADDON] Parked Accounts
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-12-27 23:29:45
Not really needed on mailbox TBH,  but block on forums, torrents, shoutbox,  etc...

Going to add a little bit on account-details.php admin should be able to edit status as well as some users may be noobs and just ask in irc.

account-details.php

Find

Last Seen(Location): <?=htmlspecialchars($user["page"]);?><BR>
add below




Parked : <?=htmlspecialchars($user["parked"]);?><BR>





Find





$enabled = $user["enabled"] == 'yes';





add below





$parked = $user["parked"] == 'yes';







Find





print("<tr><td>Account:</td><td align=left><input name=enabled value=yes type=radio" . ($enabled ? " checked" : "") . ">Enabled <input name=enabled value=no type=radio" . (!$enabled ? " checked" : "") . ">Disabled</td></tr>\n");





add below





print("<tr><td>Parked: </td><td align=left><input name=parked value=yes type=radio" . ($parked ? " checked" : "") . ">Yes <input name=parked value=no type=radio" . (!$parked ? " checked" : "") . ">No</td></tr>\n");





admin-modtasks.php

Find





$warned = $_POST["warned"];





add below





$parked= $_POST["parked"];





Find





warned='$warned',





add after





parked='$parked',



that will enable you to park accounts for members who you know will be away and wont get caught by the cleanup.php or any manual cleanup scripts you may run.
Unknown User
2009-02-24 02:58:57
I was looking for a mod that allows the users to park their accounts and found this.

There is no introduction or explanation about what this addon really is is there?

Is the first post updated to include the latter code from walker etc?

Thx
Unknown User
2009-10-29 21:14:16
//delete inactive user accounts

$secs = 60*86400;

$dt = sqlesc(get_date_time(gmtime() - $secs));

$maxclass = UC_POWER_USER;

mysql_query("DELETE FROM users WHERE parked='no' AND status='confirmed' AND class <= $maxclass AND last_access < $dt");

:lol:   :)
Unknown User
2010-01-27 19:23:05
"leandrosapia, post: 60684":
//delete inactive user accounts$secs = 60*86400;

$dt = sqlesc(get_date_time(gmtime() - $secs));

$maxclass = UC_POWER_USER;

mysql_query("DELETE FROM users WHERE parked='no' AND status='confirmed' AND class <= $maxclass AND last_access < $dt");

;)  ;)

this can
Unknown User
2010-06-07 20:57:20
it works but when i parked my account it send's me to the default theme of torrent trader, did anyone has encontered this error. I have fixed it by deleting the default theme :blink:
Unknown User
2012-08-23 11:19:03
can we have this for toprrent trader 208?
Unknown User
2012-08-23 12:26:25
This mod should works under v2.08 just change codes to use SQL_Query_exec

parked.PNG
parked.PNG
Unknown User
2012-08-23 19:03:45
many thax all i need now is a good request mod then ive done
Unknown User
2012-08-23 21:51:29
ok given this a crack and you will need to add

after

loggedinonly();

add:

parked();

to all of your pagers the torrents not just torrents.php and index.php where torrents are too bit it will give them a page black with just blocks to see only  BUT in the blocks can download on parked so  this mod need more moding realy just done test on torrent trader 208 not recommended mod for 208
Unknown User
2012-08-24 00:38:48
download.php, announce.php will block downloads well download.php is pretty useless as u could download the torrent manually if the uploads path is readable, but the announce should stop it, but in the blocks if you really want to do it then try this before the begin_frame



if ($CURUSER["parked"] == "yes")

  return;



And it should stop the block being loaded
Unknown User
2012-08-24 03:23:42
ok will go for it many thax
Unknown User
2013-05-29 13:38:47
it's work to TT2.08?

apply this mod,blank page site  <_<
Unknown User
2013-05-30 03:18:12
this is the same thing as the other mode([url="https://www.torrenttrader.org/topic/12917-addon-add-mb-and-gb-from-staff-panel/page-2#entry90572"]https://www.torrenttrader.org/topic/12917-addon-add-mb-and-gb-from-staff-panel/page-2#entry90572[/url]

), Phoenix75

replace

<?

by :


<?php
Unknown User
2013-05-31 20:12:43
thanks you Thib good work  ;)

grand Merci Thib ça fonctionne
Unknown User
2013-05-31 20:15:44
"phoenix75, post: 90647":

thanks you Thib good work  ;)

grand Merci Thib ça fonctionne
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6762"]admincp.php[/url]
admincp.php
Download
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