Welcome, Guest. Please login or register.
March 18, 2010, 08:51:45 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110337 Posts in 15934 Topics by 9292 Members
Latest Member: a52de940fu
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Simple video gallery
Pages: 1 2 3 [4] Go Down Print
Author Topic: Simple video gallery  (Read 26705 times)
Vincent

Offline Offline

Posts: 314


WWW
« Reply #75 on: November 11, 2009, 09:29:17 AM »

To make full screen work:

1. Open ufo.js;
2. Find line 192 which is:

var _obj = UFO.createElement("object");

3. Add this line after that:

_obj.setAttribute("allowfullscreen", "true");

Vincent
Logged
sayf_theone

Offline Offline

Posts: 21


« Reply #76 on: November 12, 2009, 03:49:45 PM »

I've already did that. but no result. the same problem no fullscreen.
Logged
dierk

Offline Offline

Posts: 2


wuff!


« Reply #77 on: December 15, 2009, 09:54:47 PM »

Hi there,
I tried it like Vincent suggested, AND IT WORKS!! Hurray
Thanx
Dierk
Logged
WayneM

Offline Offline

Posts: 5


« Reply #78 on: December 17, 2009, 11:31:26 PM »

I also tried the fix for the sorting.

Did not work.

Got  parse error something like: unexpected "{" in line 81

I would love to be able to sort smiley

Any new ideas?

Thanks.
Logged
WayneM

Offline Offline

Posts: 5


« Reply #79 on: December 18, 2009, 02:37:27 PM »

Regarding the sort code.

in the new code, change the "}" in line 81 to "endif;"

That fixes the parse error... now let's see if the sort works....

Okay. It works. Sorts on the file name.

Here's what the code to replace lines 76 to 98 should be:

Code:
$dir = opendir($directory);
    $files=array();
    while (false !== ($file = readdir($dir))) {
        if (substr($file, strrpos($file, '.') + 1) == "flv"):
            $files[]=$file;
        endif;
    }
    closedir($dir);
   
    sort($files);
    foreach($files as $file) {
         $idplayer = $idplayer + 1;
        $counter = $counter + 1;
        echo "<td><span id='player$idplayer'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</a></span>";
            echo "<script type='text/javascript'>";
                echo "var FO = { movie:'$dirmodulo/flvplayer.swf',width:'$width',height:'$height',majorversion:'7',build:'0',bgcolor:'#000000',";
                    echo "flashvars:'file=$dirweb/$file&showdigits=true&image=$dirweb/$file.jpg&showicons=true&lightcolor=0x".$lightcolor."&backcolor=0x".$backcolor."&frontcolor=0x".$frontcolor."&volume=100' };";
                echo "UFO.create( FO, 'player$idplayer');";
            echo "</script>";
            echo "<br />";
            @include($directory."/".$file.".txt");
        echo "</td>";

        if ($counter == $videos_row):
            echo "</tr><tr valign='top'>";
            $counter = 0;
        endif;
    }
« Last Edit: December 18, 2009, 02:43:30 PM by WayneM » Logged
wuppertaler

Offline Offline

Posts: 1


« Reply #80 on: December 20, 2009, 09:38:45 PM »

To make full screen work:

1. Open ufo.js;
2. Find line 192 which is:

var _obj = UFO.createElement("object");

3. Add this line after that:

_obj.setAttribute("allowfullscreen", "true");

Vincent
I tried it also. but it don't work

This is it:

writeSWF: function(id) {
        var _fo = UFO.foList[id];
        var _e = document.getElement ById(id);
        if (UFO.pluginType == "npapi") {
            if (UFO.uaHas("gecko") || UFO.uaHas("xml")) {
                while(_e.hasChildNodes()) {
                    _e.removeChild(_e.firstChild);
                }
                var _obj = UFO.createElement("object");
                _obj.setAttribute("type", "application/x-shockwave-flash");
                _obj.setAttribute("data", _fo.movie);
                _obj.setAttribute("width", _fo.width);
                _obj.setAttribute("height", _fo.height);
                _obj.setAttribute("allowfullscreen", "true");
                var _l = UFO.optAtt.length;
                for (var i = 0; i < _l; i++) {
                    if (typeof _fo[UFO.optAtt] != "undefined") _obj.setAttribute(UFO.optAtt, _fo[UFO.optAtt]);
                }


is there anything wrong.

I've changed the ufo.js in he Zip-file then I installed the Modu.
Logged
BoBBiE

Offline Offline

Posts: 1


« Reply #81 on: January 07, 2010, 02:04:21 PM »

How come i cant download this one anymore? And is it an option to integrate it with smoothgallery?
Logged
neophyre

Offline Offline

Posts: 13


« Reply #82 on: January 09, 2010, 07:39:40 AM »

I keep getting this error - Notice: Undefined variable: counter in /home/tammyann/public_html/modules/videogal/view.php on line 81
Logged
dobber

Offline Offline

Posts: 51


« Reply #83 on: February 23, 2010, 09:36:01 PM »


hy,

I want to play a video automatically. Is that possible?

best regards

Logged
Gaz

Offline Offline

Posts: 1


« Reply #84 on: March 07, 2010, 04:59:50 PM »

To make full screen work you have to:

1. Change ufo.js as mentioned here:

To make full screen work:

1. Open ufo.js;
2. Find line 192 which is:

var _obj = UFO.createElement("object");

3. Add this line after that:

_obj.setAttribute("allowfullscreen", "true");

Vincent

2. Additionally you have to change view.php in the videogal-module directory:

2.1. Open view.php and find line 85 which is
echo "var FO = { movie:'$dirmodulo/flvplayer.swf',width:'$width',height:'$height',majorversion:'7',build:'0',bgcolor:'#000000',";

2.2. at the end of line 85 add   ›allowfullscreen:'true',‹   right before   ›";‹   so that the end of line 85 looks like this:
......,bgcolor:'#000000',allowfullscreen:'true',";

For me fullscreen now works like a charme!
- tested with Firefox 3.6, Safari 4.0.4, InternetExplorer 8.0 (and even 6.0!! harhar...)

Cheers, GAZ  smiley
« Last Edit: March 07, 2010, 05:35:56 PM by Gaz » Logged
Olli

Offline Offline

Posts: 222


« Reply #85 on: March 14, 2010, 09:39:49 PM »

is the fullscreen fix included into the latest release?
Logged
lorbas

Offline Offline

Posts: 1


« Reply #86 on: March 17, 2010, 09:00:41 PM »

Hi,

I have some different content blocks (WYSIWYG) on one screen page and I wanted to show 3 or 4 videos between these blocks. but I recognized, there is only the first video shown on the page, the others wil not load (or the player is loaded only once). Is there a trick to do this or isn't it possible? I know there is the possibility to put a textfile with the videofiles, but it would be easier to put the content the usual way at the page.

sorry for my perhaps strange english ... and thanks for reply.
Logged
Pages: 1 2 3 [4] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!