![]() |
#196 |
Frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,212
Karma: 5422155
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Release 0.2.8 available
Release 0.2.8 is available at http://charles.the-haleys.org/calibre/
This release fixes various bugs and adds the ability to disable downloading of formats on a per-user basis. For the latter, see the new configuration item 'enable_format_download'. Please note: in all previous releases, per-user restrictions did not work when also using the server's internal login facility. Change log: Spoiler:
|
![]() |
![]() |
![]() |
#197 | ||
Frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,212
Karma: 5422155
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Note that the release 0.2.8 provides the 'no download' feature you asked for. |
||
![]() |
![]() |
Advert | |
|
![]() |
#198 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,099
Karma: 19580408
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
|
|
![]() |
![]() |
![]() |
#199 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,099
Karma: 19580408
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Played around with the templates to strip most of the styling and put them in CSS. Here are the revised .tpl files (header, footer, index, category & books_section) along with some sample stylesheets. The file stylesheet.css must be in the same folder as index.php.
stylesheet.css: Code:
001: uses the original styles (stylesheet.css is a copy of this file) 002: similar to original style but uses different font 003 & 004: changed header/footer background color, added button styling 005: similar to 004, added background color Not really particularly artistic. Hopefully, someone with a more artistic bent will modify the CSS to something more pleasing to the eye. Last edited by ilovejedd; 02-16-2012 at 04:34 PM. |
![]() |
![]() |
![]() |
#200 | |
Frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,212
Karma: 5422155
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
While playing with your changes I noticed that the background of the ratings image (images/five_stars.png) was set to white instead of transparent, messing up any change to the background. A fixed file is attached. |
|
![]() |
![]() |
Advert | |
|
![]() |
#201 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Hi,
If anybody is interested I modified the template to make it xhtml and 90% valid w3c code. I modified ilovejedd's template version and added some new styles. I still have some work to do with the book_section.tpl to make it both valid and working. As a side note, I'm using Nginx and I'm not able to download any epub. I can't test with apache so can anybody tell me if download works if the calibre directory is not inside the web site directory (in my case my web dir is /var/www/ebook and my calibre directory is /home/calibre/Calibre). @chaley do you use any versionning system for this project ? a github / google code / bitbucket account could be a good idea, don't you think ![]() |
![]() |
![]() |
![]() |
#202 | ||
Frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,212
Karma: 5422155
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
When other people have had problems with downloading, it has been faulty URL rewriting. The download links have 'extended' information on them (info after the .php segment). If that extra info isn't passed along, the download will fail. Quote:
|
||
![]() |
![]() |
![]() |
#203 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Quote:
Quote:
EDIT : I'm too tired tonight so I'll upload it next sunday ... Last edited by vlad59; 02-24-2012 at 03:33 PM. |
||
![]() |
![]() |
![]() |
#204 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2012
Location: Germany
Device: Sony PRS-T1
|
Error
Hi
I have been reading some time with you very interested in the forum. When I now want to use my eBook available on the web on my books, I've been looking for a way. Here I found the Calibre PHP content server that meets all my needs. I installed everything exactly as directed and adapted the paths. When you call the index.php I get the following error message from the server. Quote:
I hope you can help in solving my problem. The PHP server-info is located here and the page is here. Thanks in advance MIKE Last edited by CyberMike; 02-26-2012 at 01:40 PM. |
|
![]() |
![]() |
![]() |
#205 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 37
Karma: 500222
Join Date: Mar 2011
Device: none
|
EDIT: Solved. I had to move library_dir out of /home and adjust smarty_dir permissions by executing chown -R www-data:www-data /tmp/smarty_test
Thanks for creating and sharing your server! I've set up your content server, but when i open index.php, all i get is an Error 500 in Chrome or a blank page in Firefox/Opera. Apache's error.log gives the exact same message which user Eibi got a month ago. How can i troubleshoot this further? OS: Ubuntu 11.10 Webserver: Apache 2.2.20, PHP 5.3.6-13ubuntu3.6 SQLite3 module enabled, gd support enabled Smarty 2.6.26. Smarty seems to work, at least this does not throw an error: Code:
require_once('Smarty.class.php'); $smarty = new Smarty(); Code:
... $config['library_dir'] = '/home/peter/bib'; $config['web_dir'] = '.'; $config['smarty_web_dir'] = $config['web_dir'] . '/smarty'; $config['smarty_dir'] = '/tmp/smarty_test'; $config['smarty'] = '/usr/share/php/smarty'; ... Last edited by Zatakawa; 02-25-2012 at 11:50 PM. |
![]() |
![]() |
![]() |
#206 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
As promised, here is my XHTML 100% w3c valid version.
I had to modify some PHP code to make it work. If you find some problem with it I'll try to solve as quickly as possible. calibre-php-server-xhtml.zip |
![]() |
![]() |
![]() |
#208 | |
Frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,212
Karma: 5422155
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#209 |
Frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,212
Karma: 5422155
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Thanks for this. I haven't done anything yet because of other commitments, but I will in the next few days.
|
![]() |
![]() |
![]() |
#210 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |
Web Content Server | mezme | Calibre | 7 | 01-08-2010 09:59 PM |
Calibre web server on MAC I cant get to work.. any help appreciated. | stustaff | Calibre | 5 | 01-06-2010 06:05 PM |
Calibre - web server problems | eclpmb | Calibre | 9 | 11-28-2008 02:04 PM |