no random thumbs in categories view?

Phoca Gallery - image gallery extension
User avatar
Bouss_fr
Phoca Member
Phoca Member
Posts: 11
Joined: 23 Feb 2008, 00:17
Location: France
Contact:

no random thumbs in categories view?

Post by Bouss_fr »

Hi there!
I wish to display always the same thumbnail (the first pic) for a category in categories view.
In other words I don't want to have a random display of thumbnails from the category.

Is that "simply" possible or which file must I modify? :idea:

Thanks :)
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: no random thumbs in categories view?

Post by caro84g »

it's 'simply' possible.

See this post:viewtopic.php?f=1&t=1148#p6583

Good luck!

Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
User avatar
Bouss_fr
Phoca Member
Phoca Member
Posts: 11
Joined: 23 Feb 2008, 00:17
Location: France
Contact:

Re: no random thumbs in categories view?

Post by Bouss_fr »

yes!
thanks a lot :twisted:

to be acurate, the tip was originaly given for "subcategory thumbnail"
For "first level" categories, the lines (rows) to check are:

Code: Select all

CATEGORY VIEW:
[OPEN] components\com_phocagallery\models\category.php
row 438
[FIND]: ' ORDER BY RAND()';
[REPLACE TO]: ' ORDER BY ordering';

CATEGORIES VIEW:
[OPEN] components\com_phocagallery\models\categories.php
row 166
[FIND] ' ORDER BY RAND()';
[REPLACE TO] ' ORDER BY ordering';
Yipee! 8)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: no random thumbs in categories view?

Post by Jan »

ok
If you find Phoca extensions useful, please support the project
Post Reply