Textpattern Forum

You are not logged in. Register | Login | Help

#211 2007-08-03 12:53:29

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

http://www.okoshki.by/about/proverka-galerei – here is the link to working gallery.

Here is the content of form “slimbox_inc”

<txp:smd_slimbox_inc
jsdir="/textpattern/slimbox/js"
cssdir="/textpattern/slimbox/js" />

Path is good – the following code appears in html:

<!-- Подключаем библиотеку галереи -->
<script type="text/javascript" src="/textpattern/slimbox/js/mootools.js"></script>
<script type="text/javascript" src="/textpattern/slimbox/js/slimbox.js"></script>
<link rel="stylesheet" href="/textpattern/slimbox/js/slimbox.css" type="text/css" media="screen" />

Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#212 2007-08-03 12:56:38

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

Ouch! I found the mistake was in path to slimbox.css… Now everything is working nice! Thank you!


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#213 2007-08-03 21:03:54

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

The new bug,i think :)
In some computers slimbox works bad: in main window it opens directly desirable image (http://www.okoshki.by/images/32.jpg in adress bar) and opens new window with such string in adress bar:
http://www.okoshki.by/images/32.jpg,,http://www.okoshki.by/images/33.jpg,,http://www.okoshki.by/images/34.png,Сертификат%20получен%20ля%20ля%20ля
As you can see, it contains links to 3 images and alt text for one of them – it was entered only for one image…


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#214 2007-08-03 22:34:18

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

One question more – what Components do mootools.js contain? I’d like to use some of abilities of that framework, and want to “recompile” the script, that was with slimbox plugin.
The page to select components – http://mootools.net/download


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#215 2007-08-04 00:33:39

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: smd_slimbox

Bloke wrote:

Now that jQuery has been decided, I’m going to approach wet and ask about ways to do this. I haven’t much idea right now; I can see how I want it to work but I can’t decide the best way to do it.

just wanted to express an interest in this! i have some other jquery functions i’d like to utilize and dont really want to load mootools along with jquery

Offline

#216 2007-08-04 09:14:18

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,913
Website

Re: smd_slimbox

@the_ghost:

In some computers slimbox works bad… it contains links to 3 images and alt text for one of them

I’ve never seen this type of behaviour before. Can you post the tags you’re using and/or a link to a page that exhibits this behaviour (http://www.okoshki.by/ is giving a 500 internal server error right now)?

Since slimbox shouldn’t be able to even generate this ’3 image’ output, I wonder if it’s a plugin/framework clash or simply conflicting options? Of course, it could well be a bug…

One question more – what Components do mootools.js contain?

The list is on Christophe Beyl’s page. But if you want to include more so you can use other parts of the library, you are free to do so.

@iblastoff:

Having now played with jQuery a bit, I too would prefer to use it over mootools (no disrespect to the mootools clan who are all incredibly talented, but the jQuery community is much friendlier for dimwits like me asking questions). The only reason I picked mootools was because that’s what Christophe wrote slimbox in.

I’ve trawled the web for people who may have ported slimbox to the jQuery framework and turned up nothing so far. Someone has released a (buggy) lightbox implementation; there’s also a thickbox implementation (which I don’t particularly like) but no slimbox as yet. If you find one or know a jQuery whizzkid, by all means send them my way.

I’m sure given time, or an infinite supply of monkeys, I could port it myself but I’m not up to speed with how slimbox works its magic, nor how to emulate that in jQuery/interface. I have, however, just started work on what I hope to be the successor to smd_slimbox: smd_thumbs. I’m ripping out all the custom slimbox code and just concentrating on super-flexible thumbnail generation. From there I intend to offer a framework that allows other authors to write bolt-on modules such as slimbox, thickbox, lightbox, thumbpop, slideshow, blah blah to take the list of thumbs and do something useful with it. Just hope I can make it work!

btw, I asked wet for help but he’s a very busy man with the TXP core among other things so, understandably, I’m on my own with this. That equates to “it may take some time”.

Last edited by Bloke (2007-08-04 09:17:41)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#217 2007-08-04 09:33:00

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

Can you post the tags you’re using and/or a link to a page that exhibits this behaviour (http://www.okoshki.by/ is giving a 500 internal server error right now)

the tag is very simple – <txp:smd_slimbox category="sertificates" />

The page is here http://www.okoshki.by/about/proverka-galerei

There are three images in my galery and i think that it’s the key, why all of them go to the adress bar, including caption for on og them. But, regrettably, I can’t find the rule this bug appears. On my girlfriend computer it bugs only in Opera 9.21, but in IE7 – works perfectly. At home it works in Opera and IE6, at my friend comp it bugs in Opera 9.x too. Something strange, yes?

http://www.okoshki.by/ is giving a 500 internal server error right now

Sorry for 500 – I’m trying to switch on gzip compression. Not successfully yet :(

And thanks for link to mootools components!

Last edited by the_ghost (2007-08-04 09:50:28)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#218 2007-08-04 09:51:00

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,913
Website

Re: smd_slimbox

the_ghost wrote:

On my girlfriend computer it bugs only in Opera 9.21, but in IE7 – works perfectly. At home it works in Opera and IE6, at my friend comp it bugs in Opera 9.x too.

Very strange. I’ve just tried your page in Opera 9.21 (Build 8776 on WinXP) and 9.22 (Build 8801) and the slimbox gallery shows fine. So it must be something specific with those computers or Opera versions. Can’t think of any reason at the moment. Hmmmm….


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#219 2007-08-04 10:06:32

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: smd_slimbox

just wanted to chime in and say that http://www.okoshki.by/about/proverka-galerei works fine for me using opera 9.22

Offline

#220 2007-08-04 16:08:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,913
Website

Re: smd_slimbox

Another update. The latest version fixes the Next/Prev links to allow proper navigation of multiple slimboxes per page.

Couldn’t have done it without the help of wheaticus who put me on the right track so kudos to you fella! I had to modify your hack a little because I realised your version only worked if the orderby remained as ‘category’. This one will work no matter what order your thumbs are.

If you don’t care about the technical details, just grab v0.26 and play, reporting any weirdness here. Note also that I squashed another small bugette in smd_lib, taking it to v0.21d.

New attribute: galleryid

With luck, you’ll never need the new option, galleryid. Just install the plugin and it’ll work out of the box, allowing you to put as many smd_slimbox tags per page you like and each Next/Prev link under the thumbnails will only advance that group, leaving all the other pics in their same locations.

It works like this: the program transparently generates a 32-character hash string for each slimbox tag (based on the other options you give it, which should guarantee uniqueness). It then picks a random 4-char code from this string (it takes every 6th character by default) and assigns that to the gallery. In the very unlikely event that this generates two galleries with the same ID you can tweak the galleryid attribute for one or more slimbox tags to avoid the clash.

Either supply galleryid with a unique fixed string (e.g. galleryid="TheGallery2") or give it a question mark and 2 numbers, separated by a colon (e.g. galleryid="?5:4"). The first number is the length of the final string to generate, the second number is how many characters to skip over in the full 32-char string each time it picks one. So in that case, it generates a 5-character string from the characters it finds at positions 1,5,9,13, and 17.

If you miss out the 2nd number (e.g. galleryid="?6") it will just assume it’s an increment of 1, so in this case it’ll use the 1st 6 characters. The help file explains it better, with examples.

As I say, you should never need this option, but it’s there if you need it or simply love tinkering with stuff.

Hope it helps you out, and thanks again wheaticus.

Last edited by Bloke (2007-08-04 16:10:09)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB