Support > cpg1.6 miscellaneous

Observation, not criticism, think to the future....

(1/1)

sharpo:
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.

Αndré:
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: ---// 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;
--- End code ---
which overwrite some config values if a mobile device is detected.

sharpo:
Thanks Αndré,

I'll study that when I have a spare moment.

sharpo:
Α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.

Αndré:
Open codebase.php, find

--- Code: ---    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";
    }
--- End code ---
and replace with

--- Code: ---global $lang_plugin_theme_switch;
--- End code ---

Navigation

[0] Message Index

Go to full version