The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Widget Macro with SSL Confluence site

Sam Hall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 17, 2011

How can we use Widget Macro on SSL Confluence site without big red mixed content warnings across browser URL bar?

For instance, embedding a youtube video with widget macro always causes mixed content warnings on that page.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Sam Hall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 29, 2012

Update, this is fixed in the latest version (for youtube atleast).

Best solution I've come up with for this is to create a user macro. I eventually gave up on Widget Connector and logged this bug... https://studio.plugins.atlassian.com/browse/WC-27

This is the user macro I came up with for youtube incase anyone else needs a decent solution for this...

## Macro title: YouTube Embed
## Macro has a body: N
## Output: HTML
##
## Developed by: Sam Hall
## Date created: 24/04/2012
## Installed by: Sam Hall

## @param vid:title=Video ID|type=string|required=true|desc=ID for the video
## @param width:title=Width|type=int|required=false|desc=Width (default 425)
## @param height:title=Height|type=int|required=false|desc=Height (default 350)

## Check for valid width, otherwise use 425
#if (!$paramwidth)
  #set ($paramwidth=425)
#end
   
## Check for valid height, otherwise use 350
#if (!$paramheight)
  #set ($paramheight=350)
#end

<iframe class="youtube-player" type="text/html" width="$paramwidth" height="$paramheight" src="//www.youtube.com/embed/$generalUtil.escapeForHtmlAttribute($paramvid)" frameborder="0">
</iframe>

1 vote
Vladimir Alexiev
Contributor
November 19, 2013

With Widget 1.3.8 I get error ""widget: A widget Id is required!". Posted as https://ecosystem.atlassian.net/browse/WC-76. We also started using a user macro (https://confluence.atlassian.com/display/DISC/YouTube+user+macro) and replaced "http:" with "" (i.e. the URLs should start with "//www.youtube.com", yep that is a valid URL).

Added comment to KB

TAGS
AUG Leaders

Atlassian Community Events