- Posts: 5
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- RSS Feed: Show Item Video not working, blank RSS feed.
RSS Feed: Show Item Video not working, blank RSS feed.
- Josh Wigginton
-
Topic Author
- Offline
- New Member
Less
More
14 years 7 months ago #88943
by Josh Wigginton
RSS Feed: Show Item Video not working, blank RSS feed. was created by Josh Wigginton
Hello:I've tried to add the video to the RSS feed and each time that I do, it causes the feed not to load at all. Has anyone confirmed that this feature is working? I can get everything but the Video to work.When I look at a feed that has video, it just loads a blank page.Anybody else got this working?Thanks,Josh
Please Log in or Create an account to join the conversation.
- Alex Stavrou
-
- Offline
- New Member
Less
More
- Posts: 9
14 years 6 months ago #88944
by Alex Stavrou
Replied by Alex Stavrou on topic RSS Feed: Show Item Video not working, blank RSS feed.
Same problem.
Please Log in or Create an account to join the conversation.
- shazzmere
-
- Offline
- New Member
Less
More
- Posts: 4
14 years 3 months ago #88945
by shazzmere
Replied by shazzmere on topic RSS Feed: Show Item Video not working, blank RSS feed.
Any updates on this?
Its definitely something to do with the code in components/com_k2/models/item.php at line 293.
Anyone able to tackle this?
if($params->get('feedItemVideo') && $item->video){
if (!empty($item->video) && JString::substr($item->video, 0, 1) !== '{') {
$item->description.= '<div class="K2FeedVideo">'.$item->video.'</div>';
}
else {
$params->set('vfolder', 'media/k2/videos');
if(JString::strpos($item->video, 'remote}')){
preg_match("#}(.*?){/#s",$item->video, $matches);
if(!JString::strpos($matches[1], 'http://}'))
$item->video = str_replace($matches[1], JURI::root().$matches[1], $item->video);
}
$dispatcher = &JDispatcher::getInstance();
JPluginHelper::importPlugin ('content');
$item->text=$item->video;
$dispatcher->trigger ( 'onPrepareContent', array (&$item, &$params, $limitstart ) );
$item->description.= '<div class="K2FeedVideo">'.$item->text.'</div>';
}
}
Its definitely something to do with the code in components/com_k2/models/item.php at line 293.
Anyone able to tackle this?
if($params->get('feedItemVideo') && $item->video){
if (!empty($item->video) && JString::substr($item->video, 0, 1) !== '{') {
$item->description.= '<div class="K2FeedVideo">'.$item->video.'</div>';
}
else {
$params->set('vfolder', 'media/k2/videos');
if(JString::strpos($item->video, 'remote}')){
preg_match("#}(.*?){/#s",$item->video, $matches);
if(!JString::strpos($matches[1], 'http://}'))
$item->video = str_replace($matches[1], JURI::root().$matches[1], $item->video);
}
$dispatcher = &JDispatcher::getInstance();
JPluginHelper::importPlugin ('content');
$item->text=$item->video;
$dispatcher->trigger ( 'onPrepareContent', array (&$item, &$params, $limitstart ) );
$item->description.= '<div class="K2FeedVideo">'.$item->text.'</div>';
}
}
Please Log in or Create an account to join the conversation.
- vcantante
-
- Offline
- New Member
Less
More
- Posts: 19
13 years 7 months ago #88946
by vcantante
Replied by vcantante on topic RSS Feed: Show Item Video not working, blank RSS feed.
i need fix this too.
how can i do?
how can i do?
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- RSS Feed: Show Item Video not working, blank RSS feed.