OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
change link "download ebook" (0 viewing) 

BookLibary Component Support

Go to bottom Favoured: 0

Change link "download ebook"

ellenvdb (Visitor)
Posts: 0
graphgraph
User Offline
change link "download ebook" 13 Years 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.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:change link "download ebook" 13 Years ago
Karma: 101  
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.
ellenvdb (Visitor)
Posts: 0
graphgraph
User Offline
Re:change link "download ebook" 13 Years ago
Karma: 0  
Just what I needed! Thanks.
Logged Logged
The administrator has disabled public write access.
Go to top
»