Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2006-09-11 15:29:57

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

Re: bos_image_display and bos_image_category for simple image gallery

Ok, that’s good. :)

Bye

Z-

Offline

#92 2006-09-17 21:35:02

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: bos_image_display and bos_image_category for simple image gallery

Hi,

Is it possible to display a random image from any children of a parent category?

The way I would want to use this is something like:

<code><txp:bos_image_display default=“random” cat=“Destinations” /></code>

Where ‘Destinations’ was the parent category for categories of images arranged by countries…

This functionality appears to be present in the bos_subcat_image_index tag, but that one doesn’t allow singular images to be random.

L.


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

#93 2006-09-17 22:51:51

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

Re: bos_image_display and bos_image_category for simple image gallery

Uhm. It’s not possible at the moment, and it is not planned for the next future. What is planned is to have a comma separated list of categories from which to pick the images. It is already working on my site, but I don’t use the feature so you can’t see it at work. It is not yet released because I’m adding some tags to the plugin, and eventually I will rename it to manage albums in an easier way.

I will think about the feature you ask, anyway. I’ll let you know in the coming weeks. Thank for your interest.

Z-

Last edited by Zanza (2006-09-17 22:55:24)

Offline

#94 2006-09-18 09:48:32

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: bos_image_display and bos_image_category for simple image gallery

ok, cool!

out of interest, would it be something easy or hard to implement, considering you have a similar functionality in ‘bos_subcat_image_index’ ? I may have a go myself…

a comma separated list would certainly help, but to be able to select image categories by parent would be a godsend.

L.


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

#95 2006-10-11 04:11:16

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: bos_image_display and bos_image_category for simple image gallery

Great plugin :)

Is it possible to make the links open in a new window?

Offline

#96 2006-10-11 12:55:30

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

Re: bos_image_display and bos_image_category for simple image gallery

Thanks.
New window: nope, like original txp tags from which I tweaked, they are meant to be opened in page, with index and full image side by side. Anyway, with some javascript trickery you should be able to do what you need, but I’m not expert in js. You could also change the code to add a target blank, if you want.

Bye

Z-

Offline

#97 2007-01-04 11:38:06

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: bos_image_display and bos_image_category for simple image gallery

Hi:

This plugin is nice, but I have a strange problem with it: it looks like sortdir and sortby dont work. I´m trying to order by name and asc and theres no response for this params and it allways display the thumbnails list by name desc. I’m sure theres no mistake in my code, so I dont know what to do.

I tried to edit de plugin code and force name / asc by default but there was no changes (well, I´m not a programmer…) I need it in asc order so I can´t use this plugin by the moment. :-( ¿any suggestion? (I´m using txp 4.0.4 and the last version of the plugin).

Thanks a lot.


<txp:rocks/>

Offline

#98 2007-01-04 12:04:14

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

Re: bos_image_display and bos_image_category for simple image gallery

Hello. Which version of plugin are you using? I tried v.0.44, and it looks like it’s working properly. Sortdir asc and sortby name are fine on all tags, as far as I can see.

I vaguely remember a little bug in a very rare situation (all image having the same data!), but this shouldn’t affect the name ordering.

If you point me to a url (also privately) or give me some hint, I could give it a look.

Z-

Offline

#99 2007-01-04 12:33:58

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: bos_image_display and bos_image_category for simple image gallery

Thankyou Z, but I’m developing in a local server so can’t show you the page.
I’m using 0.44 version downloaded from your site. txp 4.0.4, php 4.4.4, and no other plugins (except yours).

This is the code I´m using to display de gallery (I´m putting everywhere sortby+sortdir but the result is allways de same):

< txp:bos_imgnext sortby=“name” sortdir=“asc” default=“first” wraptag=“div” / >
< txp:bos_imgprev sortby=“name” sortdir=“asc” default=“first” wraptag=“div” / >
< txp:bos_image_display sortby=“name” sortdir=“asc” default=“first” title=“1” title_tag=“p” / >

< txp:bos_image_index break=“li” wraptag=“ul” sortby=“name” sortdir=“asc” counter=“1” / >

Result:
imgprev & imgnext:ok
image_display:ok, the first one (example: “001.jpg” alt=“001” dbimageindex:1)
image_index: ordered descendant, ul list: numerated anchors ok 1 to 100, but the real order is descendant first the 100.jpg ,second 099.jpg … and last 001.jpg :-(

Last edited by milosevic (2007-01-04 12:44:55)


<txp:rocks/>

Offline

#100 2007-01-04 15:58:50

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

Re: bos_image_display and bos_image_category for simple image gallery

I tried to use your code for the index, and for me is working fine!

I can’t guess where the problem could be. Are you using the “ character correctly? There are no errors in the spelling?

Apart from this, I can suggest that you try changing names to two images, and use an alphabetic name (aaa, bbb), so that to see if the trouble could be the number. Maybe you’re triggering some strange combination of situations, but I can’t guess which of them. Also, try using an explicit category in the tags, if needed.

Let me know.

Offline

#101 2007-01-04 16:32:02

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: bos_image_display and bos_image_category for simple image gallery

Ummm, perhaps it is a problem wit my MySQL version. If I remove default=“first” from bos_imgnext / bos_imgprev I obtain this error related with mysql:

tag_error <txp:bos_imgnext sortby=“name” sortdir=“asc” wraptag=“div” class=“mas” /> -> Textpattern Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘order by ‘name’ asc limit 1’ at line 1
select * from txp_image where category=‘boda_mauricio’ and id = order by ‘name’ asc limit 1 on line 84

(this error 2 times and another 2 for imgprev).

If I click a thumbnail, the error dissapears and the next/prev control get alive.

I’ll try to upload the web to Internet this night in order to try it in another software environment.

Thank you again. I’ll tell you about.


<txp:rocks/>

Offline

#102 2007-01-05 17:14:18

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

Re: bos_image_display and bos_image_category for simple image gallery

Anyway, with that code you are confirming that sortby name and sortdir asc are working, aren’t you?

Z-

Offline

#103 2007-08-02 04:06:27

cdtavijit
Member
From: Malaysia
Registered: 2007-07-20
Posts: 14
Website

Re: bos_image_display and bos_image_category for simple image gallery

Hi Iota (or anyone else),
It might be a dumb question, but how could i display my thumbs to be displayed next to each other? Normally I am a table person, but how do i do that with CSS?

Offline

#104 2007-08-02 04:16:48

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: bos_image_display and bos_image_category for simple image gallery

floats and clears.

floatorial

Offline

#105 2007-08-02 08:54:29

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

Re: bos_image_display and bos_image_category for simple image gallery

Yes, as Mrdale says. It may be a little tricky at first. You can give a look at the css used for my portfolio as an example.

Z-

Offline

Board footer

Powered by FluxBB