Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2010-09-20 14:14:12

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Fancybox and Textpattern

It’s up to you what JavaScript or markup you use. So yes, they are compatible as there would be no reason why they wouldn’t be. Textpattern doesn’t effect JavaScript in a way or another.

Offline

#3 2010-09-20 15:09:18

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

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

#5 2010-09-20 21:43:33

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Fancybox and Textpattern

Textpattern is compatible with everything (almost)


My Plugins

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

#7 2010-09-21 08:35:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

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

#9 2010-09-21 09:01:56

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

Board footer

Powered by FluxBB