Quote from: lukwe at Jan 05, 2007, 08:40 AM
I just think pretending to use to different libraries on the same page is not the brightest idea... I’ll give up for now!
Yeah.. it can be hard to get multiple javascript libs work in a same page without collisions..
Quote from: ZAP at Jan 04, 2007, 01:26 PM
- Make the path to the snippet code a declared constant instead of hard-coding it. I have more than one MaxiGallery installation, and I like to develop the new stuff without affecting the old. That means that when I install into a new directory I have to edit all of those hard-coded paths.
I might just do this..
Quote from: ZAP at Jan 04, 2007, 01:26 PM
- Add a variable to NOT register any scripts for the document head. I don’t like to use those (because I often tweak my includes), so I usually end up commenting out that function entirely and placing the include code in a gallery template. I’d prefer to just set a variable in the snippet call rather than having to modify the core files.
- How about adding a generic "Other" embed or slideshow type? I generally use Thickbox, which is not supported because jQuery and mooTools don’t play well together (but I love it for its modal versatility above and beyond image display). If I could choose an "Other" type and just set my templates the way I want them it would be easy for me (and anyone else) to use whatever crazy display script we happen to fancy.
Use your own "custom" display type string and in the templates, use PHx to check the value of display parameter and make it output the code the way you want, ie. take lightbox code from the default template if you need that, etc.. When you use a display type that is not recognized by maxigallery, it shouldn’t include any scripts..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Thanks for this great Snippet! It works very well and it’s very useful!
I have only one problem with MODxHost template footer when i put the mouse over the pictures on IE... The footer changes his position and i don’t know why. This only happends on gallery pages.
Anyway... thanks!
Américo Dias
It’s a CSS thing in your site template.. There’s some CSS rule with a:hover something that you need to disable or override for maxigallery divs.. You can post CSS issues in to the
General Web Design and Development forum.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Great that you got it working! Credits are not necessary and I would actually prefer not having any..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
for anyone playing with jQuery:
an updated version (1.1) had been released, it contains a new method of the main JS object ( jQuery.noConflict(); ) that should
provide compatibility with other libraries that also use the $(...) sintax
I don’t have the time right now to test it with Prototype/scriptacolous, but this seems to address the issue I posted last week...
Please see: kirktuck.com/Working%20Portraits.html
Is it possible in this version of MaxiGallery to have the thumbnails load in an inline style as a background? This helps prevent dragging and dropping the photo. If that was to be done, how can you still click on it to reference the larger image?
How about the background png automatically orienting to the orientation of the thumbnails as seen above?
Thanks!
Yes, it’s possible to make it output in same format by using the templates.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Is it possible to show a polaroid type frame, similar to kirktuck based on the orientation or width and height of a thumbnail?
How can that be done? Would it have to be a conditional?
If thumbnail is 200x100 show this 200x100_background.png
If thumbnail is 100x200 show this 100x200_background.png
Thanks!
the picture width and height is available in the placeholders in maxigallery templates, but if all that you want is that polaroid effect to the thumbnails, i would suggest to hack those bottom corners of the polaroid picture and the piece it back together from those images.. then you can just have white bg on the div that the thubnail is in and that polaroid picture edges are built around it what ever size it may be.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."