Modification: Rating Module

This is a discussion on Modification: Rating Module within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; The rating module allows site visitors to review listings or members. Click here to view the full details. If you ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Modules & Modifications

 
LinkBack Thread Tools Display Modes
  #1  
Old 05-24-2006, 11:25 AM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,289
Rep Power: 98
Post Modification: Rating Module

Quote:
The rating module allows site visitors to review listings or members.
Click here to view the full details.

If you have any questions or need support with this modification please reply below.

Reply With Quote
  #2  
Old 06-12-2006, 01:39 PM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,289
Rep Power: 98
Default

A bug has been reported where the module wasn't sending out emails.

I have now uploaded a new version v1.2 and you can download this from the following location:
http://www.68classifieds.com/documen.../Rating_Module
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #3  
Old 06-12-2006, 06:51 PM
Senior Member
 
Join Date: Mar 2006
Posts: 110
Rep Power: 14
Default

Eric,

I just noticed that when you go to add a review when you are not logged in you are taken to your startup page rather than the page you are wanting to review (http://www.68classifieds.com/modific...g.php?view=30).

Is this able to be changed easily ... as I found it a tad frustrating having to backtrack/find the page I was wanting to review.

sleepy
Reply With Quote
  #4  
Old 06-16-2006, 11:49 AM
Member
 
Join Date: Jun 2006
Posts: 59
Rep Power: 12
Default member_rating.tpl.php

I'm implementing the rating's module and would like to restrict ratings to only registered users. The instructions detail how to do this

Code:
If you would like to restrict reviews to only registered users you could open the
template file member_rating.tpl.php and add this:
{if $smarty.session.username<>""}
{$smarty.const.LANG_WRITE_REVIEW}</a>
{else}
Please login to add a review.
{/if}
But I can't find the member_rating.tpl.php template anywhere (I'm using Default).
Reply With Quote
  #5  
Old 06-16-2006, 11:51 AM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,289
Rep Power: 98
Default

That should be located at: modules/member_rating/templates/member_rating.tpl.php

Each module can have its own template folder that way everything dealing with that module is in one place.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #6  
Old 06-19-2006, 06:06 PM
Member
 
Join Date: Jun 2006
Posts: 59
Rep Power: 12
Default

Ah, so it's not in the overall templates folder, and not accessible via the admin section of the Web site.

I did find the proper template, added the code, and it appeared on the site. However it did nothing to stop someone from submitting an anonymous review. It just said "please login to add a review" but didn't force a login.
Reply With Quote
  #7  
Old 06-25-2006, 06:38 AM
frommarcq's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 118
Rep Power: 14
Default comments displayed when 'approved' is on 'No'

Could you tell me if you reproduce this problem ?

In member rating, even if 'approved' is 'N' (I've asked for a manual validation), the comments are displayed without any action.

Pascal
__________________
68classifieds (V4.0.9Developer)
Reply With Quote
  #8  
Old 06-26-2006, 12:21 PM
frommarcq's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 118
Rep Power: 14
Default

In fact, the problem occured only with 'member rating', not with 'listing rating'.

I think I've fixed this bug : in 'modules/member_rating/mod_user.php' please replace :
Code:
$sSQL = "SELECT id,added,person,review,score FROM ".PREFIX."rating WHERE uid=".$member." ORDER BY added DESC";
with :
Code:
$sSQL = "SELECT id,added,person,review,score FROM ".PREFIX."rating WHERE uid=".$member." AND approved='Y' ORDER BY added DESC";
I hope the code is correct...

Pascal
__________________
68classifieds (V4.0.9Developer)
Reply With Quote
  #9  
Old 06-26-2006, 06:29 PM
Junior Member
 
Join Date: Jun 2006
Posts: 3
Rep Power: 0
Default

Seemed like a good plan rommarcq but your change didn't work for me either.

The result was that I couldn't post either a listing or a member review and it didn't matter if I was logged in or not.

Oh well, I guess I'll just need to hold off with the "member rating" until another fix is identified.

A listing rating is definitely cool in the mean time.

- Fletch
Reply With Quote
  #10  
Old 06-26-2006, 06:33 PM
Junior Member
 
Join Date: Jun 2006
Posts: 3
Rep Power: 0
Default

Also thought you guys would be interested that as soon as I put the original mod_user.php file back in, all the test user reviews I put in showed up. But now the listing doesn't accept reviews. Eek!

I think we need some more detailed instructions on implementing this particular mod. I haven't had this much trouble with any of the other mods.

- Fletch
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification: RSS Feed Module juven14 v3.1 Modules & Modifications 68 08-22-2008 11:01 AM
Modification: Users Online Module juven14 v3.1 Modules & Modifications 30 07-02-2008 10:59 AM
Seller Rating Modification Jake Pre Sales Questions 2 10-25-2006 12:14 PM


All times are GMT -4. The time now is 02:41 AM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22