We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to show updated video title/image in the news feed after edit? | Forum

Dean L
Dean L Jan 19 '13
Not sure if this is a bug so to speak or custom mod.

If you edit a blog then the news feed is updated accordingly. The title changes, and so does the intro text.

However, with a video if you edit the video or title the news feed isn't updated.

I have looked at the .php files and I've tried to add
                   
                     // Newsfeed
            $event = new OW_Event('feed.action', array(
                'pluginKey' => 'video',
                'entityType' => 'video_comments',
                'entityId' => $clip->id,
                'userId' => $clip->userId
            ));

OW::getEventManager()->trigger($event);



To the file ow_plugins > video > controllers > video.php - Under:



if ( $clipService->updateClip($clip) )
                {
                    BOL_TagService::getInstance()->updateEntityTags($clip->id,'video', TagsField::getTags($values['tags']));



This code is present in the add.php file but doesn't work when an update happens.

Any ideas why I can't get this to work?
The Forum post is edited by Dean L Jan 21 '13
Michael I.
Michael I. Jan 24 '13
Dean, thanks for spotting this - we will add this option to the to-do list.
Dean L
Dean L Jan 25 '13
No worries... Do you know why it doesn't work though when I add:

if ( $clipService->updateClip($clip) )
                {
                    BOL_TagService::getInstance()->updateEntityTags($clip->id,'video', TagsField::getTags($values['tags']));

// Newsfeed
            $event = new OW_Event('feed.action', array(
                'pluginKey' => 'video',
                'entityType' => 'video_comments',
                'entityId' => $clip->id,
                'userId' => $clip->userId
            ));

OW::getEventManager()->trigger($event);


To the file ow_plugins > video > controllers > video.php

Am I missing something? This is how the blogs section works.

Thanks.

Michael I.
Michael I. Feb 13 '13
Dean, I cannot tell you why the problem with Newsfeed doesn't get fixed when you're adding some code to the file. We cannot ask our developers to check into your code modifications, sorry.