} if ($countErrors > 0) { $_POST['submit'] = false; } } if (!$_POST['submit']) { $selectAfter = ""; if (count($arrProfileModules) == $pluginPageInfo[0]['sortnum']) { $selectAfter = " selected"; } $selectNoDisplay = ""; if ($pluginPageInfo[0]['sortnum'] == -1) { $selectNoDisplay = " selected"; } $dispNote = ""; $arrYoutubeAPIKeys = array("Client ID" => $ytObj->getClientID(), "Client Secret" => $ytObj->getClientSecret()); foreach ($arrYoutubeAPIKeys as $key => $value) { if ($value == "") { $dispNote .= " <b>·</b> " . $key . "<br>"; } $dispYTAPIKey[$key] = $value; } echo "\n\t\t\t<p align='right' style='margin-bottom: 10px; margin-right: 20px;'>« <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "'>Return to Plugin Manager</a></p>\n\t\t\n\t\t\t<form action='" . $MAIN_ROOT . "plugins/youtube/settings.php' method='post'>\n\t\t\t\t<div class='formDiv'>\n\t\t\t\t\t\n\t\t\t\t"; if ($dispError != "") { echo "\n\t\t\t<div class='errorDiv'>\n\t\t\t<strong>Unable to Youtube Connect settings because the following errors occurred:</strong><br><br>\n\t\t\t{$dispError}\n\t\t\t</div>\n\t\t\t"; } if ($dispNote != "") { echo "\n\t\t\t\t<div class='errorDiv'>\n\t\t\t\t\t<strong><u>NOTE:</u> In order for Youtube Connect to work you must set the following variables.</strong><br><br>\n\t\t\t\t\t" . $dispNote . "\n\t\t\t\t</div>\n\t\t\t"; } echo "\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tYour Youtube Connect plugin settings are listed below. You must set the Client ID and Client Secret in order for the plugin to work properly.\n\t\t\t\t\t<table class='formTable'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='main' colspan='2'>\n\t\t\t\t\t\t\t\t<div class='dottedLine' style='padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t\t<b>Youtube API Settings:</b>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel'>Client ID:</td>\n\t\t\t\t\t\t\t<td class='main'><input type='text' name='clientid' class='textBox' value='" . $dispYTAPIKey['Client ID'] . "'></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel'>Client Secret:</td>\n\t\t\t\t\t\t\t<td class='main'><input type='text' name='clientsecret' class='textBox' value='" . $dispYTAPIKey['Client Secret'] . "'></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='main' colspan='2'><br>\n\t\t\t\t\t\t\t\t<div class='dottedLine' style='padding-bottom: 3px'>\n\t\t\t\t\t\t\t\t\t<b>Profile Display Settings:</b>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel'>Display in Profile:</td>\n\t\t\t\t\t\t\t<td class='main'><select name='profiledisplay' class='textBox'><option value='yes'>Yes</option><option value='no'" . $selectNoDisplay . ">No</option></select></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='formLabel' valign='top'>Display Order:</td>\n\t\t\t\t\t\t\t<td class='main'>\n\t\t\t\t\t\t\t\t<select name='beforeafter' class='textBox'><option value='before'>Before</option><option value='after'" . $selectAfter . ">After</option></select><br>\n\t\t\t\t\t\t\t\t<select name='displayorder' class='textBox'>\n\t\t\t\t\t\t\t\t"; foreach ($arrProfileModules as $key => $module) {