ruben |
|
---|---|
hello,
I'm trying to get the plugin fancybox u submitted to work but it won't work how can i get this plugin to work? |
Twiebie |
|
---|---|
Have a look at this small guide: http://www.cotonti.com/docs/help/fancybox_integration |
ruben |
|
---|---|
i did but i have no folder named themes, but skins...so i didnt know what to do with this guide either... |
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. |
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:
|
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>
|
ruben |
|
---|---|
not working, it just opens the img in the same window |
Twiebie |
|
---|---|
Can you paste the code as you have it now, the stuff you included, etc? |
ruben |
|
---|---|
i put the files in the skins/skinname folder
also added class="fancybox" to the img url <link href="skins/{PHP.skin}/jquery.fancybox.css" type="text/css" rel="stylesheet" / > <script type="text/javascript" src="skins/{PHP.skin}/jquery.fancybox.pack.js"></script> <script type="text/javascript"> $().ready(function() { $(".fancybox").fancybox(); }); </script>
|
Twiebie |
|
---|---|
Try this:
Add the fancybox files to skins/yourskin/fancybox
Include the necessary files in your header.tpl like this: <link href="skins/{PHP.skin}/fancybox/jquery.fancybox.css" type="text/css" rel="stylesheet" / > <script type="text/javascript" src="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="linktoimage.png"><img src="linktoimage.png" alt=""/></a> |
ruben |
|
---|---|
still no luck |
Twiebie |
|
---|---|
Join the Cotonti chat channel here: http://www.cotonti.com/chat and I'll try to help you out if you want. |
ruben |
|
---|---|
solved! |