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

ErsteVorherige12

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

Dieser Beitrag wurde von pieter (am 19. Juli 2012, 08:11, vor 13 Jahre) bearbeitet
Kingsley
#17 19. Juli 2012, 07:52

thx kort..

Kort
#18 19. Juli 2012, 08:44

Thank you guys. Good luck with your projects!

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


Dieser Beitrag wurde von Kingsley (am 6. August 2012, 10:59, vor 12 Jahre) bearbeitet
Twiebie
#20 6. August 2012, 16:03

Did you initialize the script?

PHP
1
$(".fancybox").fancybox();
Kingsley
#21 7. August 2012, 17:25

Yes.. tried placing it between:

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

and outside of it. no result.

Twiebie
#22 7. August 2012, 19:08

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

JavaScript
1
2
3
4
5
<script type="text/javascript">
    $().ready(function () {
        $(".fancybox").fancybox();
    });
</script>

And the BBcode like this:

1
2
<a class="fancybox" href="$1"><img src="$1" alt="" /></a>
<a class="fancybox" href="$1"><img src="$2" alt="" /></a>
Kingsley
#23 8. August 2012, 12:43


It is starting to function.. thx twiebster..

ErsteVorherige12