Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 9th March 2013, 13:01
Leechbg Leechbg is offline
Senior Member
 
Join Date: Feb 2013
P2P
Posts: 18
Default 18+ Content for XXX Torrent Category
Hello guys.I search for mod on TBDEV 08 for XXX category.
I want the XXX torrents to be separate and when someone click on XXX a popup to be shown for 18+ Content ?

Any ideas how can i do that ?

Here is an example in the Attach File for that i want

Best regards!!

Bump: Guys Any ideas,how we can do that to our site ?

Bump:
PHP Code:
<a href="javascript:decision('I confirm that I have completed 18+ years','details.php?id=350117&hit=1&catalog=xxx')"><b$dispname </b></a
Hello guys,that code is for 18+ content..where we need to put that code in bittorent.php and how we can make it to ask for that only for XXX category torrents.

Thanks !!
Attached Thumbnails
2013-03-09_125825.png  

Last edited by Leechbg; 9th March 2013 at 13:41.
Reply With Quote
  #2  
Old 17th March 2013, 23:59
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
I search this mod too...
Reply With Quote
  #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
  #4  
Old 3rd April 2013, 22:45
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
This is exactly what I was looking for few weeks ago. Actually I think you can try something like this:

Code:
if($row["category"] == 'XXX') {
<a href="javascript:decision('I confirm that I have completed 18+ years','details.php?id=350117&hit=1&catalog=xxx')"><b> $dispname </b></a>  
}
else {
<a href="details.php?id=350117&hit=1&catalog=xxx')"><b> $dispname </b></a>
}
Or something like that. Edit it until it works, haven't tested it but it should work. I'll try it myself tomorrow.
Reply With Quote
Reply

Tags
18 , category , content , torrent , xxx

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 20:50. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.