Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2006-02-28 18:21:17

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

Hello Lee.

As for the original txp:image_display tag, nothing is shown by default in a page template: this tag is used to display the image you click on the list from txp:image_index (in my case, txp:bos_image_index), that you should use in the same page.

This is no good. Just for this reason I added the default attribute to the bos_image_display tag. You may use it to define:

  1. a id number of an image you want to display as first image (default=“nn”); or better:
  2. default=“first”, to display the first image in cat=“flowers” accordingly to the sort criteria used.

So try to add the default attribute, the bos_image_index tag and see if it’sworking as expected! :)

Thank you for checking, bye!

Z-

Last edited by Zanza (2006-02-28 18:27:35)

Offline

#17 2006-02-28 22:52:24

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

I thought that having the default=“first” set by… default in the bos_image_display tag may help! After all I can’t imagine a situation when I don’t want the default turned on.

I updated the plugin so now it should work out of the box with the first image of the category automatically displayed. You can always change the default to a specific image id if needed.

Bye

Z-

Last edited by Zanza (2006-03-01 11:40:06)

Offline

#18 2006-03-01 07:03:48

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: bos_image_display and bos_image_category for simple image gallery

Many thanks for the help, got it working now.

Offline

#19 2006-03-01 12:44:56

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

Nice to hear it works. :)

I added a feature that may be useful: default=“random” option. Now the bos_image_display tag can be used as a standalone tag to display random images from a defined category everywhere in page template. Updated version number to 3.1. See first post.

Bye

Z.

Offline

#20 2006-03-05 08:00:09

helge
New Member
Registered: 2006-03-05
Posts: 6

Re: bos_image_display and bos_image_category for simple image gallery

Hi everybody!

Maybe I found a tiny bug “unwanted feature” in this great plugin ;)

This is the behaviour of bos_image_display wrap according to help
<blockquote>wrap<br /> A wraptag for the whole image+title+caption block.</blockquote>

So I tried to use a div in order to have a div around the img and the caption. But this was the output:
<code><div class=“img”><img src=“3.jpg” style=“height:661px;width:445px” alt=”“ /></div><p>Caption</p></code>

To my mind, either the help or the code is incorrect. Do you agree?

Regards,
Helge

Last edited by helge (2006-03-05 08:01:01)

Offline

#21 2006-03-05 11:55:38

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

It’s true, my mistake.

I needed a wrap around the img to style it, so this is the way I made it work. The help is incorrect.

Now the problem is: should I simply correct the help or should I change the behavior (eventually adding a wrapper only for the image)?

Take in account that by default the image is always showed. So, there is no-need to have a wrapper as attribute for the whole block: in the page template you should simply use a div around the bos_image_display tag.

So I’m thinking to just correct the help.

I should add a wrapper/container attribute only when I add a way to not have the image displayed (i.e., also adding a keyword=“noshow”, that I don’t think useful).

If you have suggestions, you’re welcome.

Thank for the debug! :)

Z-

Offline

#22 2006-03-05 15:15:57

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

I made some fix now that I had the time. V.3.2 is on.

Bye

Z-

Offline

#23 2006-03-10 23:40:43

elmar
Member
From: Southern Germany
Registered: 2004-03-22
Posts: 24
Website

Re: bos_image_display and bos_image_category for simple image gallery

I just have to say that this is really the best image plugin for textpattern I have found. I have tried everything, from Max Ziebell’s plugin (which was made before there were plugins!) all through album_pattern and the very nice rss_image_pop. This is just what I have been looking for. Thanks.

Offline

#24 2006-03-11 23:46:09

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

Wow… I think you’re really exaggerating, but thank you. :)
I’m happy this suits you.

I’m back from my week out of office, and will try to make a better example/documentation online asap.

Bye

Z-

Offline

#25 2006-03-12 21:47:29

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: bos_image_display and bos_image_category for simple image gallery

V.3.2. is working fine here too, thanks for the sortby attribute.
One more question: what I would like to add is that when the page reloads after clicking a thumbnail, the url would be something like …&p=16#photo, so I can wrap a div id=“photo” around the <txp:bos_image_display /> tag, but I can’t for the life of me figure out where to add this in the code.

Offline

#26 2006-03-13 09:53:36

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

Hello Els, Doggiez or whatever. :)

I’m not sure to understand what you mean. You can always wrap the @<txp:bos_image_display /> in a div, In fact I do it too. You don’t need this in the url. So I’m not sure to catch the point. You simply want to reload in that specific point?

I’m not sure I know how to do it, but I could give it a look, anyway.

Z-

Offline

#27 2006-03-13 18:56:16

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: bos_image_display and bos_image_category for simple image gallery

Like this (link removed, it’s not there anymore). (I’m using a name= now instead of div id, because that didn’t work as I intended.)

Last edited by els (2006-08-03 20:56:38)

Offline

#28 2006-03-15 22:16:05

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display and bos_image_category for simple image gallery

Els, just to let you know: it’s possible and easy to add an #name to the url generated, but it takes one more attribute. I did it on my trial installation. I need some time to release it documented. It’s a busy week, I hope to release it soon.

Bye!

Z-

Offline

#29 2006-03-15 22:44:28

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: bos_image_display and bos_image_category for simple image gallery

Great, thanks! Take your time ;)

Offline

#30 2006-03-22 15:36:44

oualter
Member
From: Paris
Registered: 2005-12-03
Posts: 45
Website

Re: bos_image_display and bos_image_category for simple image gallery

Hello Zanza,

I am trying to get the “default” attribute working with an id image in the bos_image_display tag. Unfortunately, it doesn’t seem to work as expected. Indeed, it always gets the first image of my image category.
I have also tried default=“random” and no change, the first image is still getting ahead.
Any idea of what could be wrong ?

More precisely, I’m trying to paginate image galeries, see here
And for my special need, I retrieve the id number I want to display on each page.
example :
<code>
<txp:php>
$c = $_GET[‘c’];
$sql = “select * FROM txp_image WHERE category=’$c’ ORDER BY id DESC”;
$res = mysql_query($sql);
$id_image = mysql_result($res, 8, “id”); echo ‘<txp:bos_image_display sortby=“name” sortdir=“asc” default=”’ . $id_image . ‘” />’;</txp:php>
</code>

That’s the way I found to paginate my galeries, if u got any other suggestions ?

thanks for this great plugin by the way !

Olivier

Offline

Board footer

Powered by FluxBB