OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
How to display author on Lend Request Email (0 viewing) 

BookLibary Component Support

Go to bottom Favoured: 0

How to display author on Lend Request Email

minimoo (Visitor)
Posts: 0
graphgraph
User Offline
How to display author on Lend Request Email 12 Years, 9 Months ago
Karma: 0  
Hi,

I need to display the Author on Lend Request email. Has anyone done this before and can let me know the right code? I have defined $book_author = _BOOKLIBRARY_LABEL_AUTHORS; and that works fine, but I haven't been able to display the author's name (it comes up blank on the email). Here is what I've tried:

$book_author.': '.$item_book[0]->authors.'
$book_author.': '.$item_book[0]->author.'

Thanks beforehand,
Rianti
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:How to display author on Lend Request Email 12 Years, 9 Months ago
Karma: 101  
hello,

In file:
{yours host}/joomla_15/components/com_booklibrary/booklibrary.php

You will see function: saveLendRequest

In it you see
Code:

$zapros = "SELECT id, bookid, isbn,title FROM #__booklibrary WHERE id=".intval($bids[$i]).";";


replace that to :
Code:

$zapros = "SELECT id, bookid, authors, isbn,title FROM #__booklibrary WHERE id=".intval($bids[$i]).";";


and after that use:
Code:

$item_book[0]->authors


Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»