Question change default layout to albums rather than latest images.

Status
Not open for further replies.

JaiKai

Customer
Hi,

Is there a way to set the default listing type on the gallery home page ?

Its tuck on latest images and I would like it to be changed to latest albums as default !
 
Hi,

Is there a way to set the default listing type on the gallery home page ?

Its tuck on latest images and I would like it to be changed to latest albums as default !

If you edit dbtech/gallery/modules/gallery/actions/main.php

Find

PHP:
$sort          = (in_array($vbulletin->GPC['sort'], array('newest', 'highest', 'comment', 'album', 'username')) ? $vbulletin->GPC['sort'] : 'newest');

change it to

PHP:
$sort          = (in_array($vbulletin->GPC['sort'], array('newest', 'highest', 'comment', 'album', 'username')) ? $vbulletin->GPC['sort'] : 'album');

That will default to albums.
 
Similar to, yet different than, the request above: I would like to keep the default system - (browse by category and newest image) - but also add a link that allows people to browse by album as well, without having to go to individual users' profiles. Is that possible? If so, what URL would I use to create this link?

Thanks!!
 
Status
Not open for further replies.

Legacy DragonByte Gallery

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
865
Customer rating
0.00 star(s) 0 ratings
Back
Top