Page 1 of 2

Randomize pictures in category

Posted: 12 Sep 2008, 00:53
by leel
Hello,
my version is 2.0.0
and i have a two questions:

1) Can I somehow randomize the sorting of images in categories? for example, when the visitor enters one of the pictures category, he sees the different pictures each time he enters category?

2) I have a black template installed for the gallery, all boxes, categories are okey, they are black... but if i enable the gallery statistics with comment and last picture added, it has a white background... how can i change the statistics background to black?

Thank, You!

Re: Randomize pictures in category

Posted: 12 Sep 2008, 11:41
by Jan
1) Hi, pictures in Category View are ordered by Ordering... do you mean the random picutures which are displayed instead of folder images in Categories View (in Category View as folders)? If yes these are random images from the category or subcategory (you can display folder image or random image from the category, or then you can change the behaviour in html/php/sql)

2) see css
components\com_phocagallery\assets\phocagallery.css
/* tabs */ area

Jan

Re: Randomize pictures in category

Posted: 12 Sep 2008, 18:34
by leel
1) Nope, i mean to let the Phoca gallery mix the photos, change they order in category, each time the category loads for someone. I need it cause i have a huge collection of photos... i have 1000 images in category, and when visitor entering the category, he sees the first 20 pictures, and then he needs to go for example on the 50-th, 60th or 70th page to see the pictures, witch are ordered at the end... so whats the idea? Idea is to give the chance to the last ordered pictures appear on the first page, or on the 5-th 6-th, etc., and not to be on the last pages every time. So is it possible to do?

2) The second question is solved! Thanks for help!

Tnank You!

Re: Randomize pictures in category

Posted: 14 Sep 2008, 16:04
by Jan
1) there is no such option... the only way how to do it, is changing loading data from database - behaviour and adding there order by random instead of order by ordering

Jan

Re: Randomize pictures in category

Posted: 14 Sep 2008, 16:25
by leel
Sorry for bothering, but i'm not a programer, and have now idea where to change the picture image load by random... but if you tell me where do i need exactly to go and what to do, i'll definetely understand... so it would be great if you help me with this, so i could close this topic with 100% satisfaction.

Thnaks again!

Re: Randomize pictures in category

Posted: 15 Sep 2008, 15:11
by Jan
try to change it here:
components\com_phocagallery\models\category.php
_buildQuery method

Jan

Re: Randomize pictures in category

Posted: 16 Sep 2008, 19:47
by leel
Hmm.... very weird that this not helped to me... it's just not load images by random...

Re: Randomize pictures in category

Posted: 16 Sep 2008, 23:14
by Jan
???

Re: Randomize pictures in category

Posted: 17 Sep 2008, 00:55
by leel
Jan, i tryed to replace all the "ordering" words in this file on "random" one by one, but it hadn't any effect, the pictures are still ordering by order. Maybe i'm doing something wrong i don't know... maybe you change the base version of this file to random image loading and upload it here so i could use it?

Thanks again!

Re: Randomize pictures in category

Posted: 18 Sep 2008, 16:40
by Jan
I am sorry but I am not able to try changing code (in thousands row code) for all user's variations because of my time (now I have problems to answer all the topics and email questions :( ) ... I hope you understand :(

Jan