SOHN

SOHN supports this item

Supported

30 comments found.

I’m using this with a PHP based CMS and need to modify where the php file is located mb-content.php & mb-comment.php

Also, it would be helpful to be able to drop the .php file extension, is this possible?

Hi,

If you want to change mb-content.php and mb-comment.php location you need to edit the javascript file (metrobox.dev.js) in “js/’ folder.

Open the metrobox.dev.js, then search “content/metrobox/” you will see the file path settings (line 390 for mb-content and line 661 for mb-comment). You can change the path (and file extension) to where you like.

About ”.php” file extension you can edit at file path settings or use “ext” param to change file extension.

I am making an only HTML version for this plugin and will be released in next time. If you are interested in HTML version you can email me to get it soon or wait for an official release.

Kind regards.

Ok thanks, it looks like I’ll need the HTML version as the PHP is conflicting with my CMS, will email you now

Hi,

I replied your email. Please check your inbox.

Kind regards.

Hi. Just bought this item but it seems i am going to need an HTML version. Could you provide me with one? Thanks.

Hi,

I replied your email and sent you the HTML version in the email.

Kind regards.

Hello SOHN,

I just bought your product and have tried installing it but to no avail. I am not using php. Please could you provide me with the HTML version.

Thanks.

Your product description says that files included are: JavaScript JS, HTML, CSS, PHP. But after downloading the product I found out that there is no single HTML file. I think you need to check it out. Please I will like you to send me the HTML version.

Thanks

Hi,

You can send me email to get the HTML version.

Kind regards.

OK. I just sent you an email. Thanks.

I replied your email with the HTML version. Please check your inbox.

Regards.

Does this box support next and previous in popup for ajax html files?

Hi,

The next and previous function in the plugin can move photos in the same group only. It does not support to open a new ajax file at this time.

Kind regards.

Hi, i would like to buy metrobox, can I make image zoom like facebook? and the plugin take the content text with or without styles?

Hi,

I just send you the HTML file via email. Please check your mail box.

MetroBox plugin does not have zoom function at this version. I don’t know which content text that you are mentioning? Could you make it clearly?

Kind regards.

Hi I send you and email with some questions, because I have a plugin that Mark the word you searched with some style and I would like to load all mb-customcontent and mb-customcontent in one query without the php files (all my info is in my database)so the plugin can mark that word and display it in the lightbox with some style. What should i do?

I replied your email. Please check your mail box.

Hi, we purchase and implement metrobox, it seems to work fine, but when it load the first time the arrows next and prev does not show. You must close the light box and reopen it, then the arrows shows without problems. Here is the code:
          <div id="mb-mainbody">
                            <ul id="mycarousel" class="jcarousel-skin-ie7">
                                  <?php for($f=0; $f<=$cantidadOfertas - 1; $f++){ ?>
                             <li class="thumbnails" data-mbgid="mb-contentgroup-1" data-mbid="mb-content-<?php echo $f+1 ?>"><img src="<?php echo $listaOfertasThumb[$f] ?>" width="132" height="99" class="sombraImagen" /></li>
                            <?php } ?>

                            </ul>
                        </div>
and the qa page where it can be show: http://qa.jumbo-web.com.ar/ofertas-acoyte_1.html

Regards. Ruben.

Is weird, because I put an alert in your code to see what value it receive, and I figured out that when I open the first time the lighbox, $numItems is 1 but when I close the window and reopen it the value of $numItems is 2 without refresh the browser.
    // MetroBox Content Group
        function mbContentGroup() {

            alert ($mbgid.length);
            if ( $mbgid !== undefined ) { // Check group exist
                // Add Prev and Next button
                $('#mb-header').append("<div id="mb-next" /><div id="mb-prev" />");

                var $numItems = $('.'+$mbgid).length;
                alert ($numItems);
                var itemgroup=new Array();

                for ( var i=0; i<$numItems; i++) {
                    itemgroup[i] = $('.'+$mbgid).eq(i).attr('id');
                    alert (itemgroup[i]) ;
                }

And the code in mb-content.php is:
    $nombreSucursal= $row["name"];;
    //include "admin-ofertas.php";

        //inicializo un índice
                $i = 0;
//inicializo el array que almacenará los objetos
                $listaOfertas = array();
                $listaLegales = array();
             do{
                 $listaOfertas[$i] = "../../admin/user_files/images/org/".$row["file_name"];
                 $listaOfertasThumb[$i] = "admin/user_files/images/small/".$row["file_name"];
                 $listaLegales[$i] = $row["description"];
                 if ($row["file_name"]!=""){
                  $i++;}
                } while ($row = mysql_fetch_assoc($g));

    $cantidadOfertas = $i;

    $stridimg = $_POST['mbid'];
    $posstart = strrpos ($stridimg, "-");
    $idimg= substr($stridimg, $posstart + 1); 
    $idimgarr = $idimg - 1;

    $imgname ="";

    for($f=0; $f<=$cantidadOfertas; $f++){

       if($f ==  $idimgarr)
       {

          $imgname = $listaOfertas[$f];
        }

    } 

         ?>

     <!-- oferta 1 -->
        <div id="mb-content-<?php echo $idimg ?>" class="mb-contentgroup-1">
            <div class="mb-content">
                <div class="mb-imgholder">
                    <img src="<?php echo $imgname ?>" alt="" class="mb-responsive-img mb-swipe" />
                </div>
            </div>
        </div>
    <!--   oferta 1 -->
Mi fault, the new code of mb-content.php is:

    $nombreSucursal= $row["name"];;
    //include "admin-ofertas.php";

        //inicializo un índice
                $i = 1;
//inicializo el array que almacenará los objetos
                $listaOfertas = array();
                $listaLegales = array();
             do{
                 $listaOfertas[$i] = "../../admin/user_files/images/org/".$row["file_name"];
                 $listaOfertasThumb[$i] = "admin/user_files/images/small/".$row["file_name"];
                 $listaLegales[$i] = $row["description"];
                 if ($row["file_name"]!=""){
                  $i++;}
                } while ($row = mysql_fetch_assoc($g));

    $cantidadOfertas = $i;

    $stridimg = $_POST['mbid'];
    $posstart = strrpos ($stridimg, "-");
    $idimg= substr($stridimg, $posstart + 1); 
    $idimgarr = $idimg - 1;

    $imgname ="";

    for($f=1; $f<=$cantidadOfertas - 1; $f++){

        ?> <!-- oferta 1 -->
        <div id="mb-content-<?php echo $f ?>" class="mb-contentgroup-1">
            <div class="mb-content">
                <div class="mb-imgholder">
                    <img src="<?php echo $listaOfertas[$f] ?>" alt="" class="mb-responsive-img mb-swipe" />
                </div>
            </div>
        </div>
    <!--   oferta 1 -->
<?php
    } 

         ?>
and its work perfectly. Best regards.

It is good to hear that. Regards.

the lightbox looks great, going to purchase but im just wondering if its possible to have a slide animation on the images when going next/prev ?

Hi,

At this time, it just has only fade effect animation when moving next/prev content.

Kind regards.

Hi, I’m having trouble getting the plugin to work in Dreamweaver (html version). The links to the content don’t seem to be clickable, so I can’t get the content to show up. Is there anything special I should be doing to embed the plugin in dreamweaver? Thank you.

Ok. I think you should try to remove these lines on your page:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>

Because you added many jQuery library versions in the same page so it made conflicts on your page. In same page, you should use only one jQuery library.

Kind regards.

Thank you for answering. The problem is I need the jQuery libraries you mention for the mmenu plugin. And there seems to be a conflict with the mmenu plugin. If I take one of them out the other one works, otherwise neither of them works. (That is, if I am doing things correctly) Greetings.

You do not need to add many jQuery libraries for many jQuery plugins. Just keep only one jQuery library version and always add jQuery library before plugins.

On your page, I see you added two jQuery version (2.1.1 and 1.9.0). My MetroBox can work with both versions. So if your mmenu plugin can not work with 2.1.1 version you can remove it and keep 1.9.0 version.

Kind regards.

can other users leave comments? I am not seeing how to leave comments for each gallery. Could this also be user generated images? Thanks!

Hi,

MetroBox is just a lightbox that is used to display your images/content/comments. It does not have a full comment system so you can not submit comments.

Kind regards.

by
by
by
by
by
by