Форуми / Cotonti / Support / FAO Twiebie - Slimbox + Imagescaling plugin (siena)

<<<12

pieter
#16 19.07.2012 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 ...

Відредаговано: pieter (19.07.2012 08:11, 12 років тому)
Kingsley
#17 19.07.2012 07:52

thx kort..

Kort
#18 19.07.2012 08:44

Thank you guys. Good luck with your projects!

SED.by - создание сайтов, разработка плагинов и тем для Котонти
Kingsley
#19 19.07.2012 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?


Відредаговано: Kingsley (06.08.2012 10:59, 12 років тому)
Twiebie
#20 06.08.2012 16:03

Did you initialize the script?

$(".fancybox").fancybox();
Kingsley
#21 07.08.2012 17:25

Yes.. tried placing it between:

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

and outside of it. no result.

Twiebie
#22 07.08.2012 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 08.08.2012 12:43


It is starting to function.. thx twiebster..

<<<12