Forum Activity for @ultrajam

SteveX
@ultrajam
02/28/17 06:15:29AM
2,589 posts

Overriding lightbox2 options in a template


Design and Skin Customization

Thanks Michael, that works perfectly.
SteveX
@ultrajam
02/27/17 03:42:43PM
2,589 posts

Overriding lightbox2 options in a template


Design and Skin Customization

Thank you Michael, I'm at the end of the day here so I'll give that a try tomorrow. :)
SteveX
@ultrajam
02/27/17 03:24:23PM
2,589 posts

Overriding lightbox2 options in a template


Design and Skin Customization

I think I have that already, how are you setting the options in the template?
SteveX
@ultrajam
02/27/17 03:12:22PM
2,589 posts

Overriding lightbox2 options in a template


Design and Skin Customization

Thanks Michael.

Does that work for you with 2.9.0? I tried replacing the script, but still couldn't set the option in the template.

The only way I could get the result was to edit 2.9.0 to change the default.
SteveX
@ultrajam
02/27/17 12:27:35PM
2,589 posts

Overriding lightbox2 options in a template


Design and Skin Customization

I'm trying to show long and tall, scrollable images in lightbox2. It defaults to images resized to fit the screen.

Lightbox2 documentation says that you should be able to alter that by changing the script options like this:
<script>
    lightbox.option({
      'fitImagesInViewport': false
    })
</script>
http://www.lokeshdhakar.com/projects/lightbox2/

I can't get that to work either with the jamroom version (v2.7.1) or the current version (v2.9.0) of lightbox2.

If I use the github unminified v2.9.0 rather than the jamroom minified v2.7.1, add the if($("#lightbox").length == 0) { ... } lines, and change the defaults in the script it works how I want, but I'd like to just change the options in the template.

Any idea how I can do that?

Thanks :)
updated by @ultrajam: 05/31/17 09:58:24AM
SteveX
@ultrajam
02/21/17 01:58:07AM
2,589 posts

We're buildng an FAQ for jamroom.net. Which Questions should be on it?


Using Jamroom

Maybe a category about customisation?

How easy is it to change the way my Jamroom looks? (css and image overrides)
How easy is it to change the way my Jamroom is layed out? (skin templates)
How easy is it to change the way my Jamroom works? (by installing modules and quota configuration)
How easy is it to add to Jamroom functionality? (template overrides, make a suggestion, and custom modules)
SteveX
@ultrajam
02/18/17 03:40:36PM
2,589 posts

Verify User is Profile Owner


Jamroom Developers

{if jrProfile_is_profile_owner($_profile_id)}
    the profile owner sees this
{/if}
SteveX
@ultrajam
02/18/17 06:00:52AM
2,589 posts

Execute JS after User Login


Jamroom Developers

In that case it might be difficult to do that way.

Could you direct the user to a different page on their profile on login (one that only they will see), and there provide a button to continue to their profile?

If so, take a look at the TOS module which does something similar.
SteveX
@ultrajam
02/18/17 04:19:35AM
2,589 posts

Execute JS after User Login


Jamroom Developers

Try logging in and look at the source of the page you end up on. It will only be written to the page after login, not on any other.
  47