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
TOPIC: How to display author on Lend Request Email
#2121
minimoo (Visitor)
Fresh Boarder
Posts: 5
graphgraph
User Offline
How to display author on Lend Request Email 5 Years, 3 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: 4856
graph
User Offline Click here to see the profile of this user
Re:How to display author on Lend Request Email 5 Years, 3 Months ago Karma: 61  
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
What are you looking for?
Anti-spam question: How many eyes has a typical person?