OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
change link "download ebook" (0 viewing) 
BookLibary Component Support
Go to bottom Favoured: 0
TOPIC: change link "download ebook"
#1816
ellenvdb (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
change link "download ebook" 5 Years, 8 Months ago Karma: 0  
Hi,

I am trying to build a catalogue for e-books. These books are on several different servers/sites. If I enable e-book support, the link "download ebook" is shown. Is it possible not to show this link, but the filename/www-location of the e-book instead?

Thanks in advance for replying.
 
Logged Logged  
  The administrator has disabled public write access.
#1818
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:change link "download ebook" 5 Years, 8 Months ago Karma: 61  
Sorry not full understand what you means.
Do you mean show in Book Library not "download ebook", but show real link to file ?

If so you need go to
{yours host}/components/com_booklibrary/booklibrary.html.php

Code:

        <tr>
        <td align="right" >
        <strong><?php echo _BOOKLIBRARY_LABEL_EBOOK; ?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>
        </td>
            <td align ="left">  
          <a href="<?php echo sefRelToAbs('index.php?option=com_booklibrary&task=mdownload&id='. $book->id); ?>" target="blank">
            <?php echo _BOOKLIBRARY_LABEL_EBOOK_DOWNLOAD;?>
          </a>
        </td>
      </tr> 



and change it to

Code:

<tr>
        <td align="right" >
        <strong><?php echo _BOOKLIBRARY_LABEL_EBOOK; ?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>
        </td>
            <td align ="left">  
          <a href="<?php echo $book->ebookURL ; ?>" target="blank">
            <?php echo $book->ebookURL;?>
          </a>
        </td>
      </tr> 



But you must understand not all browsers/ https servers correct support direct links to file.

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#1820
ellenvdb (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:change link "download ebook" 5 Years, 8 Months ago Karma: 0  
Just what I needed! Thanks.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?