Results 1 to 2 of 2

Thread: Need Help With Customization

  1. #1

    Default Need Help With Customization

    I have added couple new tables to the database to for advertising. The database is all set up and working properly, but I am looking for a way I can add that data to my site. How can I do this? For example, I tried modifing class.video_player.php and I tried to add the new variables to the tpl files but it does not work. Is there an easy way to do this?

    class video_player {

    var $video_name;
    var $server_id;
    var $flvideo;
    var $video_id;
    var $video_info;

    var $sponsor_name;
    var $linking_code;
    var $xml_link;
    var $banner_1;
    var $banner_2;
    var $banner_3;
    var $ADV_result;

    function get_player_code($video_id) {
    global $config;
    $sql = "SELECT * FROM `video` WHERE `VID`=$video_id";
    $result = mysql_query($sql) or mysql_die($sql);

    if (mysql_num_rows($result) == 0) {
    return 'video not found';

    }

    $video_info = mysql_fetch_assoc($result);
    $this->video_info = $video_info;
    $vtype = $video_info['vtype'];
    $this->video_name = $video_info['vdoname'];
    $this->server_id = $video_info['server_id'];
    $this->flvideo = $video_info['flvdoname'];
    $this->video_id = $video_info['VID'];
    $video_UID = $video_info['UID'];

    $sql_ADV = "SELECT * FROM `signup`, `_SPONSOR` WHERE signup.ADVERT=_SPONSOR.sponsor_id AND signup.UID=$video_UID";
    $result_ADV = mysql_query($sql_ADV) or mysql_die($sql_ADV);
    $ADV_result = mysql_fetch_assoc($result_ADV);
    $sponsor_name = $ADV_result['sponsor_name'];
    $linking_code = $ADV_result['linking_code'];
    $xml_link = $ADV_result['xml_link'];
    $banner_1 = $ADV_result['banner_1'];
    $banner_2 = $ADV_result['banner_2'];
    $banner_3 = $ADV_result['banner_3'];

    switch ($vtype) {
    case 0:
    return $this->vshare_player();
    break;
    case 1:
    return $this->youtube();
    break;
    case 2:
    return $this->flv_url();
    break;

  2. #2
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Need Help With Customization

    I'm no PHP genius, and I don't know what else you've tried but have you looked to admin/adv.tpl for some clues? Not sure if that's a help at all or not, but that's where I'd look.
    If it's not fun, stop doing it!

Similar Threads

  1. Need Help With Customization
    By scwebmaster in forum General Discussions
    Replies: 1
    Last Post: 10-14-2008, 04:55 AM
  2. CUSTOMIZATION.. CAN WE PAY??
    By CEO in forum Sales Questions
    Replies: 2
    Last Post: 02-09-2008, 04:12 AM
  3. Installation / Customization Help needed - $$$
    By chronoshift in forum Installation Support
    Replies: 1
    Last Post: 12-28-2007, 06:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •