Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#31 2006-03-22 16:52:18

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

Re: bos_image_display and bos_image_category for simple image gallery

Oups ! forget waht I just said. It’s going ok, great !
Sorry for this !

Offline

#32 2006-03-23 18:25:22

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

Re: bos_image_display and bos_image_category for simple image gallery

oualter: Nice to hear you solved. If there’s any problem let me know.

Esl: I made the new version with the url_ext attribute added you could use for your needs (v.3.3, see first post). I hope I correctly understood. Let me know.

Bye!

Z-

Offline

#33 2006-03-23 20:32:25

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

Re: bos_image_display and bos_image_category for simple image gallery

It’s perfect! Thank you very much Zanza!

Offline

#34 2006-04-01 21:32:58

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

Re: bos_image_display and bos_image_category for simple image gallery

I must be overlooking something but I just can’t find out what…

I’m using exactly the same tags on two sites. On one of them it works, on the other it doesn’t.

On the page:
<txp:output_form form="gallery-muzikanten" />

Form ‘gallery-muzikanten’:
<code>
<a name=“foto”></a><div class=“gallery”>
<txp:bos_image_display title=“0” capt=“1” />
<txp:bos_image_index break=“li” wraptag=“ul” cat=“muzikanten” sortby=“name” sortdir=“asc” url_ext=”#foto” />
</div><br style=“clear:both;” />
</code>
Html output:
<code>
<a name=“foto”></a><div class=“gallery”>
</div><br style=“clear:both;” />
</code>
Yes, the category does exist and yes, there are three images in it. Yes (checked 20 times), the plugin is activated.
Exactly the same code works on another site.
This (link removed, it’s not there anymore) is the page where it doesn’t work.

I have a feeling I’m going to feel very very stupid soon… but I just don’t get it.

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

Offline

#35 2006-04-03 09:41:22

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

Re: bos_image_display and bos_image_category for simple image gallery

Uhm… it looks like the problem must be with bos_image_index tag. If I hack your url, the image and the caption can be displayed (by default it is not because no category is initially set). The problem is that the index isn’t displayed. I can’t see why. Can you check the spelling, the attributes? Can you delete it and use a basic form of the tag (without sorting attribute, to say), just to see if we can display the index?

Thanks!

Z-

Offline

#36 2006-04-03 16:20:43

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

Re: bos_image_display and bos_image_category for simple image gallery

Pfff… found it. After a lot of trying, leaving attributes out, renaming the category, re-uploading images, etcetera, nothing seemed to work. But… adding the limit attribute did it! Which is strange, because on the other site I don’t have that attribute and that one does work.
Never mind, I’m glad it’s solved. Thanks for your attention Zanza.

Offline

Board footer

Powered by FluxBB