Help"; return $txt.$help; } public function getName() { return "CustomizeAdvanced"; } public function getUUID() { return "55a4fa56-8a30-48d4-a0fb-8aa6b3f69033"; } public function getPluginVersion() { return "1.0"; } public function getEmptyDataObject() { $obj = new stdClass(); $obj->encoderNetwork = "https://network.youphptube.com/"; $obj->useEncoderNetworkRecomendation = false; $obj->doNotShowUploadMP4Button = true; $obj->doNotShowImportMP4Button = false; $obj->doNotShowImportLocalVideosButton = false; $obj->doNotShowEncoderButton = false; $obj->doNotShowEmbedButton = false; $obj->doNotShowEncoderResolutionLow = false; $obj->doNotShowEncoderResolutionSD = false; $obj->doNotShowEncoderResolutionHD = false; $obj->doNotShowLeftMenuAudioAndVideoButtons = false; $obj->disableNativeSignUp = false; $obj->disableNativeSignIn = false; $obj->disablePersonalInfo = true; $obj->doNotShowWebsiteOnContactForm = false; $obj->newUsersCanStream = false; $obj->doNotIndentifyByEmail = false; $obj->doNotIndentifyByName = false; $obj->doNotIndentifyByUserName = false; $obj->doNotUseXsendFile = false; $obj->makeVideosInactiveAfterEncode = false; $obj->usePermalinks = false; $obj->showAdsenseBannerOnTop = false; $obj->showAdsenseBannerOnLeft = true; $obj->disableAnimatedGif = false; $obj->unverifiedEmailsCanNOTLogin = false; $obj->removeBrowserChannelLinkFromMenu = false; $obj->uploadButtonDropdownIcon = "fas fa-video"; $obj->uploadButtonDropdownText = ""; $obj->EnableWavesurfer = true; $obj->EnableMinifyJS = false; $obj->disableShareAndPlaylist = false; $obj->commentsMaxLength = 200; $obj->disableYoutubePlayerIntegration = false; $obj->utf8Encode = false; $obj->utf8Decode = false; $obj->embedBackgroundColor = "white"; $obj->userMustBeLoggedIn = false; $obj->onlyVerifiedEmailCanUpload= false; $obj->sendVerificationMailAutomaic=false; $o = new stdClass(); $o->type = "textarea"; $o->value = ""; $obj->menuBarHTMLCode = $o; $o->type = "textarea"; $o->value = ""; $obj->underMenuBarHTMLCode = $o; $obj->signInOnRight= true; $obj->signInOnLeft= true; $obj->forceCategory= false; $obj->autoPlayAjax= false; $plugins = Plugin::getAllEnabled(); //import external plugins configuration options foreach ($plugins as $value) { $p = YouPHPTubePlugin::loadPlugin($value['dirName']); if (is_object($p)) { $foreginObjects=$p->getCustomizeAdvancedOptions(); if($foreginObjects) { foreach($foreginObjects as $optionName => $defaultValue) $obj->{$optionName}=$defaultValue; } } } $obj->disableHelpLeftMenu= false; $obj->disableAboutLeftMenu= false; $obj->disableContactLeftMenu= false; $obj->disableNavbar= false; $obj->userCanNotChangeCategory = false; return $obj; } public function getHelp(){ if(User::isAdmin()){ return "

CustomizeAdvanced (admin)

".$this->getDescription()."

EnableWavesurferEnables the visualisation for audio. This will always download full audio first, so with big audio-files, you might better disable it.
commentsMaxLengthMaximum lenght for comments in videos
disableYoutubePlayerIntegration Disables the integrating of youtube-videos and just embed them.
EnableMinifyJSMinify your JS. Clear videos/cache after changing this option.
"; } return ""; } public function getTags() { return array('free', 'customization', 'buttons', 'resolutions'); } }