Profile rating system
-
Hey all! I’m in need of a rating function that will allow members to rate each others profiles. Each member I have is either a business or a customer. Both would like a way to rate. The customers would like to give the businesses feedback and the businesses feel it could provide good publicity for them. Any way of doing this?
-
There isn’t a profile rate plugin but this one could possibly be adapted
https://wordpress.org/extend/plugins/buddypress-rate-forum-posts/screenshots/
Seems like the right direction! Thank you for the advice! Now…. how would I go about changing this to work? I’m sorry but my skills aren’t really up to par with the task I fear. I will give it a shot but any help would be much appreciated! I know others have been looking for this functionality and have as yet not found it so It is all around a good project to pay attention to. Thanks in advance!
@christophg I have a similar site structure and have been looking for a rating system as well. To date I haven’t found anything except this crumb of hope:
this being done by @dwenaus
At the moment I am working on trying to create a simple solution myself. I may have a look at the plugin mentioned here and see how it works. I’ll post here if I figure anything out.
@embergermedia Let me know what rout your thinking of taking and perhaps we could put our heads together and find a solution. I have been working on an idea but have hit a wall and maybe between the two of us we will be able to fill the gaps
@christophg So far I’m looking to create a custom user data field for the front end, and hard coding it into the member-header file with out current user id restrictions so other members can manipulate it. On the front end it would just be a simple form field of 5 check boxes with a star image set as background images. I am still working on the math to tally total ratings and display out the results as said stars. Think of the star rating system on NetFlix. The form to rate is also the averaged rating display.
Good plan! I was looking into using CMS Press and create a “feedback” custom post type. Then having a post auto created for every member upon registration and make it look like a page attatched to their profile called “rating” or “feedback”. Then I would use the gdstar rating plugin and specify the post type I created. Members would in essence just be rating a post but it should come across as a “feedback” page.
Wonderful idea as well! Hmmm… I wonder which idea would be easiest to implement? I am thinking yours. Since we wouldn’t have to create custom code to track ratings, average and display them. gdstar would handle the heavy lifting.
The only problem I could see is the enormous amount of new pages being created, 1 for each user. We are looking to grow our network to about 10,000 users with in two years!
What do you think?
oh same here and thus the wall I have hit. Although they wouldn’t be as pages on the site but post entries and so wouldn’t clutter up the back end. I also need to see if it would conflict with weather or not you give posting rights to the members. My site is user content driven so I’m not worried but I’m not sure what you got going on.It would be nice to perhaps add commenting to the page too so people could rate and leave a comment. This would be standard functionality of wordpress too though right?
There may be possibility of the blending of the two? Some way to code in a section right on the profile page for feedback and hotwire a plugin to do all the rating?
@christophg I have my math worked out, and the basic structure summarized. I’m going to start the heavy lifting this upcoming week and hope to test by next week. I’l let you know how I make out. If all goes well, I will then study up on how to make this a plugin.
I just saw your update.
I think we may stay away from the comment ability- we desire to keep ratings as benign as possible.
How are you planning to display this info on a users profile page?
ooh good stuff I really look forward to seeing what you come up with! As far as displaying it on the profile pages, I haven’t looked into that yet. My initial idea is the first i mentioned in which it will be on a separate “page” (post) and so the GDstar plugin would take care of that. All I would really need is to link it to each profile page by adding it to the member-header.php
Have you thought about maybe simply calling the content of the linked post and displaying it in an element directly on the profile page? No need for extra navigation. Or perhaps making a simple template for the custom post type? No header or footer…just post content. And displaying it’s content in an iframe?
I just realized something, I need to work out how to make and use cookie info, or something equivalent. I need to keep track of each users rating of each “Brand”, so that if they want to re rate the “Brand” their old rating is subtracted before their new rating is figured in. With out that I am left with either: Hiding the rating form for good from the user on a per “brand” page basis after they rate, OR allowing each user an unlimited number of ratings per “Brand” (that could get ugly fast!!)
Yea the unlimited thing is not so pretty… You could try taking apart the “Rate Forum Posts” plugin. It only allows one per user. Alas I cannot be of too much cookie help there as I don’t know the topic well enough but I will continue to think on this problem.
As for displaying the content in a frame, I like it! i shall look into how to go about coding that unless you have a thought?
Hmm.. interesting idea to look into that plugin. I’ll give it a look. I think firstly though, I am going to see if my idea will even work on a basic level. Then I’ll look into this problem.
As for yours, I think just a simple post template is all that would be needed. If it has none of the sites styling (ie, header and footer or wrappers), it will fit nicely within the iframe you give it. And if you set the frame to border=”o”, it will look clean with the page.
I am interested in the basics of your idea. How will you automatically assign each user a post? And will this happen for old users? Or is it easier for new users?
Well I actually found a plugin file for just that purpose! it was created by justbishop.
`<?php
/*
Plugin Name: User Feedback Page
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: Creates a post for each user on registration to which other members may add comments to. The new post is titled with the user’s login name for easy linking from user profiles. Check out the plugin CMS Press for creating your custom post type. Idea by justbishop, code HEAVILY guided by templaedhel (thanks again!)
Version: 0.0.1
Author: templaedhel, justbishop
Author URI: http://thingscosmomakes.com/, http://www.clothunderground.com
License: GPL2
*/add_action ( ‘user_register’, ‘create_feedback_page’ );
function create_feedback_page($user_id){
$user_info = get_userdata($user_id);
$new_post = array(
‘comment_status’ => ‘open’, /* important, probably shouldn’t change */
‘post_title’ => $user_info->user_login, /* titles the post */
‘post_content’ => ‘Read what others have to say about us! If we have worked with you please feel free to rate our performance!’,
‘post_status’ => ‘publish’, /* go ahead and publish, right? */
‘post_date’ => date(‘Y-m-d H:i:s’), /* Just the timestamp */
‘post_author’ => ‘1’, /* ID of author. Set to admin to prevent users from editing the feedback comments on themselves */
‘post_type’ => ‘feedback’, /* name of custom post type (must be created first) */
);
$post_id = wp_insert_post($new_post);
}
?>`Interesting. Though I tried following the links there and they took me no where.
How is your experiment coming along?
I had some family business, and paying work take priority this week. So I may not get to mine for a few more days.
I am having the same problem with it currently. It says no post exists when I follow the link. I think the framework for it is good though so I will play with it a bit and see what I can do.
I feel you man, paying work comes first. Hopefully this internet business will be up and running though so I can work from home!
Say, you wouldn’t have any thoughts on how to facilitate multiple registration forms that are compatible with buddypress but use S2members membership levels to decide which registration form to go to? Just a shot in the dark lol.As opposed to multiple reg forms using s2member levels, I have created a business profile group for my Brands (S2 level 2). I use the s2member levels and css to hide this profile group from “consumers” (S2 level 1) on the site.
I have then created a private group just for the brands, and created a condition loop in the member header that shows the info from the brand profile section if filled out and only if they belong to this private group.
If this idea appeals to you and you need details let me know.
Wish you luck with the new venture!!
You’re a genius! I would love details if you could spare them!
Sure thing. It’s late at the moment, but I’ll round them up for you soon.
Interesting discussion here. @embergermedia , did you consider a vote up and vote down system ? It can be more powerful when we want to use the total votes to do something else.
Sweet thanks! BTW i got that feedback code i gave you to work. I just cleaned it up a bit and BAM it worked, but only with new members. This is fine for me because im still in beta and the only members I have are test members. Hopefully it can help, here is the code:
`<?php
/*
Plugin Name: User Feedback Page
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: Creates a post for each user on registration to which other members may add comments to. The new post is titled with the user’s login name for easy linking from user profiles. Check out the plugin CMS Press for creating your custom post type. Idea by justbishop, code HEAVILY guided by templaedhel (thanks again!)
Version: 0.0.1
Author: templaedhel, justbishop
Author URI: http://thingscosmomakes.com/, http://www.clothunderground.com
License: GPL2
*/add_action ( ‘user_register’, ‘create_feedback_page’ );
function create_feedback_page($user_id){
$user_info = get_userdata($user_id);
$new_post = array(
‘comment_status’ => ‘open’,
‘post_title’ => $user_info->user_login,
‘post_content’ => ‘Read what others have to say about us! If we have worked with you please feel free to rate our performance!’,
‘post_status’ => ‘publish’,
‘post_date’ => date(‘Y-m-d H:i:s’),
‘post_author’ => ‘1’,
‘post_type’ => ‘feedback’ );
$post_id = wp_insert_post($new_post);
}
?>`@christophg Awesome! Can’t wait to have the time to look into it. Unfortunately my community is already over 200 strong, and counting! So unless I can make this idea work retro active it won’t work for my project. I plan to dig into my idea next week. (hopefully it happens this time!)
@imjscn For my communities needs a 5 star system is best. I’m sure it wouldn’t be hard to mold my idea into a thumbs up/down system. Keep watching this thread, as I make progress I’ll post it here. You may also want to look in christophg’s idea if you have a young or new community.
Ok i have the feedback page working pretty well. Now @embergermedia had mentioned trying to frame this post right on the users profile page. Anyone know how to go about that?
- The topic ‘Profile rating system’ is closed to new replies.