diff --git a/upload/source/function/function_feed.php b/upload/source/function/function_feed.php index 4b1e476c66fa049ec8d32178fbd0ed3b9fbbc399..53db1bdf4c0e775d43f1069047b7e636a8c7e877 100644 --- a/upload/source/function/function_feed.php +++ b/upload/source/function/function_feed.php @@ -96,7 +96,17 @@ function mkfeed($feed, $actors=array()) { $replaces[] = $feed['body_data'][$key]; } } - + + if($feed['body_data']['flashvar']){ + $feed['body_data']['player'] = parseflv($feed['body_data']['data'], '500', '373'); + } + if($feed['body_data']['musicvar']){ + $feed['body_data']['player'] = parseaudio($feed['body_data']['data']); + } + if($feed['body_data']['videovar']){ + $feed['body_data']['player'] = parsemedia('x,500,373', $feed['body_data']['data']); + } + $feed['magic_class'] = ''; if(!empty($feed['body_data']['magic_thunder'])) { $feed['magic_class'] = 'magicthunder'; diff --git a/upload/source/function/function_share.php b/upload/source/function/function_share.php index cc7ef8a206214e54e9e3bf5e13ecb002426988bd..eb1edcf798bf19df46956a4cec2dfe210b7b0048 100644 --- a/upload/source/function/function_share.php +++ b/upload/source/function/function_share.php @@ -32,6 +32,9 @@ function mkshare($share) { if($share['body_data']['musicvar']){ $share['body_data']['player'] = parseaudio($share['body_data']['data']); } + if($share['body_data']['videovar']){ + $share['body_data']['player'] = parsemedia('x,500,373',$share['body_data']['data']); + } } $share['body_template'] = str_replace($searchs, $replaces, $share['body_template']);