Forums / Cotonti / Support / FAO Twiebie - Slimbox + Imagescaling plugin (siena)

<<<12

pieter
#16 2012-07-19 06:57

This topic was moving down, and because of the risque of loosing this info. I have put it in docs with Kort as author.
@Kort, feel free to change it.

After acception you will find it here

... can we help you ...
This post was edited by pieter (2012-07-19 08:11, 11 years ago)
Kingsley
#17 2012-07-19 07:52

thx kort..

Kort
#18 2012-07-19 08:44

Thank you guys. Good luck with your projects!

SED.by - создание сайтов, разработка плагинов и тем для Котонти
Kingsley
#19 2012-07-19 15:18

Will drop a line here when done, so you can see the results of your teaching :)

Added 3 weeks later:

Im probably doing shit wrong, but I followed the tut to the letter.. doesnt work..

So my question; will this work to when you adapt bb code for it?

In ur example, the class is set on the <a href=..> but when I look at the bb code, the default scale class is set on the <img=.. />

<a href="$1"><img src="$1" alt="" class="scale"/></a>

Now, the scale thing didnt work to begin with, but when i change it to fancybox nothing happens, when I set fancybox to a href, it still doesnt work.

http://www.fap-clan.com and look at the curiosity topic. :(

Can some one tell this noobie what he is doing wrong?

This post was edited by Kingsley (2012-08-06 10:59, 11 years ago)
Twiebie
#20 2012-08-06 16:03

Did you initialize the script?

$(".fancybox").fancybox();
Kingsley
#21 2012-08-07 17:25

Yes.. tried placing it between:

$().ready(function() {  });

and outside of it. no result.

Twiebie
#22 2012-08-07 19:08

Try to put this in the header.tpl instead of in the js.js file:

<script type="text/javascript">
    $().ready(function () {
        $(".fancybox").fancybox();
    });
</script>

And the BBcode like this:

<a class="fancybox" href="$1"><img src="$1" alt="" /></a>
<a class="fancybox" href="$1"><img src="$2" alt="" /></a>
Kingsley
#23 2012-08-08 12:43


It is starting to function.. thx twiebster..

<<<12