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
vip download
You don't have permission for this action!
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Requests

2019-10-09 20:53:30
Hello everyone, can you tell me if it is possible to have a function for downloading reserved for vip members  :rolleyes:
Unknown User
2019-10-09 22:51:53
inside torrents-details.php
if ($curuser['class'] == number_of_vip_group) {
echo "link_for_download";
} else {
echo "You can't download this torrent".
}

This is for all torrents, if you want to have for specific torrents, you have to create a new sql field in torrents and then set checkbox into torrents-edit.php which will set yes/no for vip torrents then just get from sql something like:

if ($row['vip_torrent'] == 'yes') {
echo 'link';
} else {
echo 'you can't download this torrent.';
}

This should give you an idea how to do it.
2019-10-10 04:33:31
I've got the vip only mod on my site I'll post later on today when I get a bit of free time
2019-10-10 11:00:26
Good morning and thank you both very much, I'm waiting for the next step. :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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728