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!
Randomize pictures in category
- Jan
- Phoca Hero

- Posts: 49279
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Randomize pictures in category
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
2) see css
components\com_phocagallery\assets\phocagallery.css
/* tabs */ area
Jan
If you find Phoca extensions useful, please support the project
-
leel
- Phoca Member

- Posts: 10
- Joined: 09 Sep 2008, 22:02
Re: Randomize pictures in category
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!
2) The second question is solved! Thanks for help!
Tnank You!
- Jan
- Phoca Hero

- Posts: 49279
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Randomize pictures in category
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
Jan
If you find Phoca extensions useful, please support the project
-
leel
- Phoca Member

- Posts: 10
- Joined: 09 Sep 2008, 22:02
Re: Randomize pictures in category
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!
Thnaks again!
- Jan
- Phoca Hero

- Posts: 49279
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Randomize pictures in category
try to change it here:
components\com_phocagallery\models\category.php
_buildQuery method
Jan
components\com_phocagallery\models\category.php
_buildQuery method
Jan
If you find Phoca extensions useful, please support the project
-
leel
- Phoca Member

- Posts: 10
- Joined: 09 Sep 2008, 22:02
Re: Randomize pictures in category
Hmm.... very weird that this not helped to me... it's just not load images by random...
- Jan
- Phoca Hero

- Posts: 49279
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Randomize pictures in category
???
If you find Phoca extensions useful, please support the project
-
leel
- Phoca Member

- Posts: 10
- Joined: 09 Sep 2008, 22:02
Re: Randomize pictures in category
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!
Thanks again!
- Jan
- Phoca Hero

- Posts: 49279
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Randomize pictures in category
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
Jan
If you find Phoca extensions useful, please support the project