Forgot password? | Forgot username?
  • Index
  • » Users
  • » afink425
  • » Profile

Posts

Posts

2013-05-28 03:07 PM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

Lol oh okay. so this goes in the default.php? does it effect both codes? could that be the issue? or did they both need to be changed?

2013-05-28 02:28 PM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

wouldn't this effect any other popups in the future tho?

2013-05-28 02:22 PM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

anders wrote:


I am not sure why it doesn't load the video. I think the mp4 plugin never calls the JavaScript to load the video...

You can load the video straight in the popup if you like that instead since yuo have "jwplayer" already:

jQuery("#<?php echo $spu_popupname; ?>").fancybox({
            'padding' : 0,
            'title' : this.title,
            'content': '<embed src="jwplayer.swf?file=/images/videos/HerosWings.mp4&amp;autostart=true&amp;fs=1" type="application/x-shockwave-flash" width="352" height="240" wmode="opaque" allowfullscreen="true" allowscriptaccess="always"></embed>'               
        });

Where would i place the above code?

2013-05-28 01:57 PM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

Oops, okay put the comma back in, plugin works again, but still white empty box.

Noticed z-index now, this is what i found:

fancybox-overlay z-index 1100
fancybox-wrap    z-index 1101
fancybox-content z-index 1102
fancybox-bg      z-index 1001
video content code is here (no z-index)
fancybox-close   z-index 1103

2013-05-28 08:22 AM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

so i added from type down to the default.php and the popup doesn't even show up

Code:

<?php 

/**
* Simple PopUp - Joomla Plugin
*
* @package    Joomla
* @subpackage Plugin
* @author Anders Wasén
* @link http://wasen.net/
* @license        GNU/GPL, see LICENSE.php
* plg_simplefilegallery is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/

defined('_JEXEC') or die('Restricted access'); // no direct access


JHtml::_('jquery.framework');
//JHtml::_('behavior.modal');
JHtml::stylesheet( 'plugins/content/simplepopup/simplepopup/spustyle.css' );
JHtml::stylesheet( 'plugins/content/simplepopup/simplepopup/fancybox/jquery.fancybox-1.3.4.css');


$spu_aligntext = $this->params->get( 'spu_aligntext', 'center' );
$spu_boxwidth = $this->params->get( 'spu_boxwidth', '400' );
$spu_boxheight = $this->params->get( 'spu_boxheight', 'auto' );
$spu_autodimensions = $this->params->get( 'spu_autodimensions', 'false' );
$spu_cookie = $this->params->get( 'spu_cookie', '0' );
$spu_cookiepersistence = $this->params->get( 'spu_cookiepersistence', '365' );
$spu_jquery = $this->params->get( 'spu_jquery', '0' );
$spu_jqueryinclude = $this->params->get( 'spu_jqueryinclude', '0' );
$spu_jquerync = $this->params->get( 'spu_jquerync', '0' );

$spu_popupname = str_replace(' ', '', $this->popupname);


//if ($spu_jquery == 1) {
//    if ($spu_jqueryinclude == 0) {
//        JHtml::script( 'plugins/content/simplepopup/simplepopup/fancybox/jquery.mousewheel-3.0.4.pack.js' );
//        JHtml::script( 'plugins/content/simplepopup/simplepopup/fancybox/jquery.fancybox-1.3.4.js' );
//    } else {
//echo '<script type="text/javascript" src="media/system/js/modal.js"></script>';
        echo '<script type="text/javascript" src="plugins/content/simplepopup/simplepopup/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>';
        echo '<script type="text/javascript" src="plugins/content/simplepopup/simplepopup/fancybox/jquery.fancybox-1.3.4.js"></script>';
//    }
//}
?>
<!-- SPU HTML GOES BELOW -->

<script language="javascript" type="text/javascript">
<!--
var addText = '';

<?php if ($spu_cookie === '1')  { ?>
function spu_createCookie(name, value, days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}

function spu_readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) {
            if (c.substring(nameEQ.length,c.length).length == 0) return "noname";
            return c.substring(nameEQ.length,c.length);
        }
        if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
    }
    return null;
}

function spu_eraseCookie(name) {
    createCookie(name,"",-1);
}
<?php } ?>

-->
</script>

<?php if ($this->popup !== 'false') { ?>
<script language="javascript" type="text/javascript">
<!--
jQuery(document).ready(function() {
    var fshowMsg = true;
    var autodim = <?php echo $spu_autodimensions; ?>;
   
    <?php if ($spu_cookie === '1')  { ?>
        var cookieName = '';
        <?php if (strlen($spu_popupname) > 0)  { ?>
            cookieName = '<?php echo $spu_popupname; ?>';
        <?php } ?>
       
        var cookieRet = spu_readCookie('spu_cookie'+cookieName);
       
        if(!cookieRet) {
            // Cookie not found, set cookie expiration and show message
            var persistance = <?php echo $spu_cookiepersistence; ?>;
           
            spu_createCookie('spu_cookie'+cookieName, cookieName, persistance);
        } else {
            // Cookie exists, skip message
            fshowMsg = false;
        }
    <?php } ?>
       
    if (fshowMsg) {
        jQuery.fancybox(
            ''+addText,
            {
                'autoDimensions'    : autodim,
                <?php if ($spu_autodimensions === 'false') { ?>
                'width'             : '<?php echo $spu_boxwidth; ?>',
                'height'            : '<?php echo $spu_boxheight; ?>',
                <?php } ?>
                'transitionIn'        : 'elastic',
                'transitionOut'        : 'elastic',
                'resizeOnWindowResize'    : <?php echo $this->resizeOnWindowResize ?>,
                'centerOnScroll'    : <?php echo $this->resizeOnWindowResize ?>
                                'swf'                   : {
                                'wmode'                 : 'transparent',
                                'allowfullscreen'       : 'true'
                             }
            }
        );
        /*
        var options = {size: {x: 300, y: 250}};
        SqueezeBox.initialize(options);
        SqueezeBox.setContent('string',addText);
        */
    }
   
   
    <?php if (strlen($spu_popupname) > 0)  { ?>
    jQuery("#<?php echo $spu_popupname; ?>").fancybox({
        'titlePosition'        : 'inside',
        'transitionIn'        : 'elastic',
        'transitionOut'        : 'elastic',
        'hideOnOverlayClick': false,
        'hideOnContentClick': false,
        'showCloseButton'    : true,
        'autoDimensions'    : true,
        'titleShow'            : true,
        'titlePosition'        : 'inside',
        'resizeOnWindowResize'    : <?php echo $this->resizeOnWindowResize ?>,
        'centerOnScroll'    : <?php echo $this->resizeOnWindowResize ?>
        'type'                  : 'swf',
                'swf'                   : {
                'wmode'                 : 'transparent',
                'allowfullscreen'       : 'true'
                    }
               }
    );
    <?php } ?>
   
});

-->
</script>

<!-- FancyBox -->
<div id="spuSimplePoPup" style="display: none;">
    <div id="spu<?php echo $spu_popupname; ?>" class="spu_content" style="text-align: <?php echo $spu_aligntext; ?>;">
        <?php
        if(strlen($this->popupurl) > 0) {
            $pagecontent = file_get_contents($this->popupurl, FILE_TEXT);
            $pagecontent = mb_convert_encoding($pagecontent, 'UTF-8', mb_detect_encoding($pagecontent, 'UTF-8, ISO-8859-1', true));

            if ($pagecontent === false) $pagecontent = 'URL ('.$this->popupurl.') failed to load. Please inform the site administrator!';
            $this->popupmsg = $pagecontent;
        }
        echo $this->popupmsg;
        ?>
    </div>
    <?php if ($this->popupmulti === 'true') { ?>
    <div style="position: relative; width: 100%; text-align: right;">Next >></div>
    <?php } ?>
</div>

<script language="javascript" type="text/javascript">
<!--
addText = document.getElementById('spuSimplePoPup').innerHTML;
-->
</script>
<?php } ?>

<!-- END SFG HTML -->

2013-05-28 07:45 AM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

Okay its off... Now what? lol

2013-05-28 07:06 AM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

I am aware. its now bumped up to admin and works. And i did use my developer tools but could not find the z index.

2013-05-28 06:33 AM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

Yes the video works out of the pop up. and i don't see z index anywhere. In my previous post i put a username and password for the site up so you could have a closer look at it, the site is currently in maintenance mode, which is why i gave you a username and password

2013-05-27 07:22 PM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

It looks like the video is trying to show twice or something this is the html:


                    <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~~~~~~~~~ Simple PopUp - DEBUGGING ~~~~~~~~~~~~~<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>[0]={simplepopup name=video12}

<!-- JoomlaWorks "AllVideos" Plugin (v4.5.0) starts here -->

<div class="avPlayerWrapper avVideo">
    <div class="avPlayerContainer">
        <div id="AVPlayerID_174ba42b_627890897" class="avPlayerBlock">
           
<div style="position: relative; width: 600px; height: 440px;" id="avID_AVPlayerID_174ba42b_627890897_wrapper"><object tabindex="0" name="avID_AVPlayerID_174ba42b_627890897" id="avID_AVPlayerID_174ba42b_627890897" bgcolor="#000000" data="/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer/player.swf" type="application/x-shockwave-flash" height="100%" width="100%"><param value="true" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="true" name="seamlesstabbing"><param value="opaque" name="wmode"><param value="netstreambasepath=http%3A%2F%2Fnew.sweetheartsandheroes.com%2F&amp;id=avID_AVPlayerID_174ba42b_627890897&amp;file=%2Fimages%2Fvideos%2FHerosWings.mp4&amp;image=&amp;autostart=false&amp;backcolor=%23010101&amp;plugins=viral-2h&amp;skin=%2Fplugins%2Fcontent%2Fjw_allvideos%2Fjw_allvideos%2Fincludes%2Fjs%2Fmediaplayer%2Fskins%2Fbekle%2Fbekle.zip&amp;viral.onpause=false&amp;viral.oncomplete=true&amp;viral.pluginmode=FLASH&amp;controlbar.position=bottom" name="flashvars"></object></div>
<script type="text/javascript">
    jwplayer('avID_AVPlayerID_174ba42b_627890897').setup({
        'file': '/images/videos/HerosWings.mp4',
        'image': '',
        'height': '440',
        'width': '600',
        'modes': [
            { 'type': 'html5' },
          { 'type': 'flash', src: '/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer/player.swf' },
          { 'type': 'download' }
        ],
        'autostart': 'false',
        'backcolor': '#010101',
        'plugins': {
            'viral-2': {
                'onpause': 'false',
                'oncomplete': 'true'
            }
        },
        'controlbar': 'bottom',
        'skin': '/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer/skins/bekle/bekle.zip'
    });
</script>
                    </div>
    </div>
</div>

<!-- JoomlaWorks "AllVideos" Plugin (v4.5.0) ends here -->

{/simplepopup}<br>[1]= name=video12<br>[2]=

<!-- JoomlaWorks "AllVideos" Plugin (v4.5.0) starts here -->

<div class="avPlayerWrapper avVideo">
    <div class="avPlayerContainer">
        <div id="AVPlayerID_174ba42b_627890897" class="avPlayerBlock">
           
<div id="avID_AVPlayerID_174ba42b_627890897" style="width:600px;height:440px;" title="JoomlaWorks AllVideos Player"></div>
<script type="text/javascript">
    jwplayer('avID_AVPlayerID_174ba42b_627890897').setup({
        'file': '/images/videos/HerosWings.mp4',
        'image': '',
        'height': '440',
        'width': '600',
        'modes': [
            { 'type': 'html5' },
          { 'type': 'flash', src: '/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer/player.swf' },
          { 'type': 'download' }
        ],
        'autostart': 'false',
        'backcolor': '#010101',
        'plugins': {
            'viral-2': {
                'onpause': 'false',
                'oncomplete': 'true'
            }
        },
        'controlbar': 'bottom',
        'skin': '/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer/skins/bekle/bekle.zip'
    });
</script>
                    </div>
    </div>
</div>

<!-- JoomlaWorks "AllVideos" Plugin (v4.5.0) ends here -->

<br>spuindex = 0<br>spuparams[0]=<br>spuparams[1]=name=video12<br>popupname=[video12]<br>Standard browser is used!<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>



<p><script type="text/javascript" src="/plugins/content/simplepopup/simplepopup/fancybox/jquery.mousewheel-3.0.4.pack.js"></script><script type="text/javascript" src="/plugins/content/simplepopup/simplepopup/fancybox/jquery.fancybox-1.3.4.js"></script><!-- SPU HTML GOES BELOW -->

<script language="javascript" type="text/javascript">
<!--
var addText = '';

function spu_createCookie(name, value, days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}

function spu_readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) {
            if (c.substring(nameEQ.length,c.length).length == 0) return "noname";
            return c.substring(nameEQ.length,c.length);
        }
        if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
    }
    return null;
}

function spu_eraseCookie(name) {
    createCookie(name,"",-1);
}

-->
</script>


<script language="javascript" type="text/javascript">
<!--
jQuery(document).ready(function() {
    var fshowMsg = true;
    var autodim = false;
   
            var cookieName = '';
                    cookieName = 'video12';
        
       
        var cookieRet = spu_readCookie('spu_cookie'+cookieName);
       
        if(!cookieRet) {
            // Cookie not found, set cookie expiration and show message
            var persistance = 365;
           
            spu_createCookie('spu_cookie'+cookieName, cookieName, persistance);
        } else {
            // Cookie exists, skip message
            fshowMsg = false;
        }
           
    if (fshowMsg) {
        jQuery.fancybox(
            ''+addText,
            {
                'autoDimensions'    : autodim,
                                'width'             : '600',
                'height'            : '440',
                                'transitionIn'        : 'elastic',
                'transitionOut'        : 'elastic',
                'resizeOnWindowResize'    : true,
                'centerOnScroll'    : true            }
        );
        /*
        var options = {size: {x: 300, y: 250}};
        SqueezeBox.initialize(options);
        SqueezeBox.setContent('string',addText);
        */
    }
   
   
    
    jQuery("#video12").fancybox({
        'titlePosition'        : 'inside',
        'transitionIn'        : 'elastic',
        'transitionOut'        : 'elastic',
        'hideOnOverlayClick': false,
        'hideOnContentClick': false,
        'showCloseButton'    : true,
        'autoDimensions'    : true,
        'titleShow'            : true,
        'titlePosition'        : 'inside',
        'resizeOnWindowResize'    : true,
        'centerOnScroll'    : true        }
    );
       
});

-->
</script>

<!-- FancyBox -->
</p><div id="spuSimplePoPup" style="display: none;">
    <div id="spuvideo12" class="spu_content" style="text-align: center;">
       

<!-- JoomlaWorks "AllVideos" Plugin (v4.5.0) starts here -->

<div class="avPlayerWrapper avVideo">
    <div class="avPlayerContainer">
        <div id="AVPlayerID_174ba42b_627890897" class="avPlayerBlock">
           
<div id="avID_AVPlayerID_174ba42b_627890897" style="width:600px;height:440px;" title="JoomlaWorks AllVideos Player"></div>
<script type="text/javascript">
    jwplayer('avID_AVPlayerID_174ba42b_627890897').setup({
        'file': '/images/videos/HerosWings.mp4',
        'image': '',
        'height': '440',
        'width': '600',
        'modes': [
            { 'type': 'html5' },
          { 'type': 'flash', src: '/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer/player.swf' },
          { 'type': 'download' }
        ],
        'autostart': 'false',
        'backcolor': '#010101',
        'plugins': {
            'viral-2': {
                'onpause': 'false',
                'oncomplete': 'true'
            }
        },
        'controlbar': 'bottom',
        'skin': '/plugins/content/jw_allvideos/jw_allvideos/includes/js/mediaplayer/skins/bekle/bekle.zip'
    });
</script>
                    </div>
    </div>
</div>

<!-- JoomlaWorks "AllVideos" Plugin (v4.5.0) ends here -->

    </div>
    </div>

<script language="javascript" type="text/javascript">
<!--
addText = document.getElementById('spuSimplePoPup').innerHTML;
-->
</script>


I also dont see any css trying to cover the video up.

2013-05-27 07:04 PM
Loading Video in Popup
Category: Technical Support
Forum: Simple PopUp

this is the code i am using: <p>{simplepopup name=”video1”}{mp4}HerosWings|600|440|{/mp4}{/simplepopup}</p>

This is what i get: http://new.sweetheartsandheroes.com/images/videopopup.png

This is the debugging: The video does show on the page in the debug
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~ Simple PopUp - DEBUGGING ~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[0]={simplepopup name=”video11”}VIDEO SHOWS HERE WHILE IN DEBUG
{/simplepopup}
[1]= name=”video1”
[2]=

spuindex = 0
spuparams[0]=
spuparams[1]=name=”video1”
popupname=[”video1”]
Standard browser is used!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you need to view the site its :new.sweetheartsandheroes.com
Username is user
Password is user1

  • Index
  • » Users
  • » afink425
  • » Profile

Donate

Please consider supporting my efforts.



Google Ads