OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

BookLibary Component Support

Go to bottom Favoured: 0

No Hits and rating

tischerberlin2 (Visitor)
Posts: 0
graphgraph
User Offline
No Hits and rating 13 Years, 8 Months ago
Karma: 0  
Hi,
on my site we don't use the hits and the rating for our books.
So, how can we disable the result-page of the frontend ?
or and which site we have to change the code ???
X,
Hajo
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:No Hits and rating 13 Years, 8 Months ago
Karma: 102  
hello in Book Library software you need for hide hit or rating

open file:
{yours site}/components/com_booklibrary/booklibrary.php
and in all places where you find:
Code:

$params->def( 'hits', 1 );

change to
Code:

$params->def( 'hits', 0 );


and
Code:

$params->def( 'show_rating', 1 );

change to
Code:

$params->def( 'show_rating', 0 );


Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
leeeric999 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:No Hits and rating 11 Years, 11 Months ago
Karma: 0  
I got almost the same question here. I don't really need the rating parts.

After I changed these codes , the hits did not show up anymore,and the rating in category also disappeared. But the rating in specific book still exist as you can see in the attached images.

( 3 places for " $params->def( 'show_rating', 0 );" in the "components/com_booklibrary/booklibrary.php" )

can you please tell me where should I change the codes?

Further, I'd like to do the same thing as www.ordasoft.com/Forum/BookLibary-Compon...t-of-books.html#4786, to make it looks like "Book’s cover – Book’s title – Publication date" .

But I'm not sure if it's different booklibrary version, I didn't find the codes about "SELECT id, isbn, authors, rating, title, catid, fk_lendid, date, hits, URL,imageURL FROM #__booklibrary" in the file
{yours file}/components/com_booklibrary/booklibrary.php

Please help me to figure out what to do. Thank you so much.
Logged Logged
The administrator has disabled public write access.
leeeric999 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:No Hits and rating 11 Years, 11 Months ago
Karma: 0  
another image about the view for a book .
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:No Hits and rating 11 Years, 11 Months ago
Karma: 102  
Hello,

For hide rating, please additional in file:
{yours site}/components/com_booklibrary/booklibrary.html.php
find rows look like:

Code:

   
<tr>
<td nowrap="nowrap" align="right">
<strong><?php echo _BOOKLIBRARY_LABEL_RATING; ?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>
</td>
<td>
<img src="<?php echo  $mosConfig_live_site; ?>/components/com_booklibrary/images/rating-<?php echo $book->rating; ?>.gif" alt="<?php echo ($book->rating)/2; ?>" border="0" />&nbsp;
</td>
</tr>



and replace to
Code:

   <?php if($params->get( 'show_rating' ) == '1'){ ?>
<tr>
<td nowrap="nowrap" align="right">
<strong><?php echo _BOOKLIBRARY_LABEL_RATING; ?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>
</td>
<td>
<img src="<?php echo  $mosConfig_live_site; ?>/components/com_booklibrary/images/rating-<?php echo $book->rating; ?>.gif" alt="<?php echo ($book->rating)/2; ?>" border="0" />&nbsp;
</td>
</tr>
    <?php } ?>



thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:No Hits and rating 11 Years, 11 Months ago
Karma: 102  
Hello

For replace "authors" to "release_Date" in Book library in category show, you need in file
{yours site}/components/com_booklibrary/booklibrary.html.php

find function displayBooks

and in that function replace
Code:

$row->authors


to

Code:

$row->release_Date


and in file {yours site}/components/com_booklibrary/booklibrary.php
find row {yours site}/components/com_booklibrary/booklibrary.html.php
Code:

  $query = "SELECT bl.id, bl.isbn, bl.authors, bl.rating,bl.title, bl.fk_lendid, bl.date, bl.hits, bl.URL,bl.imageURL ".



and replace it to
Code:

  $query = "SELECT bl.id, bl.isbn, bl.authors, bl.rating,bl.title, bl.fk_lendid, bl.date, bl.hits, bl.URL,bl.imageURL, bl.release_Date ".



all other exactly as at www.ordasoft.com/Forum/BookLibary-Compon...t-of-books.html#4786

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