View Single Post
Old 05-27-2016, 04:48 AM   #1259
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 726
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Quote:
Originally Posted by tredelijkheid View Post
... Had quite some trouble to get it to work (Calibre had permission issues with my Synology ...
Did you eventually get it to work the way you wanted it to with your Synology?

Quote:
1. Per default I would like to assign the template “iphone7” to new users. Instead of the obvious “default” template. This should be done in “config_local.php”? In my version of this file I can’t find such a parameter? Do I need to add something?
a - grab the latest version of COPS from Github https://github.com/seblucas/cops
b - in the COPS directory copy the file config_default.php to config_local.php
c - open config_local.php in an editor and change the value of default to ....
Code:
    /*
     * Which style is used by default :
     * 'base'
     * 'default'
     * 'eink' (only available for the 'default' template)
     * 'iphone' (only available for the 'default' template)
     * 'iphone7' (only available for the 'default' template)
     */
    $config['cops_style'] = 'default';
This is a new feature.

I do not like the iPhone7 template on iOS 8 and iOS9. ("wrong" fonts used if I remember correctly)
I once tried to "fix" it for my own devices (iPad and iPhone on iOS 8 and 9 and for OSX 8, 9, 10 and 11 (El Capitan). I'll see if I can find this "fix" again, clean it up a bit and post is somewhere.
ends

Quote:
2. I would like to customize the interface a bit. Example: To search you now have to press a kind of “config” button and I would like to change this into a “magnifying glass” for example. I am a bit familiar with CSS but is there a kind of “Style” guide which explains how to change the interface?
a - I'm not aware of any "style guide". (But I do not claim to know everything)
b - All code is available so amaze us with your new or improved interface.
c - changing the "cog" to a "magnifying glass" should be possible.

Quote:
3. A nice feature of CalibretoOPDS was the option to see the books that were added the last month or he last week. With COPS you can only see the last 50?
a - in config_local.php change line
Code:
/*
     * Number of recent books to show
     */
    $config['cops_recentbooks_limit'] = '50';
to any value you want. I use 1000 for fast servers and a lower number on slow(er) servers like my Synology DS-110j.

Quote:
Regarding the Templates: maybe we can setup a library of user-created templates?
a - Great idea!!
b - just post them here (zipped?) or on github.

Last edited by mariosipad; 05-27-2016 at 07:41 AM.
mariosipad is offline   Reply With Quote