Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   18+ Content for XXX Torrent Category (http://www.bvlist.com/showthread.php?t=8972)

Leechbg 9th March 2013 13:01

18+ Content for XXX Torrent Category
 
1 Attachment(s)
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 ? :sos::sos:

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. :sos:

Thanks !!

bestlap 17th March 2013 23:59

I search this mod too...

hack346 3rd April 2013 22:15

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

mat22 3rd April 2013 22:45

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') {
$dispname  
}
else {
$dispname
}

Or something like that. Edit it until it works, haven't tested it but it should work. I'll try it myself tomorrow.


All times are GMT +2. The time now is 19:01.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.