[MOD] Show Adult Ads on Adult Video

Added by BuyScripts Admin almost 8 years ago

Open include/functions_insert.php

Find

function insert_advertise($v)
{
    global $conn;
    $sql = "SELECT `adv_text` FROM `adv` WHERE
           `adv_name`='" . mysql_clean($v['adv_name']) . "' AND
           `adv_status`='Active'";

Replace With

    global $conn, $video_info;
    $adv_name = $v['adv_name'];
    if (isset($video_info['video_adult']) && $video_info['video_adult'] == 1)
    {
    $adv_name .= '_adult';
    }
    $sql = "SELECT `adv_text` FROM `adv` WHERE
           `adv_name`='" . mysql_clean($adv_name) . "' AND
           `adv_status`='Active'";

execute following SQL in phpMyAdmin

INSERT INTO `adv` (`adv_id` ,`adv_name` ,`adv_text` ,`adv_status`) VALUES(8 , 'banner_top_adult', '<center><h3>ADULT ADV</h3></center>', 'Active'), (9 , 'banner_bottom_adult', '<center><h3>ADULT ADV</h3></center>', 'Active'), (10 , 'video_right_single_adult', '<center><h3>ADULT ADV</h3></center>', 'Active'), (11 , 'player_top_adult', '<center><h3>ADULT ADV</h3></center>', 'Active'), (12 , 'player_bottom_adult', '<center><h3>ADULT ADV</h3></center>', 'Active');

Issue: http://labs.buyscripts.in/issues/199


Replies (1)

RE: [MOD] Show Adult Ads on Adult Video - Added by BuyScripts Admin almost 8 years ago

this will be released on vshare mod forum after vshare 2.8 release.

http://forums.buyscripts.in/vshare-modifications/

(1-1/1)