Location: PHPKode > scripts > MyVideoBlog LITE - Automatic Wordpress Video Blogs! > myvideoblog-lite-automatic-wordpress-video-blogs/myvideoblog/mvb_settings.php
<?php
require_once(ABSPATH . 'wp-content/plugins/myvideoblog/mvb_functions.php');

$table_name = $wpdb->prefix . "myvideoblog";
$server_url = $_SERVER['REQUEST_URI'];
$server_name = $_SERVER['SERVER_NAME']; 
$url_back = "http://$server_name$server_url";
$cleanub = strstr($url_back, "&");
$url_back = str_replace($cleanub, "", $url_back);
$tv = $_REQUEST['tv'];
$tf = $_REQUEST['tf'];
$siteurl = get_option('siteurl');
?>
<div class=wrap>
<table width="100%"><tr><td>
<a href="http://www.phpmyvideoblog.com" target="_blank" title="PHPMyVideoBlog.com"><img src="<?php echo $siteurl?>/wp-content/plugins/myvideoblog/includes/mvb.gif" border="0" alt="PHPMyVideoBlog.com"></a>
</td><td>
[<a href="admin.php?page=myvideoblog/mvb_main.php">My Feeds</a>]
[<a href="admin.php?page=MVB_Add_New_Feed">Add New Feed</a>]
[<a href="admin.php?page=MVB_Settings">MVB Settings</a>]
[<a href="admin.php?page=MVB_Auto-Updates_Settings">Auto-Updates Settings</a>]
</td></tr></table>

<?php
if($_REQUEST['action'] == "rebuild") {

$myconfigs = $wpdb->get_row("SELECT * FROM ".$table_prefix."mvbconfig WHERE tid = '1'");
$mytemplate = $myconfigs->posttemplate;
$mytemplate = stripslashes($mytemplate);
$removeurls = $myconfigs->removeurls;
$copyimages = $myconfigs->copyimages;
$descsize = $myconfigs->descsize;
$imglib = $myconfigs->imglib;
$pwsize = $myconfigs->pwsize;
$phsize = $myconfigs->phsize;
$utf8_active = $myconfigs->utf8_active;
$customfield_thumb = $myconfigs->customfield_thumb;
$customfield_desc = $myconfigs->customfield_desc;
$customfield_vid = $myconfigs->customfield_vid;
$customfield_vidsource = $myconfigs->customfield_vidsource;
$jwplayer = $myconfigs->jwplayer;
$customfield_vidembed = $myconfigs->customfield_vidembed;

$step = $_REQUEST['step'];
$getposts = $wpdb->get_results("SELECT ID, post_content, post_title, guid FROM ".$wpdb->posts." WHERE post_type = 'post' ORDER BY ID DESC");
$total_results = $wpdb->num_rows;
$per_step = 500;
$steps = ceil($total_results / $per_step);
if(!isset($step)) { $step = 0; }
$start = $step * $per_step;
$getposts = $wpdb->get_results("SELECT ID, post_content, post_title, guid FROM ".$wpdb->posts." WHERE post_type = 'post' ORDER BY ID DESC LIMIT ".$start.", ".$per_step."");

foreach ($getposts as $postinfo) {
$the_post_id = $postinfo->ID;
$the_post_content = $postinfo->post_content;
$the_post_title = $postinfo->post_title;
$the_post_guid = $postinfo->guid;
 
//$pos_inicial = strpos($the_post_content, "<!--videoplayer-->") + 1;
//$pos_final = strpos($the_post_content, "<!--endvideoplayer-->");
//$oldembed = substr($the_post_content, $pos_inicial, ($pos_final - $pos_inicial));

$getinfo = get_post_meta($the_post_id, mvb_vid_code, true);
$vidimage = get_post_meta($the_post_id, $customfield_thumb, true);
$viddesc = get_post_meta($the_post_id, $customfield_desc, true);
$vidsource = get_post_meta($the_post_id, $customfield_vidsource, true);
$vidurl = get_post_meta($the_post_id, $customfield_vid, true);

if (!$getinfo) {
continue;
}

if( strstr($getinfo,"|")){
$vidinfo  = explode('|', $getinfo);
$videohost = $vidinfo[0];
$vidcod = $vidinfo[1];
$vidcod = str_replace("http://www.youtube.com/v/", "", $vidcod);
$vidcod = str_replace("http://www.dailymotion.com/swf/video/", "", $vidcod);
$vidcod = str_replace("http://www.dailymotion.com/swf/", "", $vidcod);
$vidcod = str_replace("http://www.metacafe.com/fplayer/", "", $vidcod);
$vidcod = str_replace("/video.swf", "", $vidcod);
$vidcod = str_replace("&related=0", "", $vidcod);
$vidcod = str_replace("&f=gdata_videos", "", $vidcod);
$str_after = strstr($vidcod, "?f");
if ($str_after) {$vidcod = str_replace($str_after, "", $vidcod);}
update_post_meta($the_post_id, mvb_vid_code, $vidcod);
$videohost = str_replace("gdata.", '', $videohost);
$videohost = str_replace("en.", '', $videohost);
$videohost = str_replace("rss.", '', $videohost);
add_post_meta($the_post_id, $customfield_vidsource, $videohost, true);
}else{
$videohost = $vidsource;
$vidcod = $getinfo;
}

require(ABSPATH . 'wp-content/plugins/myvideoblog/mvb_showembed.php');
$new_embed = "<!--videoplayer-->".$embedcode."<!--endvideoplayer-->";

$usetemplate = $mytemplate;
$usetemplate = str_replace("[videoimage]", $vidimage, $usetemplate);
$usetemplate = str_replace("[videotitle]", $the_post_title, $usetemplate);
$usetemplate = str_replace("[posturl]", $the_post_guid, $usetemplate);
$usetemplate = str_replace("[videodescription]", $viddesc, $usetemplate);
$usetemplate = str_replace("[videourl]", $vidurl, $usetemplate);
$usetemplate = str_replace("[videosource]", $vidsource, $usetemplate);
$usetemplate = str_replace("[hide]", "<!--more-->", $usetemplate);
$usetemplate = str_replace("[videoplayer]", $new_embed, $usetemplate);
$usetemplate = addslashes($usetemplate);
$wpdb->query("UPDATE ".$table_prefix."posts SET post_content = '$usetemplate' WHERE ID = '$the_post_id'");

if($customfield_vidembed) {
update_post_meta($the_post_id, $customfield_vidembed, $new_embed);
}

}

echo "<p align=\"left\"><h2>Rebuild - Results</h2></p>";
echo "Rebuilding <b>".$per_step."</b> posts per step.<br>";
echo "Total posts in your blog: <b>".$total_results."</b> </font> <font size=1>(Only Posts created by MVB will be affected.)</font><br>";
if($step < ($steps - 1)) {
echo "Posts rebuilded so far: <b>".$start."</b></font><br>";


   $more = $step + 1;
   $urlself = "admin.php?page=MVB_Settings&action=rebuild&step=".$more."";
   echo "<a href=\"".$urlself."\">Next Step</a><br>";
} else {
echo "<font color=\"green\"><b>Rebuild completed!</b></font><br>";
}

} else if($_REQUEST['action'] == "fix_cf") {
$myconfigs = $wpdb->get_row("SELECT * FROM ".$table_prefix."mvbconfig WHERE tid = '1'");
$mytemplate = $myconfigs->posttemplate;
$mytemplate = stripslashes($mytemplate);
$pwsize = $myconfigs->pwsize;
$phsize = $myconfigs->phsize;
$customfield_thumb = $myconfigs->customfield_thumb;
$customfield_desc = $myconfigs->customfield_desc;
$customfield_vid = $myconfigs->customfield_vid;
$customfield_vidsource = $myconfigs->customfield_vidsource;
$jwplayer = $myconfigs->jwplayer;
$customfield_vidembed = $myconfigs->customfield_vidembed;
$theme_setting = $myconfigs->theme_setting;

$wpdb->query("UPDATE ".$wpdb->postmeta." SET meta_key = '".$customfield_thumb."' WHERE meta_key = 'mvb_thumb_url' OR meta_key = 'Thumbnail' OR meta_key = 'image' OR meta_key = '_p75_thumbnail'");
$wpdb->query("UPDATE ".$wpdb->postmeta." SET meta_key = '".$customfield_vidembed."' WHERE meta_key = 'Video' OR meta_key = 'embed' OR meta_key = '_videoembed_manual'");

if($theme_setting == "press75") {
$getpostid = $wpdb->get_results("SELECT post_id FROM ".$wpdb->postmeta." WHERE meta_key = '_p75_thumbnail' ORDER BY post_id");
foreach ($getpostid as $meta_items) {
$the_post_id = $meta_items->post_id;
$checkembed = get_post_meta($the_post_id, _videoembed_manual, true);
if(!$checkembed){
$vidcod = get_post_meta($the_post_id, mvb_vid_code, true);
$videohost = get_post_meta($the_post_id, mvb_vid_source, true);
require(ABSPATH . 'wp-content/plugins/myvideoblog/mvb_showembed.php');
$new_embed = "<!--videoplayer-->".$embedcode."<!--endvideoplayer-->";
add_post_meta($the_post_id, '_videoembed_manual', $new_embed, true);
}
}
} else if($theme_setting == "elegantthemes") {
$getpostid = $wpdb->get_results("SELECT post_id FROM ".$wpdb->postmeta." WHERE meta_key = 'Thumbnail' ORDER BY post_id");
foreach ($getpostid as $meta_items) {
$the_post_id = $meta_items->post_id;
$checkembed = get_post_meta($the_post_id, Video, true);
if(!$checkembed){
$vidcod = get_post_meta($the_post_id, mvb_vid_code, true);
$videohost = get_post_meta($the_post_id, mvb_vid_source, true);
require(ABSPATH . 'wp-content/plugins/myvideoblog/mvb_showembed.php');
$new_embed = "<!--videoplayer-->".$embedcode."<!--endvideoplayer-->";
add_post_meta($the_post_id, 'Video', $new_embed, true);
}
}
} else if($theme_setting == "woothemes") {
$getpostid = $wpdb->get_results("SELECT post_id FROM ".$wpdb->postmeta." WHERE meta_key = 'image' ORDER BY post_id");
foreach ($getpostid as $meta_items) {
$the_post_id = $meta_items->post_id;
$checkembed = get_post_meta($the_post_id, embed, true);
if(!$checkembed){
$vidcod = get_post_meta($the_post_id, mvb_vid_code, true);
$videohost = get_post_meta($the_post_id, mvb_vid_source, true);
require(ABSPATH . 'wp-content/plugins/myvideoblog/mvb_showembed.php');
$new_embed = "<!--videoplayer-->".$embedcode."<!--endvideoplayer-->";
add_post_meta($the_post_id, 'Video', $new_embed, true);
}
}
}
echo "<br><font color=\"green\">Custom fields were fixed!</font><br>";
} else if($_REQUEST['action'] == "savesettings") {
global $wpdb;
$table_name = $wpdb->prefix . "mvbconfig";
$newpt = $_POST['posttemplate'];
$savept = addslashes($newpt);
$copyimg = $_POST['copyimages'];
$rurls = $_POST['removeurls'];
$descsize = $_POST['descsize'];
$imglib = $_POST['imglib'];
$pwsize = $_POST['pwsize'];
$phsize = $_POST['phsize'];
$utf8_active = $_POST['utf8_active'];
$customfield_thumb = $_POST['customfield_thumb'];
$customfield_desc = $_POST['customfield_desc'];
$customfield_vid = $_POST['customfield_vid'];
$customfield_vidsource = $_POST['customfield_vidsource'];
$thumbs_dir = $_POST['thumbs_dir'];
$theme_setting = $_POST['theme_setting'];
$jwplayer = $_POST['jwplayer'];
$customfield_vidembed = $_POST['customfield_vidembed'];

$myconfigs = $wpdb->get_row("SELECT customfield_thumb, customfield_vidembed, thumbs_dir FROM ".$table_name." WHERE tid = '1'");
$old_customfield_thumb = $myconfigs->customfield_thumb;
$old_customfield_vidembed = $myconfigs->customfield_vidembed;
$old_thumbs_dir = $myconfigs->thumbs_dir;
if ($old_customfield_thumb != $customfield_thumb) {
$wpdb->query("UPDATE ".$wpdb->postmeta." SET meta_key = '".$customfield_thumb."' WHERE meta_key = '".$old_customfield_thumb."'");
}
if (($old_customfield_vidembed) AND ($old_customfield_vidembed != $customfield_vidembed)) {
$wpdb->query("UPDATE ".$wpdb->postmeta." SET meta_key = '".$customfield_vidembed."' WHERE meta_key = '".$old_customfield_vidembed."'");
}
if ($old_thumbs_dir != $thumbs_dir) {
$old_thumb_path = "".ABSPATH."wp-content/".$old_thumbs_dir."";
$thumb_path = "".ABSPATH."wp-content/".$thumbs_dir."";
if( strstr($old_thumb_path,"\\")){
$old_thumb_path = str_replace("/", "\\", $old_thumb_path);
}
if( strstr($thumb_path,"\\")){
$thumb_path = str_replace("/", "\\", $thumb_path);
}
if(!rename($old_thumb_path, $thumb_path)) {
echo "<br><font color=red><b>MVB could not rename the directory of thumbnails. Please rename it manually.</b></font><br><br>";
}
}

$wpdb->query("UPDATE ".$table_name." SET posttemplate = '$savept', removeurls = '$rurls', copyimages = '$copyimg', descsize = '$descsize', imglib = '$imglib', pwsize = '$pwsize', phsize = '$phsize', utf8_active = '$utf8_active', customfield_thumb = '$customfield_thumb', customfield_desc = '$customfield_desc', customfield_vid = '$customfield_vid', customfield_vidsource = '$customfield_vidsource', thumbs_dir = '$thumbs_dir', theme_setting = '$theme_setting', jwplayer = '$jwplayer', customfield_vidembed = '$customfield_vidembed' WHERE tid = '1'");
echo "<br><font color=green>New MVB Settings saved!</font><br>";

}

echo "<h2>MVB Settings</h2>";
$table_config = $wpdb->prefix . "mvbconfig";
$myconfigs = $wpdb->get_results("SELECT * FROM $table_config WHERE tid = '1'");
foreach ($myconfigs as $mvbsettings) {
$showtemplate = $mvbsettings->posttemplate;
$showtemplate = stripslashes($showtemplate);
$copyimages = $mvbsettings->copyimages;
$removeurls = $mvbsettings->removeurls;
$descsize = $mvbsettings->descsize;
$imglib = $mvbsettings->imglib;
$pwsize = $mvbsettings->pwsize;
$phsize = $mvbsettings->phsize;
$utf8_active = $mvbsettings->utf8_active;
$customfield_thumb = $mvbsettings->customfield_thumb;
$customfield_desc = $mvbsettings->customfield_desc;
$customfield_vid = $mvbsettings->customfield_vid;
$customfield_vidsource = $mvbsettings->customfield_vidsource;
$thumbs_dir = $mvbsettings->thumbs_dir;
$theme_setting = $mvbsettings->theme_setting;
$jwplayer = $mvbsettings->jwplayer;
$customfield_vidembed = $mvbsettings->customfield_vidembed;
}
if($copyimages == "yes") {$checkedyes = "checked";} else {$checkedyes = "";}
if($copyimages == "no") {$checkedno = "checked";} else {$checkedno = "";}
if($removeurls == "yes") {$checkedyes2 = "checked";} else {$checkedyes2 = "";}
if($removeurls == "no") {$checkedno2 = "checked";} else {$checkedno2 = "";}
if($imglib == "yes") {$checkedyes3 = "checked";} else {$checkedyes3 = "";}
if($imglib == "no") {$checkedno3 = "checked";} else {$checkedno3 = "";}
if($utf8_active == "yes") {$checkedyes4 = "checked";} else {$checkedyes4 = "";}
if($utf8_active == "no") {$checkedno4 = "checked";} else {$checkedno4 = "";}
if($theme_setting == "default") {$checked_default = "checked";} else {$checked_default = "";}
if($theme_setting == "press75") {$checked_press75 = "checked";} else {$checked_75 = "";}
if($theme_setting == "elegantthemes") {$checked_elegant = "checked";} else {$checked_elegant = "";}
if($theme_setting == "mvbgallery") {$checked_mvbgallery = "checked";} else {$checked_mvbgallery = "";}
if($theme_setting == "woothemes") {$checked_woothemes = "checked";} else {$checked_woothemes = "";}
if($jwplayer == "yes") {$checkedyes_jwp = "checked";} else {$checkedyes_jwp = "";}
if($jwplayer == "no") {$checkedno_jwp = "checked";} else {$checkedno_jwp = "";}
?>
<br>
<table class="widefat" width="100%" cellspacing="1">
<tr><td>
<form action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method="post" name="myform">
<input type="hidden" name="action" value="savesettings">
<b>Predefined settings for the themes:</b> &nbsp;&nbsp;<input value="default" type="radio" name="theme_setting" onClick="cf_mvb();" <?php echo $checked_default;?>>Default/Others &nbsp;&nbsp;<input value="mvbgallery" type="radio" name="theme_setting" onClick="cf_mvbgallery();" <?php echo $checked_mvbgallery;?>><a href="http://www.phpmyvideoblog.com/forum/thread-235.html" target="_blank"><b>MVB Gallery Theme</b></a> &nbsp;&nbsp;<input value="press75" type="radio" name="theme_setting" onClick="cf_press75();" <?php echo $checked_press75;?>><a href="http://www.phpmyvideoblog.com/press75" target="_blank"><b>Press75</b></a> &nbsp;<input value="elegantthemes" type="radio" name="theme_setting" onClick="cf_elegantthemes();" <?php echo $checked_elegant;?>><a href="http://www.phpmyvideoblog.com/elegant-themes" target="_blank"><b>ElegantThemes</b></a> &nbsp;<input value="woothemes" type="radio" name="theme_setting" onClick="cf_woothemes();" <?php echo $checked_woothemes;?>><a href="http://www.phpmyvideoblog.com/woothemes" target="_blank"><b>WooThemes</b></a><br><br>
<b>Copy thumbnails?</b> <input value="yes" type="radio" name="copyimages" <?php echo $checkedyes;?> disabled>Yes
<input value="no" type="radio" name="copyimages" <?php echo $checkedno;?> disabled>No  &nbsp;<b>*</b>Not available in Lite Version. Buy Pro Version <a href="http://www.phpmyvideoblog.com" target="_blank">here</a>.
<br>(MVB will try to copy the image of each video to your server.)
<br><br>
<b>Thumbnails directory:</b> /wp-content/<input value="<?php echo $thumbs_dir;?>" size="25" type="text" name="thumbs_dir" id="thumbs_dir">
<br><br>
<b>Add images to Media Library?</b> <input value="yes" type="radio" name="imglib" <?php echo $checkedyes3;?> disabled>Yes
<input value="no" type="radio" name="imglib" <?php echo $checkedno3;?> disabled>No  &nbsp;<b>*</b>Not available in Lite Version. Buy Pro Version <a href="http://www.phpmyvideoblog.com" target="_blank">here</a>.
<br>(Ignore if you have selected to not copy images.)
<br><br>
<input value="no" type="hidden" name="utf8_active">
<b>Remove URLs?</b> <input value="yes" type="radio" name="removeurls" <?php echo $checkedyes2;?>>Yes
<input value="no" type="radio" name="removeurls" <?php echo $checkedno2;?>>No
<br>(MVB will try to remove any url from video description.)
<br><br>
<b>Description Size:</b> <input value="<?php echo $descsize;?>" size="3" type="text" name="descsize" maxlength="3"> Characters<br>
(0 = Unlimited - Not Recommended.)
<br><br>
<b>Use <a href="http://www.longtailvideo.com/players/jw-flv-player" target="_blank">JW Player</a> to play YouTube videos?</b> <input value="yes" type="radio" name="jwplayer" <?php echo $checkedyes_jwp;?>>Yes
<input value="no" type="radio" name="jwplayer" <?php echo $checkedno_jwp;?>>No
<br>(Download the JW Player and upload the files player.swf, yt.swf and swfobject.js to the main directory of your wordpress.)
<br><br>
<b>Player Size:</b> Width: <input value="<?php echo $pwsize;?>" size="3" type="text" name="pwsize" maxlength="3"> Height: <input value="<?php echo $phsize;?>" size="3" type="text" name="phsize" maxlength="3">
<br><br>
<b>MVB Post Template:</b><br>
<textarea name="posttemplate" id="posttemplate" cols="70" rows="12" align="left">
<?php
echo "$showtemplate";
?>
</textarea>
<br>
<font color="#808080"><b>[posturl]</b></font> The Post URL.<br>
<font color="#808080"><b>[videoimage]</b></font> Thumbnail URL.<br>
<font color="#808080"><b>[videotitle]</b></font> Video/Post Title.<br>
<font color="#808080"><b>[videodescription]</b></font> Video Description.<br>
<font color="#808080"><b>[videourl]</b></font> Original video URL from the source.(<i>Example: http://www.youtube.com/watch?v=NsIh0lycJdI</i>)<br>
<font color="#808080"><b>[videosource]</b></font> Video Source. (<i>Example: youtube.com</i>)<br>
<font color="#808080"><b>[videoplayer]</b></font> The player that shows the video.<br>
<font color="#808080"><b>[hide]</b></font> This will hide everything after this in the index page and index of each category.<br>[hide] = &lt;!--more--&gt;<br>
<font color="red"><b>*</b></font> If you change the template, the OLD videos will not be changed!<br>
<font color="red"><b>*</b></font> Always make some tests before publishing videos with a different template!
<br><br>
<h3>Tags for Themes:</h3>
You can create the "post template" directly in your wordpress theme. (<u>Advanced Users</u>)<br>
If your theme uses a different custom field, you can customize them here:<br><br>
<b>Custom Fields</b><br>
<b>Thumbnail:</b> <input value="<?php echo $customfield_thumb;?>" size="25" type="text" name="customfield_thumb" id="customfield_thumb"><br>
<b>Description:</b> <input value="<?php echo $customfield_desc;?>" size="25" type="text" name="customfield_desc" id="customfield_desc"><br>
<b>Video Source:</b> <input value="<?php echo $customfield_vidsource;?>" size="25" type="text" name="customfield_vidsource" id="customfield_vidsource"><br>
<b>Video URL:</b> <input value="<?php echo $customfield_vid;?>" size="25" type="text" name="customfield_vid" id="customfield_vid"><br>
<b>Embed code:</b> <input value="<?php echo $customfield_vidembed;?>" size="25" type="text" name="customfield_vidembed" id="customfield_vidembed"><br>
<br>
MVB tags for wordpress themes:<br>
<div id="thumb_saved" style="display:block;">
<font color="#808080"><b>&lt;?php echo post_custom('<?php echo $customfield_thumb;?>'); ?&gt;</b></font> Thumbnail URL.<br>
</div>
<div id="thumb_default" style="display:none;">
<font color="#808080"><b>&lt;?php echo post_custom('mvb_thumb_url'); ?&gt;</b></font> Thumbnail URL.<br>
</div>
<div id="thumb_p75" style="display:none;">
<font color="#808080"><b>&lt;?php echo post_custom('_p75_thumbnail'); ?&gt;</b></font> Thumbnail URL.<br>
</div>
<div id="thumb_elegant" style="display:none;">
<font color="#808080"><b>&lt;?php echo post_custom('Thumbnail'); ?&gt;</b></font> Thumbnail URL.<br>
</div>
<div id="thumb_mvbgallery" style="display:none;">
<font color="#808080"><b>&lt;?php echo post_custom('mvb_thumb_url'); ?&gt;</b></font> Thumbnail URL.<br>
</div>
<div id="thumb_woothemes" style="display:none;">
<font color="#808080"><b>&lt;?php echo post_custom('image'); ?&gt;</b></font> Thumbnail URL.<br>
</div>
<font color="#808080"><b>&lt;?php echo post_custom('<?php echo $customfield_desc;?>'); ?&gt;</b></font> Video Description.<br>
<font color="#808080"><b>&lt;?php echo post_custom('<?php echo $customfield_vidsource;?>'); ?&gt;</b></font> Video Source. (<i>Example: youtube.com</i>)<br>
<font color="#808080"><b>&lt;?php echo post_custom('<?php echo $customfield_vid;?>'); ?&gt;</b></font> Original video URL from the source.(<i>Example: http://www.youtube.com/watch?v=NsIh0lycJdI</i>)<br>
<font color="#808080"><b>&lt;?php mvb_embed_code('the_ID()', 430, 350); ?&gt;</b></font> The embed code that shows the video. You can change the player size:<br>
430 = Width and 350 = Height<br><br>
Default Wordpress tags:<br>
<font color="#808080"><b>&lt;?php the_title(); ?&gt;</b></font> Video/Post Title.<br>
<font color="#808080"><b>&lt;?php the_permalink(); ?&gt;</b></font> The Post URL.<br>
<font color="#808080"><b>&lt;?php the_content(); ?&gt;</b></font> <b>This tag shows the MVB Post Template!</b>
<br><br>
<input type="submit" name="submit" class="button" value="Save MVB Settings">
</form>
</td></tr></table>
<h2>Rebuild Posts:</h2>
<table class="widefat" width="100%" cellspacing="1">
<tr><td>
<form action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method="post" name="rebuild">
<input type="hidden" name="action" value="rebuild">
If you changed the size of video or post template, you can rebuild the old posts.<br>
This will only change posts created with MVB 2.X. or MVB 3.X<br>
<font color="red">Always make a backup of the database before using this tool!</font><br><br>
<input type="submit" name="submit" class="button" value="Rebuild Posts">
</form>
</td></tr></table>
<h2>Rebuild custom fields:</h2>
<table class="widefat" width="100%" cellspacing="1">
<tr><td>
<form action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method="post" name="fix_cf">
<input type="hidden" name="action" value="fix_cf">
If you changed the theme of your blog, this tool allows you to rename the custom fields of thumbnails and embed code used in the old posts.<br>
Example: If your blog already had some videos with custom fields for Press75 and you want to change to a theme from ElegantThemes we need to change the custom fieds to work properly.<br>
<b>The custom fields of the thumbnails used in old posts will be updated to the custom fields saved in configuration above!</b><br>
<font color="red">Always make a backup of the database before using this tool!</font><br><br>
<input type="submit" name="submit" class="button" value="Fix now!">
</form>
</td></tr></table>
<?php
MyVideoBlog_showfooter();
?>
Return current item: MyVideoBlog LITE - Automatic Wordpress Video Blogs!