We have 188 guests and 1 member online
OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
How to display author on Lend Request Email (1 viewing) (1) Guest
BookLibary Component Support
Go to bottom Favoured: 0
TOPIC: How to display author on Lend Request Email
#2121
minimoo (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
How to display author on Lend Request Email 11 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.
#2128
admin (Admin)
Admin
Posts: 1673
graph
User Offline Click here to see the profile of this user
Re:How to display author on Lend Request Email 10 Months, 4 Weeks ago Karma: 17  
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