cotonti.com : fancybox https://www.cotonti.com Son konu mesajları Cotonti en Sat, 17 Jan 2026 16:58:47 -0000 ruben solved! smiley

]]>
Paz, 06 Oca 2013 21:26:34 -0000
Twiebie Join the Cotonti chat channel here: http://www.cotonti.com/chat and I'll try to help you out if you want.

]]>
Paz, 06 Oca 2013 20:26:53 -0000
ruben still no luck

]]>
Paz, 06 Oca 2013 20:08:54 -0000
Twiebie Try this:

Add the fancybox files to skins/yourskin/fancybox

Include the necessary files in your header.tpl like this:

<link href="https://www.cotonti.com/skins/{PHP.skin}/fancybox/jquery.fancybox.css" type="text/css" rel="stylesheet" / >
<script type="text/javascript" src="https://www.cotonti.com/skins/{PHP.skin}/fancybox/jquery.fancybox.pack.js"></script>

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

You also need to add the fancybox class to the img bb code, try it out first with simply adding an image like this somewhere in your theme to see if it works:

<a class="fancybox" href="https://www.cotonti.com/linktoimage.png"><img src="https://www.cotonti.com/linktoimage.png" alt=""/></a>
]]>
Paz, 06 Oca 2013 19:58:13 -0000
ruben i put the files in the skins/skinname folder
also tried skins/skinname/js/fancybox and skins/skinname/fancybox

also added class="fancybox" to the img url
this i added in header.tpl

<link href="https://www.cotonti.com/skins/{PHP.skin}/jquery.fancybox.css" type="text/css" rel="stylesheet" / >
<script type="text/javascript" src="https://www.cotonti.com/skins/{PHP.skin}/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$().ready(function() {
    $(".fancybox").fancybox();
});
</script>

 

]]>
Paz, 06 Oca 2013 19:42:25 -0000
Twiebie Can you paste the code as you have it now, the stuff you included, etc?

]]>
Paz, 06 Oca 2013 19:40:04 -0000
ruben not working, it just opens the img in the same window

]]>
Paz, 06 Oca 2013 19:36:08 -0000
Twiebie You could put that in your header.tpl or footer.tpl file yourself aswell.

Something like:

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

 

]]>
Paz, 06 Oca 2013 19:31:09 -0000
ruben ok i'll give it a try

what do i do with 1.4?

 

1.4. Initialize the plugin in themes/nemesis/js/js.js:

?
1
$(".fancybox").fancybox();

 

]]>
Paz, 06 Oca 2013 19:28:48 -0000
Twiebie Ah, you are still using Genoa.

You could try to drop the files in your skins folder instead then.

I'm not sure cot_rc_add_file() will work on Genoa though, so you might have to include those files into your theme yourself.

]]>
Paz, 06 Oca 2013 19:25:40 -0000
ruben i did but i have no folder named themes, but skins...so i didnt know what to do with this guide either...

]]>
Paz, 06 Oca 2013 19:04:10 -0000
Twiebie Have a look at this small guide: http://www.cotonti.com/docs/help/fancybox_integration

]]>
Paz, 06 Oca 2013 18:58:01 -0000
ruben  

hello,

I'm trying to get the plugin fancybox u submitted to work but it won't work
when i upload the files it says in the admin plugin page: Warning: No tags found in ./plugins/fancybox/fancybox.setup.php

how can i get this plugin to work?

]]>
Paz, 06 Oca 2013 18:51:41 -0000