| pieter |
|
|---|---|
|
This topic was moving down, and because of the risque of loosing this info. I have put it in docs with Kort as author. 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 |
|
|---|---|
|
thx kort.. |
| Kort |
|
|---|---|
|
Thank you guys. Good luck with your projects! SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
| Kingsley |
|
|---|---|
|
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? <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 13 Jahre) bearbeitet |
| Twiebie |
|
|---|---|
|
Did you initialize the script?
$(".fancybox").fancybox();
|
| Kingsley |
|
|---|---|
|
Yes.. tried placing it between:
$().ready(function() { });
and outside of it. no result. |
| Twiebie |
|
|---|---|
|
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 |
|
|---|---|
|
|