Author Topic: how to upload fb2 books  (Read 50 times)

Offline nikk

  • Coccinella
  • *
  • Posts: 2
  • Karma: +0/-0
how to upload fb2 books
« on: 10 September 2020, 11:00:18 »
Good day!
I cant upload fb2 books, zip books.
I put books to image/books, but doc file i can attached, fb2 or zip i cant.

Vox Populi(x) forum

how to upload fb2 books
« on: 10 September 2020, 11:00:18 »

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.050
  • Karma: +1/-0
Re: how to upload fb2 books
« Reply #1 on: 14 September 2020, 11:13:03 »
Hi nikk,
go to administrator/components/com_abook/helpers/files.php the modify line 25 adding  the extension you need
from:
Code: [Select]
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls" to:
Code: [Select]
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls|fb2|zip"
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!

Vox Populi(x) forum

Re: how to upload fb2 books
« Reply #1 on: 14 September 2020, 11:13:03 »

Offline nikk

  • Coccinella
  • *
  • Posts: 2
  • Karma: +0/-0
Re: how to upload fb2 books
« Reply #2 on: 14 September 2020, 11:34:08 »
Hi nikk,
go to administrator/components/com_abook/helpers/files.php the modify line 25 adding  the extension you need
from:
Code: [Select]
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls" to:
Code: [Select]
public static function files( $name, $active = NULL, $javascript = NULL, $directory, $extensions =  "pdf|doc|odt|txt|epub|xls|fb2|zip"
Thank You!