Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

E-book Library for 9.03


Fully Tested & De-bugged In PHP-Fusion 9.03.00

Derived from: (E-book Library v1.07 For PHP-Fusion v7.01+)
by Khalid545. Web: http://khalid545.olympe.in

Fully bootstrap-grid responsive.
With this infusion you the Admin, may add an unlimited number of E-books as desired.
The infusion comes with an open-source Epub reader for online E-book reading of Epubs only.
PDF E-books are read with your systems PDF reader. Clicking the link calls your PDF reader.
Display of related E-books by title has been removed.
(not compatible with ebook reader)
Site member E-book submissions has been removed.
(not compatible with ebook reader)

  • Multi-level subcategories. (see Admin/E-book Library Admin/Settings)
  • On category pages, E-books may be displayed in a table or a gallery. (see Admin/E-book Library Admin/Settings)
  • Ability to upload an E-book image.
  • Social sharing icons on E-book pages. (see Admin/E-book Library Admin/Settings)
  • E-book downloading for guests. (see Admin/E-book Library Admin/Settings)
  • Comments and ratings for E-books. (see Admin/E-book Library Admin/Settings)
  • Added an open-source epub reader.
  • Epub format E-books may be instantly read in your browser. (see Admin/E-book Library Admin/Settings)

-- View this Item --
Danish language file uploaded ;-)

helmuth wrote:

@helmuth - Danish language file uploaded ;-)

Thanks helmuth - muchly appreciated. cool
Hey helmuth; how long does it usually take for a translation file to be approved? I don't find it anywhere?
I don't know where to find the file - I suppose it shows up when you are logged in at your wallet.

Maby it's an error in the system?

When my pc has finished the latest upgrade I'll attach the file in this thread!
helmuth attached the following file:
danishphp_3.zip [2.36kB / 56 Downloads]
OK thanks again helmuth. Got it added to the archieve and re-uploaded. Good to go my friend. smile
Hello, I've fixed the E-Book on Marketplace and added Translations contributed by Helmuth.

I've taken an initiative to fix a higher-res product icon for this listing. The current icon I have used is from iconfinder.com.
This is great, thank you. I haven't had a chance to try it out but it's something I've been looking for!
File -- infusions/booklib/book.php

Source code (Line: 227 - 247)
227    $numrows = dbrows($result); $i = 0;
228    if ($asettings['display']) {
229    echo "<div class='table-responsive'><table class='table tbl-brdr3'><tbody>\n";
230    echo "<tr><td class='tbl2'>".$locale['book_411']."</td>\n";
231    echo "<td align='center' class='tbl2'>".$locale['book_417']."</td>\n";
232    echo "<td align='center' class='tbl2'>".$locale['book_424']."</td>\n";
233    echo "<td align='center' class='tbl2'>".$locale['book_412']."</td>\n";
234    echo "<td align='center' class='tbl2'>".$locale['book_418']."</td>\n</tr>\n";
235    while ($data = dbarray($result)) {
236    $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
237    if ($data['book_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) {
 Line 237 -- 21 hours ago
A non-numeric value encountered
238    $new = " <span class='small'>".$locale['book_410']."</span>";
239    } else {
240    $new = "";
241    }
242    echo "<tr><td class='$cell_color'>$new <a
243    echo "<td align='center' class='$cell_color'>".($data['book_author'] ? $data['book_author'] : "-")."\n</td>\n";
244    echo "<td align='center' class='$cell_color'><a href='".FUSION_SELF."?book_id=".$data['book_id']."&amp;action=download'><img
 src='".INFUSIONS."booklib/images/download.png' alt='".$locale['book_416']."' border='0' /></a>\n</td>\n";
245    echo "<td align='center' class='$cell_color'>".$data['book_count']."\n</td>\n";
246    $drating = dbarray(dbquery("SELECT SUM(rating_vote) sum_rating, COUNT(rating_item_id) count_votes FROM ".DB_RATINGS." WHERE
 rating_item_id='".$data['book_id']."' AND rating_type='B'"));
247    $num_votes = $drating['count_votes'];

Other errors also if you want me to send you a pdf file with them, let me know...
It's probably this construct that already existed in the original infusion. I'll look into it for a fix as soon as I can.
237 if ($data['book_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) {
 Line 237 -- 21 hours ago
A non-numeric value encountered

Thanks Grimloch... It works, just tiresome to delete the errors. If you want me to, I'll make the others into a pdf for you...
Sure if you want to. Are there that many more??
Just check 'em Grimloch...each error is the same just different cats....
OK I have a fix for you.
Current Line
if ($data['book_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) {

Fixed Line
if ($data['book_datestamp'] + 604800 > ".time()." + ($settings['timeoffset'] * 3600)) {

It saw time() as a non-numeric value because it was not surrounded by the quotes.
I'm adding another category today. So I'll see if this takes care of it :-)

Just tested it, and it works great...thanks Grimloch!
Now I've come here and I don't know the context. Where can I find a download for Booklib / book.php?
I want for PHP-Fusion version 9.03.70 under Linux / Ubuntu.
I have to go to the Wallet and then here:
The e-book works perfectly !!!
I can't insert it into Administration / Overview, ie into:
This is Filename: AdminLTE / classes / Dashboard.inc
| Author: RobiNN.
The report box appears to me on the website, but I don't know yet from which file booklib / items to attach the code to display the number of downloads.


//Insert Kvido 16.09.2020
if (defined('BOOKLIB_EXIST')) {
 $modules['book'] = [
 'title' => $locale['269c'],
 'icon' => 'fa fa-newspaper-o',
 'stats' => [
 ['title' => $locale['269c'], 'count' => $book_items['book']],
 ['title' => $locale['257'], 'count' => $book_items['comment']],
 ['title' => $locale['254'], 'count' => $book_items['submit']]

Thread Information
17 posts
857 times
Last Post
Last updated on 1 month ago
Related Threads
A book about PHP-Fusion
Started by
Berilac - 13 posts
Members only guest book?
Started by
Solomon - 1 post
Guest book problem
Started by
brizie - 4 posts
Guest Book
Started by
radu - 2 posts
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Users who participated in discussion: helmuth, Kvido, Chan, Grimloch, daimonbok1, DarekG