diff --git a/autoblogs/autoblog.php b/autoblogs/autoblog.php index 97ba062..eb21765 100644 --- a/autoblogs/autoblog.php +++ b/autoblogs/autoblog.php @@ -717,7 +717,7 @@ $css=' * { margin: 0; padding: 0; } #error { position: fixed; top: 0; left: 0; right: 0; padding: 1%; background: #fff; border-bottom: 2px solid red; color: darkred; } '; -if($site_type == 'generic') // custom CSS for generic +if($site_type == 'generic' || $site_type == 'youtube') // custom CSS for generic { $css = $css.'.header h1 a { color: #333;font-size:40pt;text-shadow: #ccc 0px 5px 5px;text-transform:uppercase; } .article .title h2 { margin: 0; color:#333; text-shadow: 1px 1px 1px #fff; } diff --git a/functions.php b/functions.php index ff91c34..d0ec234 100755 --- a/functions.php +++ b/functions.php @@ -184,9 +184,9 @@ function updateType($siteurl) { elseif( strpos( $siteurl, 'shaarli' ) !== FALSE ) { return array('type' => 'shaarli', 'name' => 'shaarli'); } - //elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) { - // return array('type' => 'youtube', 'name' => 'youtube'); - //} + elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) { + return array('type' => 'youtube', 'name' => ''); + } else return array('type' => 'generic', 'name' => ''); } diff --git a/index.php b/index.php index 9f6a96c..53d5e25 100755 --- a/index.php +++ b/index.php @@ -551,7 +551,7 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO $socialaccount = get_title_from_feed($rssurl); } elseif($socialinstance === 'youtube') { - $sitetype = 'generic'; + $sitetype = 'youtube'; $siteurl = 'https://www.youtube.com/user/'.$socialaccount; $rssurl = 'https://gdata.youtube.com/feeds/base/users/'.$socialaccount.'/uploads?alt=atom&orderby=published'; }