Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Plugin support
  3. » smd_slimbox

#565 2008-10-30 20:04:57

davidoleski
Member
Registered: 2008-10-24
Posts: 10

Re: smd_slimbox

So how/where do I manually include the relevant javascript libraries in my page, with the new update of smd_slimbox_inc no longer being supported? I’m following the same entries as above, and having the same results (images only open as images on a blank page) because the page is not finding the scripts. How do I force the page to find the script, as I’ve tried all the options you mentioned above. I’m using the tag < jsdir=”/js” cssdir=”/css” /> in the head of my page template, what else should I be doing to force the page to use the scripts? Do I have to manually upload a javascript to my server? Is this already included in the plugin? Thanks

Offline

#566 2008-10-31 13:41:03

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,476
Website GitHub

Re: smd_slimbox

davidoleski wrote:

So how/where do I manually include the relevant javascript libraries in my page

I knew this would come back and get me one day when I forgot to put an example of the new syntax in :-)

You need to use normal HTML tags to include the javascript nowadays. So somewhere in your page template (or a form), add something like this:

<head>
  <script type="text/javascript" src="/js/mootools.js"></script>
  <script type="text/javascript" src="/js/slimbox.js"></script>
  <link rel="stylesheet" type="text/css" href="/css/slimbox.css" />
</head>

Adjust the paths according to where you have (separately) uploaded / FTPd the javascript and the stylesheet files. In this case the files are in the js and css folders which are directly off the root of your textpattern installation (the same level as the images and files directories).

Hope that helps get you going.

EDIT: if you are using Firefox, the Firebug add-on has an excellent tool in the ‘Net’ pane that allows you to see at a glance which scripts failed to load. Very useful for getting the paths to the files right :-)

Last edited by Bloke (2008-10-31 13:42:25)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#567 2008-10-31 14:37:30

davidoleski
Member
Registered: 2008-10-24
Posts: 10

Re: smd_slimbox

ahh, yes, thank you, now it works. Beautiful.

Offline

#568 2008-12-31 04:13:32

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: smd_slimbox

Hi everybody,

I just wanted to notify you that I’ve ported my Slimbox to jQuery. You can now download Slimbox 2 from the official homepage.


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#569 2008-12-31 10:36:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,476
Website GitHub

Re: smd_slimbox

cbeyls wrote:

I just wanted to notify you that I’ve ported my Slimbox to jQuery.

Brilliant, thanks for all your work on this Christophe. It’s definitely going to help those of us who like to stick to one library on our sites.

Since it’s kind of related I’ll post a notification in the smd_gallery thread as well.

Happy New Year.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#570 2009-01-08 17:01:30

curiouz
Member
Registered: 2006-06-20
Posts: 56

Re: smd_slimbox

Hi Bloke!

I’m trying to get this to work with shadowbox. For shadowbox to create next/prev links, the “rel” of the link needs to be in this format: rel=“shadowbox[gallery]”. Is this possible with smd_slimbox?

Offline

#571 2009-01-08 17:13:29

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,476
Website GitHub

Re: smd_slimbox

curiouz wrote:

the “rel” of the link needs to be in this format: rel=“shadowbox[gallery]”. Is this possible with smd_slimbox?

I’m not sure it is :-(

As a long shot you can try this hack-ish method:

<txp:smd_slimbox trigger="shadowbox[" groupname="gallery]">

Plus all your other attributes as usual. If you’ve only got one gallery per page and all the images are in the same category, that’ll suit you fine. If not — and you want to split your galleries into groups — you might be able to do this, for example, to split by category:

<txp:smd_slimbox trigger="shadowbox[" groupname="?category]">

I think (would like to hope) that my attribute parser realises that the closing ] is not part of the field code you are trying to insert. Totally untested but it can’t hurt to try. If not, smd_gallery will do it for sure as you can define your own rel= directly.

Last edited by Bloke (2009-01-08 17:14:33)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#572 2009-01-08 23:00:34

curiouz
Member
Registered: 2006-06-20
Posts: 56

Re: smd_slimbox

No luck unfortunately :( your attribute parser isn’t so very smart as you hoped it would be. And I can’t use smd_gallery, for I’m using MLP for this project. I’ve tried to use javascript to change the rel attribute content, but shadowbox doesn’t buy it. I’ll have to wait for smd_gallery to be compatible with MLP.

Thanks for the help :D

Offline

#573 2009-01-08 23:52:11

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,476
Website GitHub

Re: smd_slimbox

curiouz wrote:

No luck unfortunately :( your attribute parser isn’t so very smart as you hoped it would be.

Dammit. Actually, two things I spotted. One: I don’t know how to use my own plugin, it should be ?c not ?category (not that it makes any difference in this case). Two: I just looked at the code and — stupidly — the groupname tag is not actually passed through the smd_lib parser; it’s done, in a limited form, within the smd_slimbox code itself. How retarded. So, no wonder it didn’t work: that plugin attribute sucks, sorry.

And I can’t use smd_gallery, for I’m using MLP for this project.

Well I have a version available that you can use if you like, unofficially. Contact me if you’d like to try it and I’ll sneak you a copy under the table. It won’t be the final version because I want to try and build in one more thing before I release it (and run some more tests). While the planned feature is important for those it affects, only a handful of people will notice so you can probably get away without it.

It’s working spiffingly on my MLP install and has been happily converting gallery alt/caption between English, and my attempts at French and German without a hitch, so I think it’ll work just fine.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#574 2009-01-09 13:45:17

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_slimbox

Just for the record: if you use smd_gallery in tandem with upm_image, it becomes MLP-compatible ;)

Like this:

<txp:variable name="type" value="{type}" />
<div class="image {type} {align}" style="width:{width}px">
  <txp:upm_image image_id="{id}">
  <img src="{url}" width="{width}" height="{height}" alt="<txp:upm_img_alt />" title="<txp:upm_img_caption />"/>
  <txp:if_variable name="type" value="captioned-image">
  <small><txp:upm_img_caption /></small>
  </txp:if_variable>
  </txp:upm_image>
</div>

Let’s move on to smd_gallery thread that I’ve some crazy ideas…


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#575 2009-01-09 13:53:17

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,476
Website GitHub

Re: smd_slimbox

maniqui wrote:

Just for the record: if you use smd_gallery in tandem with upm_image, it becomes MLP-compatible ;)

Nice one! Thanks for the tip.

btw, since you also have a vested interest in smd_gallery, and 80% of the new features are pretty much down to you, if you’d like to try a pre-release copy, drop me a note. I could do with some feedback before it hits the streets.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#576 2009-01-22 16:52:36

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: smd_slimbox

OK … smd_slimbox is working with Fancy Zoom (from http://www.dfc-e.com/metiers/multimedia/opensource/jquery-fancyzoom/) on this page > www.redfoxtestdrive.nl/txp/hoe-ziet-textpattern-eruit … eh … almost! The overlay doesn’t work … !? Everything is in place … eh, I think. It lookes like there is no overlay image. Or isn’t that the way this kind of thing works! Is there somebody to show me the way?

[edit]
OK … I’ll give it a try at Presentation!

Last edited by RedFox (2009-01-23 15:47:16)

Offline

  1. Index
  2. » Plugin support
  3. » smd_slimbox

Board footer

Powered by FluxBB