Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   XXX Torrents Confirm Dialog (http://www.bvlist.com/showthread.php?t=5998)

Danix 31st January 2011 01:30

XXX Torrents Confirm Dialog Box
 
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
PHP Code:

);
?> 

That is fellas...
And don't forget to says Thanks... :ok:


All times are GMT +2. The time now is 11:53.

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