Support Forums

Rating module : Show member rating on listing page

This is a discussion on Rating module : Show member rating on listing page within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, Before i start i did search the forum but didnt found the answer so... is it possible to display ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 11-18-2009, 01:12 PM   #1
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default Rating module : Show member rating on listing page

Hi,

Before i start i did search the forum but didnt found the answer so...

is it possible to display the member's rating stars (the stars of the rating given to that member) on every listing of that member?

I know how to display the stars of the listing rating, but of the member rating?

Dominick
damiun is offline   Reply With Quote
Old 11-18-2009, 03:41 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Is this not covered in the documentation for the module?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 11-18-2009, 04:13 PM   #3
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

@seymourjames,

No it isnt covered in the documentation (I guess you mean the documentation on ericlbarnes.com right?)
damiun is offline   Reply With Quote
Old 11-18-2009, 09:57 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I do not know if this will work but what happens if you put this into your viewlsiting file and not the member file.

{assign var="rating" value=$smarty.const.FILESYSTEM_PATH}{include file="$rating/modules/rating/templates/member_rating.tpl"}


Then introduce the stars as normal.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 11-19-2009, 06:38 AM   #5
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

@seymourjames,

I tried that yes,
I got the link to place a feedback and i got the overview but with 0 feedback etc.

And if i go to the member page there is feedback, so using the code on the viewlisting page doesnt show the feedback.

Dominick
damiun is offline   Reply With Quote
Old 11-19-2009, 08:29 AM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

The current code only appears to collect listing rating details for the hook thats in the viewlisting template. If you want to collect and display ratings for a user themself when viewing a listing you will need to copy the code from the rating_viewmember() functing on the module and put it in the rating_view_listing() function to pull that data drom the database and assign it to the template.

A lot of the variables are the same however so you will have to alter many of them for the code you copy to the other function.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 11-19-2009, 12:53 PM   #7
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

Hi,

Thanks,
i tried it and get this error:
Quote:

Notice: Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY added DESC' at line 1 SQL: SELECT id,added,person,review,score FROM class_rating WHERE uid= ORDER BY added DESC in /usr/home/deb19947/domains/damiun.nl/public_html/includes/classes/database/mysql.php on line 143
damiun is offline   Reply With Quote
Old 11-21-2009, 06:57 AM   #8
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

No one is able to help me on this matter?
damiun is offline   Reply With Quote
Old 04-30-2010, 11:36 AM   #9
Customer
 
Join Date: Apr 2010
Posts: 1
Rep Power: 0
Jpstewart19 is on a distinguished road
Default Did you ever get this to work

I am struggling with this as well. Has anyone been able to solve this?
Jpstewart19 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rating Module Eric Barnes Modification Release 1 11-30-2008 07:08 AM
Module - Rating Mod Eric Barnes Modules / Plugins / Modifications 7 08-26-2008 08:31 AM


All times are GMT -4. The time now is 11:03 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0