Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
Re: bos_image_display and bos_image_category for simple image gallery
Uhm… this sounds strange, I’ll think about it. Maybe a different php version has to do with this strange behavior? I didn’t set a default for the limit. Do you think I should ?
I’ll try to explore this. Anyway, thank for your debugging.
Bye!
Z-
Offline
#38 2006-04-03 20:27:14
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: bos_image_display and bos_image_category for simple image gallery
If it helps, the site where it works without the limit attribute has php 4.3.11, and the other one 4.3.10.
I also checked if both plugin versions were the same, and they’re both 0.33.
If you would give the limit attribute a default value, a problem like mine would not occur, but then how often does this happen?
Offline
Re: bos_image_display and bos_image_category for simple image gallery
You’re probably right, but i’d just like to figure out the reason this happened.
When limit is left empty, in the function I set it to 9999999999. Could this be too high for the limit and make the bug happen with some php/mysql version? It is unnecessary, so in future version I’d put it to 9999, that is far enough for a single photo gallery… (I hope so! ;-)) I wonder if this could be the problem.
If anyone knows is welcome! :)
Bye
Z-
Offline
#40 2006-04-16 10:15:15
- helge
- New Member
- Registered: 2006-03-05
- Posts: 6
Re: bos_image_display and bos_image_category for simple image gallery
Hi Zanza,
just upgraded from 0.31 to 0.33 without any problems.
There is still a little problem in the code which prevents a page displaying a picture from validating against W3C XHTML Standard.
In lines 192 and 234 of the PHP-Code where you are setting up <code>$impath</code> you have an ampersand-sign as part of the URL.
Perhaps you should use <code>&</code> instead. With that change applied, the output validates just fine.
Thanks again for this plugin.
Regards,
Helge
Offline
Re: bos_image_display and bos_image_category for simple image gallery
You’re so right, Helge! Thanks for pointing the problem, I missed it.
I’ve now upgraded to 0.34. Also changed the default limit for galleries to 9999.
Bye!
Z-
Offline
#42 2006-04-27 10:32:08
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: bos_image_display and bos_image_category for simple image gallery
Could anybody elaborate on this plugin a bit? Possibly post his/her code? I like to write a more comprehensive tutorial on all the various gallery plugins we have for txp but my time is limited to test them all :) Thanks in advance :)
Offline
Re: bos_image_display and bos_image_category for simple image gallery
There are some basic usage examples in the help. That apart, what do you need most? I think it would be nice to explain how to put up a series of album, not just a gallery, that is pretty simple.
If you have a suggestion, I will try to write a tutorial with an example, but it need to be focused. So let’s focus! If any of you have examples, I will try to replicate them and to explain how to do it.
Some things it could be possible with this plugin:
- a comic gallery, split in episode
- a series of album divided by nested categories
- help me think of…
:)
Z-
Offline
#44 2006-04-28 07:08:28
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: bos_image_display and bos_image_category for simple image gallery
@Zanza, Els
Els was so kind to send me the URL of one of the galleries she set up with the plugin:
http://quintas.portugalore.com/avo/
We could take this gallery as sample and explain how it was set up. I think Els´s gallery covers most one can achive with this plugin, correct?
Last edited by alexandra (2007-01-05 17:15:50)
Offline
Re: bos_image_display and bos_image_category for simple image gallery
Yes, it’s correct, but you could add local navigation: next and forward, and numbered navigation. But basically the multiple galleries Els set up is the reason the plugin is born. Unfortunately my client site is not running yet, so I can’t point to it.
Z-
Offline