Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#469 2008-04-16 17:43:16

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: smd_slimbox

sign wrote:

But, for now, all I want is a plugin that generates this:

<a href=“image url” rel=“lightbox”>some text</a>

And, when clicked, uses lightbox to display the image;

I’ve done precisely that by applying this fairly straightforward code hack and then (using standard Textile link syntax plus the extra attribute in square brackets provided by the hack):

"This is a great picture[lightbox]":http://farm4.static.flickr.com/agreatpicture.jpg

instead of:

"This is a great picture[external]":http://farm4.static.flickr.com/agreatpicture.jpg (which would generate the separate new browser window).

Couldn’t somebody turn the hack into a plugin, please???

Last edited by keith (2008-04-16 17:46:21)


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#470 2008-04-24 02:41:46

colin99
Member
Registered: 2005-11-15
Posts: 58

Re: smd_slimbox

I wish to be able to align my images to the left or the right… with the text wrapping – here is an example of how I do not want it to look.
I have try float=“left” and align=“left” in css but nothing is working… http://coffee.bc.ca/cafeculture/323/if-they-say-so


On the World Wide Web since Day 1 – Editor/Creator – Coffeecrew.comCoffee.bc.ca
Twitter – Twitter.Com/CoffeeCrew -

Offline

#471 2008-04-24 08:49:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,568
Website GitHub

Re: smd_slimbox

colin99 wrote:

I wish to be able to align my images to the left or the right… with the text wrapping

I’m not quite sure from your link which picture you want aligned left or right, but generally in the page flow you would put your slimbox tag / image first (with wraptag="div" cellclass="artimg") , then your body. In your css you then target the cellclass like this:

.artimg {
  float:left;
}
.artimg span {
  text-align:center;
}

That should float your pic and caption to the left, and centre your caption text under the image.


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

Offline

#472 2008-04-24 16:03:15

colin99
Member
Registered: 2005-11-15
Posts: 58

Re: smd_slimbox

Ok – that made a difference – but I want single images aligned to the left or right with the text wrapping around the single gallery image as if it was one image in normal content. I fixed this link to better indicate the one image I want to focus on.
http://coffee.bc.ca/cafeculture/323/if-they-say-so

Here is an example of how I want my content to look – except in this case, this is a normal TXP image placement:
http://coffee.bc.ca/local/321/the-conversation-series-part-one-food-on-the-table

Thanks for your quick response Stef – as always, I love the subversive and unique quality of your online presence!


On the World Wide Web since Day 1 – Editor/Creator – Coffeecrew.comCoffee.bc.ca
Twitter – Twitter.Com/CoffeeCrew -

Offline

#473 2008-04-24 16:06:03

colin99
Member
Registered: 2005-11-15
Posts: 58

Re: smd_slimbox

Ah! Got it! <txp:smd_slimbox imageid=“239” align=“left” wraptag=“div” cellclass=“artimg” imagecaption=”?alt” />

align = “left” or “right” or whatever…


On the World Wide Web since Day 1 – Editor/Creator – Coffeecrew.comCoffee.bc.ca
Twitter – Twitter.Com/CoffeeCrew -

Offline

#474 2008-04-26 22:00:13

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

Hi Stef! Sorry for interrupting your topic, but may be shuld make a new topic of watermark plaugin smd_watermark and start to teset and develop it? :)

Last edited by the_ghost (2008-04-26 22:02:14)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#475 2008-04-26 22:09:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,568
Website GitHub

Re: smd_slimbox

the_ghost wrote:

may be shuld make a new topic of watermark plaugin smd_watermark and start to teset and develop it? :)

It’s on the TODO list, believe me! I’m mad busy editing a music video right now, but I’ll try and get to it (along with my other unfinished plugins) as soon as I can.


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

Offline

#476 2008-05-01 10:43:15

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

Just in case it would help – link to some of mine efforts with scipt of resizer.php


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#477 2008-06-04 11:27:24

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: smd_slimbox

Greetings! First of all, Many Thanks to Stef Dawson for the great plugin. I am trying to use slimbox. It’s working but still need help.
I need one image in a row and its caption(image description) along image side.

I want to display image and caption this way..

Image1 Its description here
Image2 Its description here
Image3 Its description here

Could you help me on this? Appreciate your great help.

Thank you so much for your kind help.
Sheru

Offline

#478 2008-06-04 12:29:23

MattE
New Member
Registered: 2008-06-04
Posts: 7

Re: smd_slimbox

Hi There,

i’m both new to Textpattern and Slimbox.

Im unsure why, but for some reason textpattern is removing my Mootools and Slimbox embeds from the output.

Does anyone know of a solution to this?

Heres what the Head section looks like:

<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<title><txp:page_title /></title>
<link rel=“home” href=”<txp:site_url />” />
<txp:feed_link flavor=“atom” format=“link” label=“Atom” />
<txp:feed_link flavor=“rss” format=“link” label=“RSS” />
<txp:css format=“link” />
<script type=“text/javascript” src=”/js/mootools.js”></script>
<script type=“text/javascript” src=”/js/slimbox.js”></script>
<link rel=“stylesheet” type=“text/css” media=“screen” href=”/css/slimbox.css” />
</head>

Offline

#479 2008-06-04 13:23:12

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

MattE – why do you think that txp removes your mootools\slimbox? What’s the browser is showing? Can you provide browser-side source output?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#480 2008-06-04 14:40:35

MattE
New Member
Registered: 2008-06-04
Posts: 7

Re: smd_slimbox

the_ghost wrote:

MattE – why do you think that txp removes your mootools\slimbox? What’s the browser is showing? Can you provide browser-side source output?

I haven’t a clue why its happening, browser is showing everything correctly apart from the obvious lack of Slimbox due to the code not being loaded.

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title>Company Name : Photos</title>

	<link rel="home" href="http://192.168.1.69:8888/TX/" />

	<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="http://192.168.1.69:8888/TX/atom/?section=About" />
	<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://192.168.1.69:8888/TX/rss/?section=About" />

	<link rel="stylesheet" type="text/css" media="screen" href="http://192.168.1.69:8888/TX/textpattern/css.php?s=About" />
</head>

Last edited by MattE (2008-06-04 16:42:36)

Offline

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

Board footer

Powered by FluxBB