I recently updated my phpDVDProfiler, so that the new "features" items added by DVD Profiler 4.0 would be recognized. Thought I'd post the relevant sections for each of the files I had to edit for those who also have phpDVDProfiler websites. When updating your files and putting them in place you'll also want to make sure you have a full DVD Profiler XML file in place as you'll need to import the updated "schema.sql" file to your MySQL database, then performing a full update from your phpDVDProfiler website afterwards. Enjoy!
______________________
Click
here for a PHP file containing the below.
index.php (DVD Profiler 4.0 features added. Items sorted to match the order presented in DVD Profiler.)$dvd['p_extras'] = (($dvd['featuresceneaccess']==1) ? ", $lang[SCENEACCESS]": '')
. (($dvd['featureplayall']==1) ? ", $lang[PLAYALL]": '')
. (($dvd['featuretrailer']==1) ? ", $lang[TRAILER]": '')
. (($dvd['featurebonustrailers']==1) ? ", $lang[BONUSTRAILERS]": '')
. (($dvd['featuremakingof']==1) ? ", $lang[MAKINGOF]": '')
. (($dvd['featurecommentary']==1) ? ", $lang[COMMENTARY]": '')
. (($dvd['featuredeletedscenes']==1) ? ", $lang[DELETEDSCENES]": '')
. (($dvd['featureinterviews']==1) ? ", $lang[INTERVIEWS]": '')
. (($dvd['featureouttakes']==1) ? ", $lang[OUTTAKES]": '')
. (($dvd['featurestoryboardcomparisons']==1) ? ", $lang[STORYBOARDCOMPARISONS]": '')
. (($dvd['featurephotogallery']==1) ? ", $lang[PHOTOGALLERY]": '')
. (($dvd['featureproductionnotes']==1) ? ", $lang[PRODUCTIONNOTES]": '')
. (($dvd['featuredvdromcontent']==1) ? ", $lang[DVDROMCONTENT]": '')
. (($dvd['featuregame']==1) ? ", $lang[GAME]": '')
. (($dvd['featuremultiangle']==1) ? ", $lang[MULTIANGLE]": '')
. (($dvd['featuremusicvideos']==1) ? ", $lang[MUSICVIDEOS]": '')
. (($dvd['featurethxcertified']==1) ? ", $lang[THXCERTIFIED]": '')
. (($dvd['featureclosedcaptioned']==1) ? ", $lang[CLOSEDCAPTIONED]": '')
. (($dvd['featuredigitalcopy']==1) ? ", $lang[DIGITALCOPY]": '')
. (($dvd['featurepip']==1) ? ", $lang[PIP]": '')
. (($dvd['featurebdlive']==1) ? ", $lang[BDLIVE]": '')
. (($dvd['featuredbox']==1) ? ", $lang[DBOX]": '')
. (($dvd['featurecinechat']==1) ? ", $lang[CINECHAT]": '')
. (($dvd['featuremovieiq']==1) ? ", $lang[MOVIEIQ]": '')
. ((strlen($dvd['featureother'])>0) ? ", $dvd[featureother]": '');
processskin.php (DVD Profiler 4.0 features added. Items sorted to match the order presented in DVD Profiler.)$retval .= "\tvar DP_FeatureSceneAccess = " . JSTrueFalse($dvd['featuresceneaccess']) . ";\r\n";
$retval .= "\tvar DP_FeaturePlayAll = " . JSTrueFalse($dvd['featureplayall']) . ";\r\n";
$retval .= "\tvar DP_FeatureTrailers = " . JSTrueFalse($dvd['featuretrailer']) . ";\r\n";
$retval .= "\tvar DP_FeatureBonusTrailers = " . JSTrueFalse($dvd['featurebonustrailers']) . ";\r\n";
$retval .= "\tvar DP_FeatureFeaturette = " . JSTrueFalse($dvd['featuremakingof']) . ";\r\n";
$retval .= "\tvar DP_FeatureCommentary = " . JSTrueFalse($dvd['featurecommentary']) . ";\r\n";
$retval .= "\tvar DP_FeatureDeletedScenes = " . JSTrueFalse($dvd['featuredeletedscenes']) . ";\r\n";
$retval .= "\tvar DP_FeatureInterviews = " . JSTrueFalse($dvd['featureinterviews']) . ";\r\n";
$retval .= "\tvar DP_FeatureBloopers = " . JSTrueFalse($dvd['featureouttakes']) . ";\r\n";
$retval .= "\tvar DP_FeatureStoryboardComparisons = " . JSTrueFalse($dvd['featurestoryboardcomparisons']) . ";\r\n";
$retval .= "\tvar DP_FeatureGallery = " . JSTrueFalse($dvd['featurephotogallery']) . ";\r\n";
$retval .= "\tvar DP_FeatureProductionNotes = " . JSTrueFalse($dvd['featureproductionnotes']) . ";\r\n";
$retval .= "\tvar DP_FeatureDVDROMContent = " . JSTrueFalse($dvd['featuredvdromcontent']) . ";\r\n";
$retval .= "\tvar DP_FeatureInteractiveGame = " . JSTrueFalse($dvd['featuregame']) . ";\r\n";
$retval .= "\tvar DP_FeatureMultiAngle = " . JSTrueFalse($dvd['featuremultiangle']) . ";\r\n";
$retval .= "\tvar DP_FeatureMusicVideos = " . JSTrueFalse($dvd['featuremusicvideos']) . ";\r\n";
$retval .= "\tvar DP_FeatureTHXCertified = " . JSTrueFalse($dvd['featurethxcertified']) . ";\r\n";
$retval .= "\tvar DP_FeatureClosedCaptioned = " . JSTrueFalse($dvd['featureclosedcaptioned']) . ";\r\n";
$retval .= "\tvar DP_FeatureDigitalCopy = " . JSTrueFalse($dvd['featuredigitalcopy']) . ";\r\n";
$retval .= "\tvar DP_FeaturePIP = " . JSTrueFalse($dvd['featurepip']) . ";\r\n";
$retval .= "\tvar DP_FeatureBDLive = " . JSTrueFalse($dvd['featurebdlive']) . ";\r\n";
$retval .= "\tvar DP_FeatureDBOX = " . JSTrueFalse($dvd['featuredbox']) . ";\r\n";
$retval .= "\tvar DP_FeatureCineChat = " . JSTrueFalse($dvd['featurecinechat']) . ";\r\n";
$retval .= "\tvar DP_FeatureMovieIQ = " . JSTrueFalse($dvd['featuremovieiq']) . ";\r\n";
$retval .= "\tvar DP_FeatureOther = \"" . str_replace(array("\n",'"'), array('<BR>','\\"'), $dvd['featureother']). "\";\r\n"; // Line break fix.
rss.php (DVD Profiler 4.0 features added. I didn't update this one fully. Don't use this feature.)case 'Features':
$tmp1=array('Scene Access','Play All','Trailers','Featurettes','Commentary','Deleted Scenes','Interviews','Outtakes/Bloopers','Storyboard Comparisons','Gallery','Production Notes/Bios','DVD-ROM Content','Interactive Game','Multi-Angle','Music Videos','THX Certified','Closed Captioned');
$tmp2=array('sceneaccess','playall','trailer','makingof','commentary','deletedscenes', 'interviews','outtakes','storyboardcomparisons','photogallery','productionnotes','dvdromcontent','game','multiangle','musicvideos','thxcertified','closedcaptioned');
lang_en.php (DVD Profiler 4.0 features added. Items sorted to match the order presented in DVD Profiler.)$lang['SCENEACCESS'] = "Scene Access";
$lang['PLAYALL'] = "Play All";
$lang['TRAILER'] = "Feature Trailers";
$lang['BONUSTRAILERS'] = "Bonus Trailers";
$lang['MAKINGOF'] = "Featurettes";
$lang['COMMENTARY'] = "Commentary";
$lang['DELETEDSCENES'] = "Deleted Scenes";
$lang['INTERVIEWS'] = "Interviews";
$lang['OUTTAKES'] = "Outtakes/Bloopers";
$lang['STORYBOARDCOMPARISONS'] = "Storyboard Comparisons";
$lang['PHOTOGALLERY'] = "Gallery";
$lang['PRODUCTIONNOTES'] = "Prod. Notes/Bios";
$lang['DVDROMCONTENT'] = "DVD-ROM Content";
$lang['GAME'] = "Interactive Games";
$lang['MULTIANGLE'] = "Multi-angle";
$lang['MUSICVIDEOS'] = "Music Videos";
$lang['THXCERTIFIED'] = "THX Certified";
$lang['CLOSEDCAPTIONED'] = "Closed Captioned";
$lang['DIGITALCOPY'] = "Digital Copy";
$lang['PIP'] = "Picture-in-Picture";
$lang['BDLIVE'] = "BD-Live";
$lang['DBOX'] = "D-BOX";
$lang['CINECHAT'] = "CineChat";
$lang['MOVIEIQ'] = "MovieIQ";
incupdate.php (DVD Profiler 4.0 features added. Items sorted to match the order presented in DVD Profiler.)$f .= ',featuresceneaccess'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATURESCENEACCESS'][0]['VALUE']);
$f .= ',featureplayall'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREPLAYALL'][0]['VALUE']);
$f .= ',featuretrailer'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATURETRAILER'][0]['VALUE']);
$f .= ',featurebonustrailers'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREBONUSTRAILERS'][0]['VALUE']);
$f .= ',featuremakingof'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREMAKINGOF'][0]['VALUE']);
$f .= ',featurecommentary'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATURECOMMENTARY'][0]['VALUE']);
$f .= ',featuredeletedscenes'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREDELETEDSCENES'][0]['VALUE']);
$f .= ',featureinterviews'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREINTERVIEWS'][0]['VALUE']);
$f .= ',featureouttakes'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREOUTTAKES'][0]['VALUE']);
$f .= ',featurestoryboardcomparisons'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATURESTORYBOARDCOMPARISONS'][0]['VALUE']);
$f .= ',featurephotogallery'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREPHOTOGALLERY'][0]['VALUE']);
$f .= ',featureproductionnotes'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREPRODUCTIONNOTES'][0]['VALUE']);
$f .= ',featuredvdromcontent'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREDVDROMCONTENT'][0]['VALUE']);
$f .= ',featuregame'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREGAME'][0]['VALUE']);
$f .= ',featuremultiangle'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREMULTIANGLE'][0]['VALUE']);
$f .= ',featuremusicvideos'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREMUSICVIDEOS'][0]['VALUE']);
$f .= ',featurethxcertified'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATURETHXCERTIFIED'][0]['VALUE']);
$f .= ',featureclosedcaptioned'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATURECLOSEDCAPTIONED'][0]['VALUE']);
$f .= ',featuredigitalcopy'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREDIGITALCOPY'][0]['VALUE']);
$f .= ',featurepip'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREPIP'][0]['VALUE']);
$f .= ',featurebdlive'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREBDLIVE'][0]['VALUE']);
$f .= ',featuredbox'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREDBOX'][0]['VALUE']);
$f .= ',featurecinechat'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATURECINECHAT'][0]['VALUE']);
$f .= ',featuremovieiq'; $v .= ',' . TrueFalse($dvd_info['FEATURES'][0]['FEATUREMOVIEIQ'][0]['VALUE']);
$f .= ',featureother'; $v .= ",'" . StringIfThere($dvd_info['FEATURES'][0]['OTHERFEATURES'][0]['VALUE']) . "'";
schema.sql (DVD Profiler 4.0 features added. You'll need to import this file to your MySQL database again.)featuresceneaccess tinyint unsigned default NULL,
featureplayall tinyint unsigned default NULL,
featuretrailer tinyint unsigned default NULL,
featurebonustrailers tinyint unsigned default NULL,
featuremakingof tinyint unsigned default NULL,
featurecommentary tinyint unsigned default NULL,
featuredeletedscenes tinyint unsigned default NULL,
featureinterviews tinyint unsigned default NULL,
featureouttakes tinyint unsigned default NULL,
featurestoryboardcomparisons tinyint unsigned default NULL,
featurephotogallery tinyint unsigned default NULL,
featureproductionnotes tinyint unsigned default NULL,
featuredvdromcontent tinyint unsigned default NULL,
featuregame tinyint unsigned default NULL,
featuremultiangle tinyint unsigned default NULL,
featuremusicvideos tinyint unsigned default NULL,
featurethxcertified tinyint unsigned default NULL,
featureclosedcaptioned tinyint unsigned default NULL,
featuredigitalcopy tinyint unsigned default NULL,
featurepip tinyint unsigned default NULL,
featurebdlive tinyint unsigned default NULL,
featuredbox tinyint unsigned default NULL,
featurecinechat tinyint unsigned default NULL,
featuremovieiq tinyint unsigned default NULL,
featureother varchar(255) default NULL,