This forum is obsolete

This support forum has been replaced by a news version. You can browse old posts in this forum, but please post your questions to the new forum by clicking on "Support" in the top level menu.

Support Forum
Subject: ENH: Adding the Video Embed to the Active Social Journal
Prev Next
You are not authorized to post a reply.

Page 1 of 212 > >>
Author Messages
Steven Webster
Posts:92
Diamond Member


04/24/2011 11:03 AM  
I'm working on a few journal templates for the UVG to Active Social integration today and ran into what would be a very nice improvement for this feature.

This update would allow you to display the video itself withing the journal. (Just like facebook)

Currently, the UVG -> AS integration passes the title, description and link of the video through to the summary. If we could get Pengsten to either:

A. Append the embed database value from the UVG_Video.dbo.EmbedCode table/column onto the end of the description (currently passed into the journal through the API)

B. Pass the just UVG_Video.dbo.EmbedCode value into the ShortText field in the API. This would be preferred since it would allow admins more control over the journal template.

Not sure if this screenshot will come through:
<img src="http://dnnosphere.com/Portals/0/activeforums_Attach/UVG_AS.jpg">

I started a thread on dnnOsphere as well to discuss options and I have a screenshot posted there as an example:

http://dnnosphere.com/Community/Forums/dotnetnuke/third-party-modules/ultra-video-gallery-include-embed-value-in-active-social-summary-value/

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Pengtsen R
Posts:13551


04/28/2011 8:09 AM  
I'm to glad to change it in this way, but I don't know exactly what to do.

Current we use the AddProfileItem method offered by active jounral, which paramter can be used to pass video embed code?

Pengtsen R
http://www.bizmodules.net
Steven Webster
Posts:92
Diamond Member


04/28/2011 8:27 AM  
Pengsten, thanks for considering this update.

Since you're using the journal.AddProfileItem method I think you could either:

1. Use the ShortText property for the video embed code (this would keep it seperate from other text)
2. If you're not using the FullText property now then insert the embed code there.
3. Or, if you are using FullText now append the embed code into the FullText property.

We can then display this on the other end with a custom journal template. I'll be more than happy to come up with a journal template for this to display correctly in the journal and share with the community here.

Also, more than happy to test.

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Jeff Blanks
Posts:68
Golden Member

04/28/2011 9:07 PM  
Could you please also consider it for UMG videos? Would be a great enhancement!

Cheers! Jeff
NortheastOK.com | Twitter:@northeastok @jeffblanks
Pengtsen R
Posts:13551


05/05/2011 3:06 AM  
will consider it if it's proved to be successful.

Steven, so the only change I need to do is to pass video embed code in the 6th parameter(ByVal ShortText As String), is that true?

Pengtsen R
http://www.bizmodules.net
Steven Webster
Posts:92
Diamond Member


05/05/2011 7:31 AM  
I think so. Let me run a test or two to be absolutely sure the shortext field will work. I'll post some code and a template that I know will work.

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Pengtsen R
Posts:13551


05/09/2011 1:03 AM  
sure, if that is the only change I'll be glad to do so.

Pengtsen R
http://www.bizmodules.net
Steven Webster
Posts:92
Diamond Member


05/09/2011 6:03 AM  
Yeah, don't do anything yet...In my testing I've discovered that the API runs everything through the DNN XSS filter...which will strip out the <embed> tags.

I've made Will M @ DNN/Active Modules aware of this issue and asked for an additional flag (FilterXSS bool) so it can be turned off.

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Pengtsen R
Posts:13551


05/12/2011 10:17 AM  
I made this change, please test it once you get the notification that an minor upgrade for UVG is released.

thanks.

Pengtsen R
http://www.bizmodules.net
Marc Huijbregts
Posts:181
Diamond Member

05/19/2011 3:48 PM  
Hi Pengtsen,

The AS 1.9.3 release has been made available. Could you please include the changes in a new version as suggested by Steven?

Thanks in advance.

Regards,
Marc
Steven Webster
Posts:92
Diamond Member


05/20/2011 6:07 AM  
[quote]Posted By Pengtsen R on 05/12/2011 10:17 AM

I made this change, please test it once you get the notification that an minor upgrade for UVG is released.

thanks.[/quote]

Pengsten,
One more change required to make this work. AS was using DNN's XSS filter the journal API which was stripping out the embed code before committing it to the journal.

I got DNN/Active Modules to add in a new param in the API (in version 1.9.3) that let's us turn this off.

Here is a demo of what happens: http://dnnosphere.com/videos/player/videoid/12/posting-rich-media-to-active-social-journal-using-api

So here is what needs to happen:

1. Check for AS version 1.9.3
2. Pass "embed code" into Long Text property in API
3. Add "false" as last parameter of API call.







Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Pengtsen R
Posts:13551


05/21/2011 7:37 PM  
Unfortunately I cannot watch your video. so how to check the AS version? if the version number is 1.8 I should not pass the last False parameter, right? I only pass it when AS 1.9 is found.

Pengtsen R
http://www.bizmodules.net
Steven Webster
Posts:92
Diamond Member


05/21/2011 11:02 PM  
Actually, for 1.9.3 or higher pass in the parameter. Any version before that don't pass it. Can you see YouTube videos? I posted it there too: http://www.youtube.com/watch?v=iNvXmBi60Ws

Let me know if you would like me to test everything. I have plenty of test systems setup already. Thanks Pengtsen, I think this change will be very popular. I'll also work up a journal template you can share with your customers that makes the video look nice when posted in the AS journal.




Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Pengtsen R
Posts:13551


05/25/2011 6:31 PM  
Due to some reason Youtube is not available to me.

How to check the AS version? so I know whether to pass the last parameter.

thanks.

Pengtsen R
http://www.bizmodules.net
Steven Webster
Posts:92
Diamond Member


05/25/2011 9:23 PM  
This should do it

CREATE PROCEDURE uvg_GetModuleVersion
@ModuleFriendlyName VarChar(500)
AS
SELECT Version
FROM DesktopModules
WHERE FriendlyName = @ModuleFriendlyName

RETURN

GetModuleVersion 'Active Social'

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Pengtsen R
Posts:13551


05/25/2011 10:21 PM  
Is there are more convenient method? this requires me to create some extra procedures in the database.

I tried to read the assembly version number by System.Diagnostics.FileVersionInfo.GetVersionInfo method, it returns 1.0.18.

What version number did you specify in AssemblyInfo of your AS 1.9 project? if it's different I can easily distingush them.

thanks.

Pengtsen R
http://www.bizmodules.net
Steven Webster
Posts:92
Diamond Member


05/26/2011 6:13 AM  
I'm checking with Active Modules on the dll. What about just asking the Admin to choose which version in the Configuration Settings when they setup the integration?

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Pengtsen R
Posts:13551


05/29/2011 10:00 PM  
This will be a possible solution, however, it'll definately be a better idea if we can make it automated.

Pengtsen R
http://www.bizmodules.net
Steven Webster
Posts:92
Diamond Member


05/29/2011 10:22 PM  
I agree. I've asked Will about it.....

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
Steven Webster
Posts:92
Diamond Member


05/30/2011 8:16 AM  
In the absence of an assembly version. What about performing the stored procedure only on UVG config. Then storing the AS version number there....rather than on each video post? (Just trying to think of ways around any dependencies on information coming from from Will as he seems pretty busy since the DNN acquisition).

Steven Webster
dnnOsphere.com, An Independant Community for DNN Users
You are not authorized to post a reply.
Page 1 of 212 > >>

Forums > Ultra Video Gallery > General Questions > ENH: Adding the Video Embed to the Active Social Journal

Copyright © 2005-2013 BizModules Contact us