Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Observation, not criticism, think to the future....  (Read 852 times)

0 Members and 1 Guest are viewing this topic.

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 210
Observation, not criticism, think to the future....
« 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.
Logged
Sharpo (not an expert, just a Coppermine user) my main gallery was started in January 2006.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15527
Re: Observation, not criticism, think to the future....
« Reply #1 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.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 210
Re: Observation, not criticism, think to the future....
« Reply #2 on: August 20, 2018, 03:17:32 pm »

Thanks Αndré,

I'll study that when I have a spare moment.
Logged
Sharpo (not an expert, just a Coppermine user) my main gallery was started in January 2006.

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 210
Re: Observation, not criticism, think to the future....
« Reply #3 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.
Logged
Sharpo (not an expert, just a Coppermine user) my main gallery was started in January 2006.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15527
Re: Observation, not criticism, think to the future....
« Reply #4 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;
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.