View Single Post
  #3  
Old 3rd April 2013, 22:15
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
Why don`t try to create your own MOD

I don`t know if TBDEV have a torrent age option (but u can create one running this code
PHP Code:
CREATE TABLE IF NOT EXISTS `torrentage` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
namevarchar(30NOT NULL default '',
  `
imagevarchar(255NOT NULL default '',
  `
sort_indexint(10unsigned NOT NULL default '0',
  
PRIMARY KEY  (`id`)
ENGINE=MyISAM AUTO_INCREMENT=;

INSERT INTO `torrentage` (`id`, `name`, `image`, `sort_index`) VALUES
(1'3''3.png'1),
(
2'6''6.png'1),
(
3'12''12.png'1),
(
4'16''16.png'1),
(
5'18''18.png'1); 
, then u must alter your torrents table something like this:
PHP Code:
ALTER TABLE `torrentsADD `torrentageint(10unsigned NOT NULL default '1'
edit your torrent upload & u must add a option where the uploader can insert the 'age` of torrent),or user when register is forced to insert birtday to calcalute the age of user & after some modification of user details & torrent_upload files is very simple to restrict torrent if the user age is under 18 .
ex:
PHP Code:
if ($CURUSER["age"] < $row["age_name"]){
$torrentage =  "<a href=\"" $site_config['SITEURL'] . "/images/torrents/novideo.jpg\" rel=\"ibox\"><img border=\"0\"src=\"" $site_config['SITEURL'] . "/images/torrents/age/" $row["age_image"] . "\" alt=\"Age Required&nbsp;:" $row["age_name"] . " + \" /></a>";                                                                                       
}else{
$torrentage =  "<a href=\"download.php?id=$id&name=" rawurlencode($row["filename"]) . "\"><img border=\"0\"src=\"" $site_config['SITEURL'] . "/images/torrents/age/" $row["age_image"] . "\" alt=\"Age Required&nbsp;:" $row["age_name"] . " + \" /></a>";                         

If u try to create this MOD i will help you, if not u must wait until
i will find some free time to create this MOD, but u must give me the link from where u have downloaded your source .

P.S. this is a part imported from my source;

Best Regards
Reply With Quote