I am trying get the twitter search widget to work on my SSL pages, without the browser throwing a warning about not encrypted. I have been searching a while now but cant find a solution. Any ideas?
I have tried the following:
Including Twitter Widgets.js via HTTPS
my code is as follows
<script charset="utf-8" src="https://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'search',
search: 'Search term',
interval: 30000,
title: 'Twitter feed',
subject: 'WHatever',
width: 295,
height: 300,
theme: {
shell: {
background: 'transparent',
color: '#88afcc'
},
tweets: {
background: 'transparent',
color: '#cccccc',
links: '#1868e0'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
behavior: 'default'
}
}).render().start();
</script>
I have tried saving widget.js to my server and calling it with https that way but to no avail, also I tried changing all occurences of 'http' to 'https' in widget.js again to no avail.
Any ideas? I really want to keep this on the SSL pages but not at the cost of users thinking the connection between us and them is insecure.
Copy the widget.js file to your https file directory and change your src to point to it.
The error is occurring because ANY file outside your https directory is not going to be encrypted by SSL.
Related
I used this code to fetch images from the MySQL database and show them on the container. will you please guide me on how to share this image with text? Or what plugin I need to use.
Image image;
showImage(String image){
return Image.memory(base64.decode(image), fit: BoxFit.fill,);
}
//show in Container
Container(
padding: EdgeInsets.all(10),
width: MediaQuery.of(context).size.width * 0.8,
height: MediaQuery.of(context).size.height * 0.3,
color: Colors.white,
child: showImage(widget.product_detail_pictue),
),
child: image = showImage(product.image)),
it also show image but failed to share.
You could use the Share package.`
It allows you to share content from your Flutter app via the platform's share dialog.
Using tab application in Face book,i am unable to set the height of the iframe which is always set to 800.
I have tried so many variations but nothing works for me.
FB.Canvas.setSize({ width: 640, height: 1480 });
FB.Canvas.setAutoResize();
FB.Canvas.setAutoGrow();
By the way i am using v2.9.
Can you please suggest me how to remove the scrollbar and show full page ?
Javascript:
jwplayer("mvcontainer").setup({
flashplayer: "https://media.dreamhost.com/mp5/player.swf",
file: "video_file.flv",
icons: true,
autostart: true,
controlbar: "bottom",
height: 406,
width: 628
});
HTML:
<div id="mvcontainer"></div>
The above coding is using to play flv video in my site. This coding working correctly but I have a problem. I removed the video then replaced some content in same page. The video is not stopped, it continuously playing in background.
How do I stop it?
Try using this
jwplayer().remove();
or
jwplayer().stop();
There's JW Player JS API Documentation
I'm about to send out an email campaign to my clients. The email will be sent in HTML format, and I wanted to embed a twitter feed in my email, similar to the twitter widgets you see embedded in blogs and websites everywhere. When I copy and paste the code generated through the twitter website, my email doesn't render anything :(
Any ideas if this is possible? Thanks! Here's the code twitter generated:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'faves',
rpp: 5,
interval: 6000,
title: 'The best of Twitter according to',
subject: 'My Tweets',
width: 250,
height: 300,
theme: {
shell: {
background: '#8540c2',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#43c43f'
}
},
features: {
scrollbar: true,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
}
}).render().setUser('maryamKE').start();
</script>
There is no standard for HTML email, and most email clients sensibly reject JavaScript. I recommend you link to a page on your web site.
There is no good way to accomplish this with the embeds provided directly from Twitter.
This was a need I also had and created a service that makes it extremely easy: https://www.widgmail.com/
I just wanted to ask you how to change the width/height of the image in nextGen (galleryview template) wordpress plugin? After I set everything up it works like charm but I can't increase the size of the image. This is the code I found inside the template:
<script type="text/javascript" defer="defer">
jQuery("document").ready(function(){
jQuery('#<?php echo $gallery->anchor ?>').galleryView({
panel_width: 650,
panel_height: 400,
frame_width: 40,
frame_height: 40,
transition_interval: 0,
overlay_color: '#222',
overlay_text_color: 'white',
caption_text_color: '#222',
background_color: 'transparent',
border: 'none',
nav_theme: 'dark',
easing: 'easeInOutQuad'
});
});
However the width/height here is only applying to the whole container but not to image itself. And I don't want to change these values through css either because images looks terrible then. Can anyone help me with this one pretty please?
Not completely sure if this is what you need, but if you want to change the default 320x240 size to something different, look in admin/tinymce/window.php