That was golden! Works like a charm.

I appreciate the assist, Steven

I've been using Simple Machines Forum software for almost a decade and have been able to use the SSI feature to embed URLs, text, etc., on my website's regular web (PHP) pages so members may access and view text while non-members get a prompt to log in the forums to access the page. I'll admit I only know basic PHP and know I'm not getting the JB gallery embed syntax correct as far as PHP goes and could use an assist. I've taken the code from one of my working pages and made a new page to embed the gallery in. I tested the page and code with text and confirmed my basic code is working. (I'm using a common JBCore folder which is working throughout my site on public viewable galleries)

SMF PHP code embed:

<?php
        $allowed_groups = array(1, 2, 3, 9, 11, 16);
        $can_see = FALSE;
        foreach ($allowed_groups as $allowed)
            if (in_array($allowed, $user_info['groups']))
            {
                $can_see = TRUE;
                break;
            }
            
        if ($can_see)
        {
    echo ' **code goes here to work with logged-in users of SMF**  ';
        }
        
else
        {
            echo ' **Message shown to those not logged into SMF**  ';
        }
        ?>

Below is the working code used elsewhere on my site (example shows generic domain reference for example only). Placing it in the "code goes here" area of the SMF code above results in syntax errors that I don't know enough about PHP to clear.

Juicebox embed code

        <script src="https://www.mydomain.tld/storage/support/jbcore/juicebox.js"></script>
        <script>
            new juicebox({
                baseUrl : 'https://www.mydomain.tld/storage/pictures/galleries/',
                containerId : 'juicebox-container',
                galleryWidth: '100%',
                galleryHeight: '500px',
                backgroundColor: '#222222'
            });
        </script>
        <div id="juicebox-container">
        <noscript>

 <p>You need Javascript to view the gallery on this page.</p></noscript>
        </div>

I'd appreciate any hints. I wanted to try here before I hit up SMF support as sometimes it take a long time to get the answer over there. Thanks in advance.

3

(9 replies, posted in Juicebox-Pro Support)

Might I suggest this becomes a sticky topic? I recently upgraded to 1.4.4.2 and just noticed the problem and, quick luckily, discovered this topic which resolved the problem for me, too.

I don't know if JB Support is aware of it, but the preview shown in the Adobe Air engine is quite different than the browser view. This provides a false sense of security when using the software and it was only a chance encounter checking an existing gallery after replacing the core directory on my server did I discover the problem.

4

(6 replies, posted in Juicebox-Pro Support)

I was originally notified about the problem by several site visitors and I had confirmed the issue in Chrome on Android. I did attempt the remedy mentioned but I don't believe it worked, which is why rolled back to the 1.4 version of core.

The gallery is embedded into a page which is already defined for viewport as my site is responsive and browser aware thanks to those who programmed it. Not having other mobile platforms I could not perform any comprehensive testing and had to depend on visitors who owned different mobile hardware such as tablets and phones to point out potential issues. Obviously I can't control if visitors have older and potentially outdated versions of their mobile web browsers which is why I felt it more important to have working code by rolling back to 1.4 instead of letting assorted visitors become disenchanted with their site visit by experiencing unexpected results when viewing a gallery.

5

(6 replies, posted in Juicebox-Pro Support)

So I'm assuming this must be considered such a low priority on the list as far as maintenance of the software goes since it's been a known issue for at least four months. I would have thought a fix might have been pushed out by now.

It's a bit disappointing for those of use who coughed up money to license the software for multiple site use.

6

(6 replies, posted in Juicebox-Pro Support)

Has this ever been addresses? I'm still using version 1.4 due to this outstanding bug.

I had updated my Juicebox core folder to 1.4.2 and noticed that while things render properly using web browsers on both Mac and Windows platforms I noticed I had the issue where only half (or less than half) of the picture shows on the web page in Chrome on my Android phone (I don't have any other mobile platforms to test on). The forward and reverse arrows appear in what would be the proper placement but the gallery. I ended up downgrading the JB core back to 1.4.0.

Only having one mobile platform I don't know if other mobile browsers are affected in the same way.

Any suggestions on how to proceed? Thanks in advance.

Thanks for the info. With that in mind I guess I'll have to wait until I loft my pages on to a web server to test it.

With that in mind, if I run a local instance of Apache on my machine instead of simply opening the local pages from within browser will I be able to successfully preview the pages using the IOS user agent in my browser?

I'm currently rebuilding my site offline and have come across something very strange. I went to d/l the 1.4 release but found I had done so but I just hadn't gotten around to it. It might have been a good thing considering the problem I just unearthed.

On my site I use a common jbcore folder location which is referenced on each web page where a gallery is embedded via baseUrl. I have been previewing my pages offline by opening them up in Safari on the Mac I'm authoring the pages.

While using jbcore 1.3.3 when I changed the browser's user agent to iPhone and load the page I would get the splash that states the name of the gallery, the number of images and the VIEW GALLERY link. Clicking the link would open the gallery's first image and give me the show thumbnails and close gallery buttons on the upper right. Clicking on the right button to go to the next image doesn't work. More importantly, which might be a clue, the page's URL gets appended with #expanded.

When I replaced the jbcore folder with the 1.4 version and reset my web browser I get a similar splash page after I change the user agent in the browser to iPhone. When I click the VIEW GALLERY link instead of getting the gallery like I did with 1.3.3 I get a completely white screen. Also, instead of getting the #expanded text appended to the gallery page's URL the page URL changes to the full.html located in the jbcore page. If I look at the source in the browser it appears it is indeed the full.html page from the jbcore folder.

I rolled back to the 1.3.3. jbcore folder as this appears to solve the display bug. Can somebody clarify what might be happening and if there's some sort of workaround (or is this expected behavior?).

Thanks in advance,

Bill

10

(9 replies, posted in Juicebox-Pro Support)

Thank you for the follow-up. I look forward to hearing that this is resolved so I may complete my multi-site purchase.

11

(9 replies, posted in Juicebox-Pro Support)

It happens on three different browsers: Safari, Google Chrome and Firefox. All browsers caches were emptied (in fact, Chrome was a new install so there was nothing there prior to this).

In all cases Paypal shows the regular price in spite of the fact ir has the coupon code (with a couple of extra characters) acknowledged as the promotional code.

In fact, here's a screen shot of the Paypal screen (with the code obscured)

http://www.capitalradio.us/kroypix/pict.gif

12

(9 replies, posted in Juicebox-Pro Support)

I wanted to purchase JuiceBox Pro but even though Paypal acknowledged the promo code recently tweeted, the total was still the regular price on the Paypal checkout screen.

With that I didn't proceed with my purchase. What gives?