Hello people...
This is my little modification...
To view torrents details in XXX category, users first make confirm dialog box...
Here we go:
1. Open
details.php and find line
PHP Code:
stderr($lang->global['error'], $lang->global['torrentbanned']);
2. After line paste this
PHP Code:
//XXX Torrents Confirm Dialog by Danix
elseif ($torrent["category"] == "??")
{
$alert = ('
<script type="text/javascript">
//<![CDATA[
var alert = confirm("'.$lang->global['xxxtorrent'].'")
if (alert)
{
alert("'.$lang->global['xxxtorrent'].'")
}
else
{
window.location = "'.$BASEURL.'/";
}
//]]>
</script>');
echo $alert;
}
in first line replace
?? with your XXX Torrent Category ID.
P.S. - If you are using Subcategory in XXX Torrent Category replace first line with this
PHP Code:
elseif ($torrent["category"] == "??" OR $torrent['category'] == "??" OR $torrent['category'] == "??")
and replace
?? with your XXX Torrent Category and Subcategory ID.
3. Open
global.lang.php in folder
/include/languages/English and paste this in bottom of page
PHP Code:
'xxxtorrent' =>'I confirm that i have over 18 years!',//Added by Danix
before
That is fellas...
And don't forget to says Thanks...