forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: sharpo on August 19, 2018, 12:03:13 pm

Title: Observation, not criticism, think to the future....
Post by: sharpo on August 19, 2018, 12:03:13 pm
My first gallery, which is still going, was started in 2006 and has over 24,000 images. Bit disorganised, like me really, but useful for adding photos - many of which are now cropped from videos that I film.

I've not really spent much time on making it suitable for mobiles, until just recently, but when I installed 1.6.04 for testing, I noticed some of the documentation refers to many people still using 800 pixel screens etc. Surely things have moved on a lot since then???

Trying to make a site suitable for mobile viewing, with less columns for thumbnails, seems to make it look rather empty when viewing on a computer monitor/screen. In the future, could there be an option for different settings for mobiles and computer screens?

Anybody have any thoughts on this or anything else for the future?

Sharpo.
Title: Re: Observation, not criticism, think to the future....
Post by: Αndré on August 20, 2018, 02:16:45 pm
May be an idea to add such options the the configuration. If you need it now, the theme switch plugin could be used to achieve your goal: http://forum.coppermine-gallery.net/index.php/topic,74827.0.html

If you have a look at the theme.php file of one of my mobile themes, you'll find something like
Code: [Select]
// General appearance
$CONFIG['main_page_layout'] = 'breadcrumb/catlist/alblist';
$CONFIG['main_table_width'] = '100%';
$CONFIG['debug_mode'] = 0;

// Category / Album list view
$CONFIG['albums_per_page'] *= $CONFIG['album_list_cols'];
$CONFIG['album_list_cols'] = 1;
$CONFIG['subcat_level'] = 1;
$CONFIG['first_level'] = 0;

// Thumbnail view
$CONFIG['thumbrows'] *= $CONFIG['thumbcols'];
$CONFIG['thumbcols'] = 1;
$CONFIG['max_tabs'] = 5;
//$CONFIG['tabs_dropdown'] = 0;

// Image view
$CONFIG['display_film_strip'] = 0;
$CONFIG['display_pic_info'] = 0;
which overwrite some config values if a mobile device is detected.
Title: Re: Observation, not criticism, think to the future....
Post by: sharpo on August 20, 2018, 03:17:32 pm
Thanks Αndré,

I'll study that when I have a spare moment.
Title: Re: Observation, not criticism, think to the future....
Post by: sharpo on August 22, 2018, 11:14:34 pm
Αndré,

As I already use theme switch, I have added a thumbnail strip for mobiles and changed the thumbnail column from 1 to 2 and think it does look better.

One thing I where I am lost is that with the 1.5 gallery, when viewing on a tablet, I can click an icon to go to mobile view, and from mobile view, using "Jump to page" dropdown - I can select "normal view". But with 1.6 the dropdown has a blank where "Normal" should be, but if I click on the blank area it will change the view.

I'm obviously showing my lack of knowledge but can't work out which file to edit to add the word "Normal".

Sharpo.
Title: Re: Observation, not criticism, think to the future....
Post by: Αndré on September 18, 2018, 01:56:02 pm
Open codebase.php, find
Code: [Select]
    require_once "./plugins/theme_switch/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/theme_switch/lang/{$CONFIG['lang']}.php")) {
        require_once "./plugins/theme_switch/lang/{$CONFIG['lang']}.php";
    }
and replace with
Code: [Select]
global $lang_plugin_theme_switch;