Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMediaMediaEmbed Code. 4.00Embed Code. 4.00
Previous
 
Next
New Post
7/11/2011 7:19 PM
 
Jean-Christophe BARREAU wrote:
and it does the same: just first 250 characters saved in the database.

Can you do me a favor and double-check that the Src field is indeed the correct size?  This query can run in the Host > SQL module, and will get just the information for that column.

SELECT 
   ORDINAL_POSITION
  ,COLUMN_NAME
  ,DATA_TYPE
  ,CHARACTER_MAXIMUM_LENGTH
  ,IS_NULLABLE
  ,COLUMN_DEFAULT
FROM   
  INFORMATION_SCHEMA.COLUMNS 
WHERE   
  TABLE_NAME = N'{objectQualifier}Media' AND COLUMN_NAME = N'Src'
ORDER BY 
  ORDINAL_POSITION ASC; 


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
7/11/2011 7:39 PM
 
Never mind...  I found the issue.  It's clearly a bug and a bad one that I shouldn't have missed.  This is already fixed in the new Media Module version that will soon hit the release tracker.  However, in the meantime, here is an SQL script that will get you up and running with your embed code until then.  

PLEASE NOTE:  Back-up, back-up, back-up and test this code in non-production before running it in production.  You never know what may happen.  :)

Run this code using the Host > SQL module:

IF NOT OBJECT_ID(N'{databaseOwner}[{objectQualifier}AddMedia]') IS NULL
DROP PROCEDURE {databaseOwner}[{objectQualifier}AddMedia];
GO


SET QUOTED_IDENTIFIER ON; 
GO
SET ANSI_NULLS ON; 
GO


CREATE PROCEDURE {databaseOwner}[{objectQualifier}AddMedia] 
@ModuleID INT, @Src NVARCHAR(1000), @Alt NVARCHAR(100), @Width INT, @Height INT, @NavigateUrl NVARCHAR(250), @MediaAlignment INT, @AutoStart BIT, @MediaLoop BIT, @NewWindow BIT, @TrackClicks BIT, @MediaType INT 
AS 
BEGIN 
SET NOCOUNT ON;
INSERT INTO {databaseOwner}[{objectQualifier}Media] ([ModuleID],[Src],[Alt],[Width],[Height],[NavigateUrl],[MediaAlignment],[AutoStart],[MediaLoop],[NewWindow],[TrackClicks],[MediaType]) 
    VALUES (@ModuleId, @Src, @Alt, @Width, @Height, @NavigateUrl, @MediaAlignment, @AutoStart, @MediaLoop, @NewWindow, @TrackClicks, @MediaType);
END
GO


IF NOT OBJECT_ID(N'{databaseOwner}[{objectQualifier}UpdateMedia]') IS NULL
DROP PROCEDURE {databaseOwner}[{objectQualifier}UpdateMedia];
GO


SET QUOTED_IDENTIFIER ON; 
GO
SET ANSI_NULLS ON; 
GO


CREATE PROCEDURE {databaseOwner}[{objectQualifier}UpdateMedia] 
@ModuleID INT, @Src NVARCHAR(1000), @Alt NVARCHAR(100), @Width INT, @Height INT, @NavigateUrl NVARCHAR(250), @MediaAlignment INT, @AutoStart BIT, @MediaLoop BIT, @NewWindow BIT, @TrackClicks BIT, @MediaType INT 
AS 
BEGIN 
SET NOCOUNT ON
UPDATE {databaseOwner}[{objectQualifier}Media] 
    SET [Src] = @Src, 
        [Alt] = @Alt, 
        [Width] = @Width, 
        [Height] = @Height, 
        [NavigateUrl] = @NavigateUrl, 
        [MediaAlignment] = @MediaAlignment, 
        [AutoStart] = @AutoStart, 
        [MediaLoop] = @MediaLoop, 
[NewWindow] = @NewWindow, 
[TrackClicks] = @TrackClicks, 
[MediaType] = @MediaType 
    WHERE [ModuleID] = @ModuleID;
END
GO

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
7/12/2011 2:29 AM
 
Happy it helps. I just tested after aapplying SQL, and it works.
 
New Post
7/12/2011 2:54 AM
 
Outstanding!  Thanks for the update.  :)

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMediaMediaEmbed Code. 4.00Embed Code. 4.00


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out