Coder Social home page Coder Social logo

dnncommunity / dnn.media Goto Github PK

View Code? Open in Web Editor NEW
3.0 7.0 5.0 18.94 MB

A DNN module that makes it simple for content editors to add and manage single media items on the page.

Home Page: https://dnncommunity.github.io/DNN.Media

License: MIT License

C# 88.35% CSS 1.37% ASP.NET 10.28%
dnn dnncms dotnetnuke dnnplatform hacktoberfest media videos images embedding audio

dnn.media's People

Contributors

dependabot[bot] avatar mikems96 avatar valadas avatar willstrohl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnn.media's Issues

Support for DNN 09.01.01

Update the module to work with DNN 09.01.01. This version is the most secure version that also doesn't include the instability in DNN 09.02.00.

Version 05.00.00 Release Tasks

The following tasks need to be done in order to consider the release to be complete:

  • Version number update in project settings
  • Version number update in manifest
  • SqlDataProvider file
  • Copyright year in source files
  • Copyright year in License.txt
  • Create clean up file
  • Update release notes
  • Create Install/Source packages
  • Create Symbols package
  • EVS validation
  • Final developer testing
  • Pull request/merge
  • Add packages to GitHub
  • Update the DNN Forge
  • Announce on DNN Software forums
  • Announce on Facebook, G+, Twitter

Flickr Image Embed Error

Original: WillStrohl/dnnextensions#8

Using the URL below will yield the error message below. It needs to be determined if this is the fault of the module or not.

http://www.flickr.com/photos/willstrohl/5142950551/in/pool-1557000@N22/

Error: Flickr is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: Width ---> System.ArgumentNullException: Value cannot be null. Parameter name: Width at WillStrohl.API.oEmbed.Providers.Flickr.GetPhotoObject(String URL, Int32 Width, Int32 Height) at WillStrohl.API.oEmbed.Wrapper.GetContent(RequestInfo Request) at DotNetNuke.Modules.Media.MediaModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

Parse oEmbed Output

Some of the embed providers have changed the content returned from their oEmbed API. For example, Flickr just returns a URL now. Each of the most popular embeddable websites should be tested and logic applied, as necessary.

  • YouTube
  • Facebook
  • Twitter
  • Flickr
  • Vimeo
  • Hulu

(Add more before working on this)

Remove Telerik References

There is at least one place where Telerik is referenced. We need to remove Telerik for DNN 9.6+ compatibility.

jQuery Exception Viewing Edit Options

Describe the bug

When you view the Edit Options page, there is a jQuery exception logged in the debugger console.

Software Versions

  • DNN: 09.01.01
  • Media Module: 05.00.00 (development branch)

To Reproduce

Steps to reproduce the behavior:

  1. Clean instance of DNN 9.1.1
  2. Create and install a new package from the development branch
  3. Install the module
  4. Add the module to a page
  5. Open the Edit Options view using the actions menu.

Expected behavior

The page loads in the pop-up without exception.

Screenshots

If applicable, add screenshots to help explain your problem.

Error log

Note: Debug DLL's
Please replace the current extension DLL's with the debug DLL's (if these are available with the release) and reproduce the error with the debug DLL's before pasting the error log.

Paste the error log that is related to this issue.

Additional context

There is an exception logged in the debugged console, staging that .live() is not a function. This is likely just because jQuery needs to be loaded as a dependency now.

image

Make images responsive

What version are you using right now?

  • DNN: 9.x.x
  • Media Module: 05.00.00

Is your feature request related to a problem?

When putting an image, although a width and height can be specified, the image is not responsive

Describe the solution you'd like

When the media is an image, there could be a checkbox in the image settings saying "Make image responsive", it should be ticked by default. When that is ticked the code should not use width and height and add the following style="max-width:100%;height:auto;" so that the image can never get larger than the ContentPane.

Additional context

Got this idea from Nina Meiers video at https://www.youtube.com/watch?v=UhWWRZNQwuQ&feature=youtu.be

Linking to YouTube Video

Original: WillStrohl/dnnextensions#7

Get the following error:

Movie is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. File name: 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' at WillStrohl.API.oEmbed.Providers.YouTube.GetVideoObject(String URL, Int32 Width, Int32 Height) at WillStrohl.API.oEmbed.Providers.YouTube.GetVideo(String URL) at WillStrohl.API.oEmbed.Wrapper.GetContent(RequestInfo Request) at DotNetNuke.Modules.Media.MediaModule.Page_Load(Object sender, EventArgs e) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value HKLM\Software\Microsoft\Fusion!EnableLog to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. --- End of inner exception stack trace ---
comments

spook_man wrote Mar 6, 2013 at 6:04 AM

Upgraded to 4.0.3 (we aren't running DNN 7 nor .NET 4).

Now, I put in the URL for the YouTube video and nothing is being displayed. The module is there (when logged in), but nothing is being displayed.

Help.
nukealexs wrote Apr 8, 2013 at 12:08 PM

I can reproduce with latest media module and DNN 07.00.04 (180) following these steps to repro:
http://vimeo.com/34813543

Error:

Error: Media is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at WillStrohl.API.oEmbed.Providers.YouTube.GetVideoObject(String URL, Int32 Width, Int32 Height) at WillStrohl.API.oEmbed.Providers.YouTube.GetVideo(String URL) at DotNetNuke.Modules.Media.MediaModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
The media that was requested was not returned by the remote server. This may be a temporary error, or the media and/or hosting server may no longer be available.
wrote Apr 8, 2013 at 12:21 PM

nukealexs wrote Apr 8, 2013 at 12:42 PM

NB .NET 4.0

Remove Flash Dependencies

There is no Flash in the module, but it assumes that Flash is available, which is no longer true starting in December 2020.

Improve Performance of GetMedia

Original: WillStrohl/dnnextensions#3

please use the following version for better performance:
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'{databaseOwner}[{objectQualifier}GetMedia]') AND OBJECTPROPERTY(id, N'IsPROCEDURE') = 1)
DROP PROCEDURE {databaseOwner}[{objectQualifier}GetMedia];
GO

CREATE PROCEDURE {databaseOwner}[{objectQualifier}GetMedia]
@ModuleID INT
AS
BEGIN
SET NOCOUNT ON;
SELECT m.[ModuleID],
m.[Alt],
m.[Width],
m.[Height],
{databaseOwner}{objectQualifier}FilePath AS Src,
{databaseOwner}{objectQualifier}FilePath AS NavigateUrl,
t.[NewWindow],
t.[TrackClicks],
m.[MediaAlignment],
m.[AutoStart],
m.[MediaLoop],
m.[NewWindow],
m.[TrackClicks],
m.[MediaType],
m.[MediaMessage],
m.[LastUpdatedBy],
m.[LastUpdatedDate]
FROM {databaseOwner}[{objectQualifier}Media] AS m
LEFT JOIN {databaseOwner}[{objectQualifier}UrlTracking] AS t ON m.[NavigateUrl] = t.[Url] AND t.[ModuleId] = @ModuleID
WHERE m.[ModuleId] = @ModuleId;
SET NOCOUNT OFF;
END
GO

Linking to SWF locally on server

Original: WillStrohl/dnnextensions#5

Receiving this error within the module itself:

Error: Communities is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Media.MediaController.GetFileUrl(IFileInfo oFile) at DotNetNuke.Modules.Media.MediaInfo.get_WebFriendlyUrl() at DotNetNuke.Modules.Media.MediaMarkUpUtility.GetFlashMarkUp(MediaInfo Media, ModuleInfo ModuleConfig) at DotNetNuke.Modules.Media.MediaController.DisplayMedia(Int32 moduleId, Int32 tabId, Boolean isEditable, ModuleInfo config, PortalSettings settings) at DotNetNuke.Modules.Media.MediaModule.BindData() at DotNetNuke.Modules.Media.MediaModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

This worked fine until I updated the module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.