Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-09-20 13:47:57
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Fancybox and Textpattern
Just a question, are them compatible?
Offline
Offline
Re: Fancybox and Textpattern
I second what Gocom said. I use Fancybox on several sites for Image Galleries, playing a video in a modal window and so on.
Offline
#4 2010-09-20 17:47:25
- phuture303
- Member
- Registered: 2008-09-14
- Posts: 127
Re: Fancybox and Textpattern
Here too. Using Fancybox in combination with the wonderful smd_gallery plugin. No problems at all!
Offline
Re: Fancybox and Textpattern
Textpattern is compatible with everything (almost)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#6 2010-09-21 08:28:23
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Fancybox and Textpattern
Does anyone knows why is this not working?:
<link rel=“stylesheet” href=“fancybox/jquery.fancybox-1.3.1.css” type=“text/css” media=“screen” />
<script type=“text/javascript” src=“http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js”></script>
<script type=“text/javascript” src=“fancybox/jquery.fancybox-1.3.1.pack.js”></script>
—
<a id=“inline” href=”#inline1”>This shows content of element who has id=“inline1”</a>
<div style=“display:none”><div id=“inline1”>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div></div>
Last edited by helmz (2010-09-21 08:28:47)
Offline
Re: Fancybox and Textpattern
Did you try
<link rel="stylesheet" href="/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#8 2010-09-21 08:43:05
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Fancybox and Textpattern
colak dijo:
Did you try
<link rel="stylesheet" href="/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
i have it into textpattern folder, so it should be like this:
<link rel=“stylesheet” href=”/textpattern/fancybox/jquery.fancybox-1.3.1.css” type=“text/css” media=“screen” />
<link rel=“stylesheet” href=“textpattern/fancybox/jquery.fancybox-1.3.1.css” type=“text/css” media=“screen” />
I tryed both but I dont get any effect
Offline
Re: Fancybox and Textpattern
As colak said, because pages are created by textpattern dynamically you need to make all your hardcoded links absolute paths not relative paths. So either start your links with a / or use the full domain path ie: “http://www.mysite/css/mycss.css”.
That goes for javascript and css.
Last edited by philwareham (2010-09-21 09:02:33)
Offline
#10 2010-09-21 09:06:29
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Fancybox and Textpattern
“http://www.mysite/css/mycss.css”
i did like this too, still not recieving any effect.. but thanks for trying
Offline
#11 2010-09-21 09:34:20
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Fancybox and Textpattern
help please! I dont find the way
Offline
#12 2010-09-21 09:54:11
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Fancybox and Textpattern
Yes but I am trying to use it and I dont find the way :O, dont know where is the error
Offline
#13 2010-09-21 11:15:35
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Fancybox and Textpattern
solved… ty guys
the code im using:
<a id="inline" href="#inline1">click</a>
<a name="inline1">
<div id="fancybox-inner" style="top: 10px; left: 10px; width: 400px; height: 100px; overflow: auto; display:none;">
<div style="width: 400px; height: 100px; overflow: auto;" id="inline1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis id et neque. Nulla sit amet sem sapien. Vestibulum imperdiet porta ante ac ornare. Nulla et lorem eu nibh adipiscing ultricies nec at lacus. Cras laoreet ultricies sem, at blandit mi eleifend aliquam. Nunc enim ipsum, vehicula non pretium varius, cursus ac tortor. Vivamus fringilla congue laoreet. Quisque ultrices sodales orci, quis rhoncus justo auctor in. Phasellus dui eros, bibendum eu feugiat ornare, faucibus eu mi. Nunc aliquet tempus sem, id aliquam diam varius ac. Maecenas nisl nunc, molestie vitae eleifend vel, iaculis sed magna. Aenean tempus lacus vitae orci posuere porttitor eget non felis. Donec lectus elit, aliquam nec eleifend sit amet, vestibulum sed nunc.
</div>
</div>
</a>
Offline
#14 2010-09-30 11:38:27
- helmz
- Member
- Registered: 2010-09-14
- Posts: 65
Re: Fancybox and Textpattern
I post it here, Im using this code with Fancybox but its not working as it should
<a class="fancy" <txp:image id="6"/>
<txp:thumbnail id="6" />
<script>
$('a.fancy').fancybox();
</script></a>
Ty.
Offline
Re: Fancybox and Textpattern
You’ve left off the closing bracket for the opening a tag, and omitted the space before the closing slash in the image tag. You’ve left out the required type attribute for the script. Whether or not you’re using Fancybox correctly I have no idea, because I know nothing about that script.
Code is topiary
Offline