<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
	<title>InvisionBG</title>
	<link>http://invisionbg.com/blog/1-invisionbg/</link>
	<description>InvisionBG Syndication</description>
	<pubDate>Wed, 03 Jul 2013 23:44:12 +0000</pubDate>
	<webMaster>invisionbg@gmail.com (Invision BG)</webMaster>
	<generator>IP.Blog</generator>
	<ttl>60</ttl>
	<item>
		<title>Disable autoplay in Youtube embed video</title>
		<link>http://invisionbg.com/blog/1/entry-14-disable-autoplay-in-youtube-embed-video/</link>
		<category></category>
		<description><![CDATA[Повечето платформи намериха решение на този проблем. Като цяло, решението се състои в промяна на този код:<br />
<br />
<pre class='prettyprint'>
http&#58;//www.youtube.com/v/$Embed_id&autoplay=
</pre>
<br />
В това:<br />
<br />
<pre class='prettyprint'>
http&#58;//www.youtube.com/v/$Embed_id?autoplay=
</pre>
<br />
Тоест само промяна на & в ? спира досадния Autoplay. При някой скриптове е по-сложно. Ето моето решение за Php Melody.<br />
<br />
Отваряме /include -&gt;functions.php<br />
<br />
Намираме следните редове (около 838 ред) :<br />
<br />
<pre class='prettyprint'>
$embed_code = str_replace("%%yt_id%%", $video&#91;'yt_id'&#93;, $embed_code);
  $embed_code = str_replace("%%player_bgcolor%%", _BGCOLOR, $embed_code);
  $embed_code = str_replace("%%player_timecolor%%", _TIMECOLOR, $embed_code);
  $video&#91;'url_flv'&#93; = str_replace("&", "&amp;", $video&#91;'url_flv'&#93;);
  $embed_code = str_replace("%%url_flv%%", $video&#91;'url_flv'&#93;, $embed_code);
  $embed_code = str_replace("%%direct%%", $video&#91;'direct'&#93;, $embed_code);
  $embed_code = str_replace("%%use_hq_vids%%", $config&#91;'use_hq_vids'&#93;, $embed_code);
  $embed_code = str_replace("%%yt_thumb%%", $video&#91;'preview_image'&#93;, $embed_code);
</pre>
<br />
Добавяме отдолу този ред:<br />
<br />
<pre class='prettyprint'>
$embed_code = str_replace("%%player_autoplay%%", $video&#91;'?autoplay'&#93;, $embed_code);
</pre>
<br />
Save, upload and Enjoy <img src='http://invisionbg.com/public/style_emoticons/default/smile.png' class='bbc_emoticon' alt=':)' />]]></description>
		<pubDate>Wed, 03 Jul 2013 07:56:00 +0000</pubDate>
		<guid>http://invisionbg.com/blog/1/entry-14-disable-autoplay-in-youtube-embed-video/</guid>
	</item>
	<item>
		<title>jQuery приложения</title>
		<link>http://invisionbg.com/blog/1/entry-1-jquery-%d0%bf%d1%80%d0%b8%d0%bb%d0%be%d0%b6%d0%b5%d0%bd%d0%b8%d1%8f/</link>
		<category></category>
		<description><![CDATA[<span style='color: #0000cd'><strong class='bbc'>1. <span style='font-family: verdana, helvetica, arial, sans-serif'>JQuery Toggle for 1 Div Only</span></strong></span><br />
<span style='color: #282828'><span style='font-family: verdana, helvetica, arial, sans-serif'><pre class='prettyprint'>

&lt;div class="slide" style="cursor: pointer;"&gt;Show/Hide&lt;/div&gt;
&lt;div class="view"&gt;
This will get shown/hidden depending on the toggle above.
&lt;/div&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function() {
// Hide the "view" div.
$('div.view').hide();
// Watch for clicks on the "slide" link.
$('div.slide').click(function() {
// When clicked, toggle the "view" div.
$('div.view').slideToggle(400);
return false;
});
});
&lt;/script&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function() {
$('div.view').hide();
$('div.slide').toggle(function() {
$(this).siblings('div.view').fadeIn('slow');
}, function() {
$(this).siblings('div.view').fadeOut('fast');
return false;
});
});
&lt;/script&gt;
</pre></span></span><br />
<br />
<span style='color: #0000cd'><strong class='bbc'><span style='font-family: verdana, helvetica, arial, sans-serif'>2. Jquery Show/Hide content</span></strong></span><br />
<span style='color: #282828'><span style='font-family: verdana, helvetica, arial, sans-serif'><pre class='prettyprint'>
&lt;script type="text/javascript"&gt;
jQuery.noConflict();
jQuery(document).ready(function($){
$(".slidingDiv").hide();
$(".show_hide").show();
$('.show_hide').click(function(){
$(".slidingDiv").slideToggle();
});
});
&lt;/script&gt;

&lt;a href="#" class="show_hide"&gt;Show/Hide&lt;/a&gt;


&lt;div class="slidingDiv"&gt;
Here is the hidden content
&lt;/div&gt;



.slidingDiv {
height:300px;
background-color: #99CCFF;
padding:20px;
margin-top:10px;
border-bottom:5px solid #3399FF;
}

.show_hide {
display:none;
}
</pre></span></span><br />
<br />
<span style='color: #0000cd'><strong class='bbc'><span style='font-family: verdana, helvetica, arial, sans-serif'>3. </span>JQuery Ajax Refresh of Div content</strong></span><br />
<pre class='prettyprint'>
&lt;script&gt;
jQuery.noConflict();
jQuery(document).ready(function($){
var auto_refresh = setInterval(
function()
{
$('#recentTopicsWrapper').fadeOut('fast').load(' #recentTopicsWrapper').stop(true, true).fadeIn('fast');
}, 120000);
$('recentTopicsWrapper').unwrap();
});
&lt;/script&gt;
</pre>
<br />
<span style='color: #0000cd'><strong class='bbc'>4. JQuery Ajax Refresh Div with Button</strong></span><br />
<pre class='prettyprint'>
&lt;script&gt;
jQuery.noConflict();
jQuery(document).ready(function($){
$(function() {
$("#refresh").click(function() {
	 $("#status_wrapper").fadeOut('fast').load(" #status_wrapper").fadeIn('slow');
$('status_wrapper').unwrap();
});
});
});
&lt;/script&gt;
&lt;a href="#" id="refresh"&gt;Refresh&lt;/a&gt;
</pre>]]></description>
		<pubDate>Sun, 10 Mar 2013 13:28:00 +0000</pubDate>
		<guid>http://invisionbg.com/blog/1/entry-1-jquery-%d0%bf%d1%80%d0%b8%d0%bb%d0%be%d0%b6%d0%b5%d0%bd%d0%b8%d1%8f/</guid>
	</item>
</channel>
</rss>