View Full Version : Trader Ratings v1.2.0
Spinball
08-11-2004, 12:00 PM
Jason,
hi mate - glad to see this hack is getting the popularity it deserves!
I have a problem with my installation.
Please see:
http://www.avforums.com/forums/traderratings.php?u=12711
I.e.. null dates.
I had the first version of this hack for vB3 installed and upgraded vB to 3.0.3.
So I had to upgrade/reinstall the trader rating hack.
It did crash out (see my posting on the previous page).
Do you know where I went wrong and how to fix it?
Thanks.
lifesourcerec
08-11-2004, 12:54 PM
GREAT Add-on !!
I love to see a top 10/master feedback page.
I'm willing to throw some cash your way for it and I'm sure many others would too :)
I'm willing to pitch in.
lifesourcerec
08-11-2004, 12:55 PM
Jason,
hi mate - glad to see this hack is getting the popularity it deserves!
I have a problem with my installation.
Please see:
http://www.avforums.com/forums/traderratings.php?u=12711
I.e.. null dates.
I had the first version of this hack for vB3 installed and upgraded vB to 3.0.3.
So I had to upgrade/reinstall the trader rating hack.
It did crash out (see my posting on the previous page).
Do you know where I went wrong and how to fix it?
Thanks.
When I upgraded to v3.0.3 from v3.0.1, I didn't have to do anything.
oldfan
08-11-2004, 01:56 PM
I'm willing to pitch in.
See there two :)
eoc_Jason you got paypal?
eoc_Jason
08-11-2004, 03:16 PM
Yes, one of the changes in this most recent version was the switch from a date field type to the int field type. The dates had to be regenerated in a new column, and the old column dropped, and indexes updated.
Open up the upgrade_traderratings.php file and look at the very very bottom. The script died at the part where it says:
$DB_site->query("ALTER TABLE ".TABLE_PREFIX."user_rate_trade DROP INDEX rateduser_2");
The easiest thing to do would be to run the four SQL commands after it (assuming you do not have the rateduser_3 index) manually. Like in PHPMyAdmin, or I think you can run SQL from the vB control panel (I've never tried it that way though).
That's the reason all your dates are messed up, it's still trying to read the old date column and process it in the new format. If you still have people using the trader ratings script though, the dates will be missing for any new info that is submitted between the time you tried to update and now. If you have some PHP/MySQL skills then you might want to re-do just "Step 3" in the upgrade, but you will have to drop the datetmp column, and also might want to remove the drop's for the indexes which don't exist... ;)
oldfan - Check the first post, there is a paypal donation link. ;)
Jason,
hi mate - glad to see this hack is getting the popularity it deserves!
I have a problem with my installation.
Please see:
http://www.avforums.com/forums/traderratings.php?u=12711
I.e.. null dates.
I had the first version of this hack for vB3 installed and upgraded vB to 3.0.3.
So I had to upgrade/reinstall the trader rating hack.
It did crash out (see my posting on the previous page).
Do you know where I went wrong and how to fix it?
Thanks.
oldfan
08-11-2004, 04:08 PM
oldfan - Check the first post, there is a paypal donation link
Go have a beer on me now :)
Lets hope ALOT more people will help to inspire you too :)
oldfan
08-12-2004, 01:44 PM
Anyone else going to pitchin?
Martaigne
08-12-2004, 04:56 PM
Installed, works great on the first try!
Spinball
08-14-2004, 06:46 AM
Thanks for your help, Jason. Have a drink on me. Paypal clicked.
eoc_Jason
08-14-2004, 04:29 PM
Glad you got it updated... ;)
the wiz
08-17-2004, 01:29 AM
Having a problem, I left feedback for someone and I selected POSITIVE and it set it as neutral. I left feedback again and selected positive again and it did the same thing. I checked and it did the same when he left me feedback.
http://www.dsites.net/vb/traderratings.php?u=1
Why is it doing this?
oldfan
08-17-2004, 03:09 AM
no word on a top 10 list? ;)
lifesourcerec
08-21-2004, 10:24 PM
Why is it that some people can't see the hack. Log out and logging in work for some, but not others.
the wiz
08-21-2004, 11:02 PM
Having a problem, I left feedback for someone and I selected POSITIVE and it set it as neutral. I left feedback again and selected positive again and it did the same thing. I checked and it did the same when he left me feedback.
http://www.dsites.net/vb/traderratings.php?u=1
Why is it doing this?
Can anyone help me?
Mephisteus
08-24-2004, 09:42 AM
I think I have seen this somewhere before, ebay maybe :) Cool hack, have no use for it, but its cool :)
eoc_Jason
08-26-2004, 06:53 PM
I'm working on the stats page right now actually. Version 1.2.0 should be released hopefully this weekend. Thus far there haven't been any changes to the current templates, everything is new additions.
no word on a top 10 list? ;)
oldfan
08-27-2004, 12:29 AM
I'm working on the stats page right now actually. Version 1.2.0 should be released hopefully this weekend. Thus far there haven't been any changes to the current templates, everything is new additions.
sounds great, I can't wait to test it out :banana:
integra99
08-27-2004, 01:37 AM
I'm working on the stats page right now actually. Version 1.2.0 should be released hopefully this weekend. Thus far there haven't been any changes to the current templates, everything is new additions.
What kind of changes can we expect?
eoc_Jason
08-30-2004, 05:55 PM
You can preview the stats page on my site here: http://forums.extremeoverclocking.com/traderratings.php?
I'm still struggling to create some *useful* tables. Obviously the "Top Rated Members" was the main highlight. The "Feedback Left For Others" as you can see mirrors the "Top Rated Members" table pretty closely. :( The "Feedback Received/Given Past Month" also seem to mirror each other closely. I'm thinking of removing those two because they just aren't that useful.
I thought about having 3 tables, listing the top buyers/sellers/traders, but even that data is semi-iffy. There's the issue of choosing the numbers by how that user rates, or by how other rate that user.
I also thought about creating a "wall of shame", listing buyers with a negative feedback score. Generally though I've noticed that once a person hits -1/-2 they don't visit the forum any more... hehe.
I dunno, any ideas / suggestions for the stats page would be greatly appreciated. There's a fine line though in what can and can't be displayed, also the amount of processing required to display some of the data.
One thing you can't see but I have added is an automated PM notification. After user A rates user B a Private Message is sent automatically letting user B know they have been rated by user A. (The PM also looks like it came from user A, so they can rate / contact them easier).
I also modified the memberlist template, to display the trader rating score next to members. This only required a simple template edit, no files. But it makes the "search" feature on the stats page a little easier to use. ;)
EDIT - Almost forgot, also made some code changes in the PHP file. Just a few cleanup things. I added a flag to where you can "close" the trader rating pages while you work on them, and only admins can view when closed.
oldfan
08-31-2004, 02:30 AM
that works for me!!
I don't see it needing much more than what you have there.
Maybe adding worst rating would be a good idea, kinda like a bad trader list.
Besides that, it looks great!
Where can I get my copy :)
Ted S
08-31-2004, 02:45 AM
Jason, thanks for the hard work. Has any headway been made to verrifying or at least preventing abuse (i.e. the ability to restrict users to leaving feedback only if they have X posts or have been registered for X time)? Thanks again!
eoc_Jason
08-31-2004, 03:15 AM
oldfan - There has been some debate on the actual usefulness of a "bad traders" list on the stats page. Generally after a person reaches -1 (on their first deal) they are no longer seen or heard from. :(
Ted S - You can modify the templates & PHP file quite easily to restrict based on whatever criteria you want. For instance, my FS/WTB forum is only visible by a certain user group, which that user group is auto-promoted when a person reaches 100 posts. So basically I modified my templates and files to only show ratings for people in that group, and only that group is allowed to rate people. I believe I included some basic instructions in one of the text files.
Anyhow, I'm going to be out of town tomorrow. Hopefully I can button things up and get it packaged together on Wednesday. There's not as many features as I would have liked to incorporate, but it's better than nothing right now... ;)
Freezerator
08-31-2004, 05:35 AM
Looks great. This stats are also perfect, maybe an option to view all members, page per page.
Ted S
08-31-2004, 04:43 PM
eoc_Jason,
Good point! I've been using some simple template mods to require a min post count which seems to have improved the quality of the system. I actually just integrated photopost classifieds so now I get to figure out how to add this to that ;)
the wiz
08-31-2004, 05:02 PM
So no one knows why my board is doning this?
eoc_Jason
09-01-2004, 04:20 PM
Well, that's kind of why there is the memberlist built into vB, and also the member search function. ;) Just listing people with ratings wouldn't bee too helpful, for instance, my forum has over 400 people rated... at 20 per page that's over 20 pages (and growing)...
Looks great. This stats are also perfect, maybe an option to view all members, page per page.
eoc_Jason
09-01-2004, 04:22 PM
If you installed it without modifying anything then it should work perfectly... Did you make any template changes, or modifications to the php file?
So no one knows why my board is doning this?
the wiz
09-01-2004, 04:26 PM
If you installed it without modifying anything then it should work perfectly... Did you make any template changes, or modifications to the php file?
I installed an extra style since i first installed the hack. I ran the upgrade thing after I found out about the problem (when me and another user went to exchange feedback) but it didn't fix the problem.
eoc_Jason
09-01-2004, 10:52 PM
Ran what upgrade thing? You will have to be more specific. If you don't have any real data in the system, you might want to consider manually removing the templates/tables/phrases and re-installing the hack from scratch. It's really hard to diagnose these kind of problems without being able to see how everything is configured.
On another note, I was thinking about adding little stars, reflecting certain groups of positive scores (like eBay does). It really doesn't serve much of a purpose though.
Anyhow, I'm still working on the stats page, I still don't have it how I like it. That's basically the holdup for v1.2.0
Will install this later on ;)
oldfan
09-02-2004, 01:43 AM
Will install this later on ;)
install what?
The first version?
eoc_Jason
09-03-2004, 05:51 PM
Whew... Okay, sorry for the delay. But I think I've reached a compromise on the stats page which should make everyone happy. You can view what 1.2.0 will look like on my site (http://forums.extremeoverclocking.com/traderratings.php?).
Now I just need to convert some of the text to phrases, and update the install / update scripts. So look for the next release to come out in a day or two.
As for what is new in this version:
- Overall Stats Page (of course)
- PM notification
- Defined constant in PHP file so you can "close" the TR system while working on it.
- Defined constant in PHP file to make the feedback URL optional/required.
- Re-wrote code that calculates out % positive feedback. No longer shows something like -20%
- A couple new templates, phrases, and 1 new DB index I think are all that have been added.
I was going to include checking for threadid/postid, but I haven't worked the bugs out of it yet so it's not included in this release.
WreckRman2
09-03-2004, 06:41 PM
Where is the update?
Yahhoon23
09-03-2004, 06:44 PM
Now I just need to convert some of the text to phrases, and update the install / update scripts. So look for the next release to come out in a day or two.
This quote from his post help? :)
WreckRman2
09-03-2004, 06:45 PM
Oh... back to the waiting line. :)
the wiz
09-03-2004, 08:46 PM
Ran what upgrade thing? You will have to be more specific. If you don't have any real data in the system, you might want to consider manually removing the templates/tables/phrases and re-installing the hack from scratch. It's really hard to diagnose these kind of problems without being able to see how everything is configured.
On another note, I was thinking about adding little stars, reflecting certain groups of positive scores (like eBay does). It really doesn't serve much of a purpose though.
Anyhow, I'm still working on the stats page, I still don't have it how I like it. That's basically the holdup for v1.2.0
I ran the update script for the Trader Ratings hack. There is data in there, but it isn't showing positive and negative feedbacks, it is listing everything as neutral.
Demo:
http://www.dsites.net/vb/traderratings.php?u=1
eoc_Jason
09-03-2004, 09:12 PM
What version were you upgrading from? Did the update run completely without errors? Did you look at your data in the DB to see if the actual ratings were pos/neg or they were being stored as neutral?
Why is your first row of text smaller than the second? That's not in my template...
the wiz
09-03-2004, 09:32 PM
I didn't update from any version, I ran the update when I found out that everything was being put in a neutral because I thought that because I added another style then that was the problem.
What do you mean it isn't your template? It looks like it is making the first row small, the next big, then small again.
eoc_Jason
09-03-2004, 11:52 PM
Ugh... So you installed the hack, then ran one of the upgrade scripts but you were already running the latest version? I'm not really sure what would happen, but I don't think it would be good. The scripts aren't that "smart" in the sense of knowing the if any grandular changes have been made or not.
As for font size, it is probably in your CSS declerations, you probably have the size for alt1 different from alt2.
the wiz
09-03-2004, 11:58 PM
I'm sorry, I didn't word that right. I never tested this when I originally installed it. Then when I sold something to another member, that was when I found out that everything was coming up as neutral. THEN I ran the update script thinking it may have been something with the style templates causing the problem.
eoc_Jason
09-04-2004, 12:37 AM
Well, from what I can gather... you are running old versions of the templates... (I just registered on your site)...
eoc_Jason
09-04-2004, 04:08 PM
Okay... I just uploaded Trader Ratings 1.2.0! :)
Please post any install/upgrade success / failures... Since the scripts are written by hand there's always the chance I made an oops. ;)
Please let me know what you think (especially the stats page). The queries are a little high on the stats page because it really has to eat it when calculating out the % positive feedback.
higabyte
09-04-2004, 04:23 PM
got it installed... thanks pretty easy install too....
however, i seem to be a moron, what exactly do i need to change for the different style ids?
should it look like this:
$styleid=$vboptions['styleid=xx'];
where xx is the style number??
eoc_Jason
09-04-2004, 04:28 PM
no, just something like:
$styleid = 1;
It should default to whatever your current styleid is. However you might want to manually change it to whatever your top-level id is, that way all the custom styles below will inherit the templates.
higabyte
09-04-2004, 04:32 PM
haha ok thats what i was thinking at first but thought that seemed too easy...
thanks again!!!
the wiz
09-04-2004, 04:36 PM
I just updated, and it is still doing it. :(
How do I uninstall the hack? I want to completely uninstall it and then I'll run the new install thing and see if it works right.
higabyte
09-04-2004, 04:40 PM
one other thing, i dont know if this has been addressed or not and if it has my apologies, but ok taking a look at this:
http://board.accordtuner.com/traderratings.php?u=1&styleid=9
You see I have 5 feedbacks left.
You have 3 fields, 1 month, 6 month, & 12 month...
now, shouldnt the the numbers in those 3 fields equate to the amount of feedbacks you have left?
ie: 1 month displays all left this month, 6 months would show from months 2-6, and 12 month would show 7-12, and then anything beyond 12 months old would fall off the list...
anyways, just a thought...
higabyte
09-04-2004, 04:51 PM
ok might got a bug for ya...
it reports as closed to the regular members, I tried everything I could think of but since im not much of a php programmer I ended up having to just take the whole maitenance code out...
Spinball
09-04-2004, 05:21 PM
Jason - thanks. A definite bug for you. You need to update the upgrade script to put the correct version number in there. It's still says 1.1.0.
ImportPassion
09-04-2004, 06:24 PM
ya, version was one I was going to post.
also, for the wall of shame, what i did is added
, lastactivity DESC
after ORDER BY ratetradetotal ASC
on line 178
cause if someone hasn't been on in a long time and there are a bunch of ppl with all the same like 20 -1's, it goes by username b4 activity, so I just made that change.
All else looks good tho.
D
integra99
09-04-2004, 06:31 PM
Jason - thanks. A definite bug for you. You need to update the upgrade script to put the correct version number in there. It's still says 1.1.0.
Just modify the phrase, quick fix. I had no trouble upgrading 1.1 to 1.2 :D
eoc_Jason
09-04-2004, 07:11 PM
How do I uninstall the hack? I want to completely uninstall it and then I'll run the new install thing and see if it works right.
There currently isn't any automatic process (haven't gotten around to it yet). however the steps are fairly easy...
1. Remove the tratings_* templates. (You "revert" them and they will dissapear).
2. Remove the tratings_* phrases.
3. Remove (drop) the user_rate_trade table
4. Remove the ratetradetotal column in the user table, and the ratetradetotal index (if it exists).
5. Delete the traderratings.php file
That should remove it completely.
-----------------------------------------------------
You see I have 5 feedbacks left.
You have 3 fields, 1 month, 6 month, & 12 month...
That was how it was originally, however it was decided that the numbers would be "cumulative" to mimic how eBay displays it. You can change it to however you want, it's not hard to modify the way you want it to look.
-----------------------------------------------------
ok might got a bug for ya...
it reports as closed to the regular members, I tried everything I could think of but since im not much of a php programmer I ended up having to just take the whole maitenance code out...
Ack! The phrase is set to 1.1.0... it should be set to '1.2.0'... I'll upload a new file asap!
FYI, it will report closed in either of these 2 instances...
1. The constant "TRATING_CLOSED" is set to 1.
2. The phrase "tratings_version" doesn't match the variable version in the PHP file. (This is to prevent code/file mismatch).
-----------------------------------------------------
cause if someone hasn't been on in a long time and there are a bunch of ppl with all the same like 20 -1's, it goes by username b4 activity, so I just made that change
I'm still debating on a better "wall of shame" because I think it is important to list all the negative traders so that they can be avoided on other forums. But yeah, you can sort them any way you like... won't hurt my feelings... ;)
eoc_Jason
09-04-2004, 07:15 PM
Okay, I just re-uploaded 1.2.0 with the phrase version fix in the upgrade...
IF YOU DOWNLOADED THE FILE BEFORE THIS POST WAS MADE PLEASE READ BELOW!
If your users are experiencing a "trader ratings closed" message:
1. Go to your adminCP
2. Search for the phrase: tratings_version
3. Change it to: 1.2.0 (no "v" or anything, just the numbers)
That's it! The system should work now. ;) Just sent an email out to everyone.
Yahhoon23
09-04-2004, 09:24 PM
Installed perfectly. Thanks for the upgrade Jason.
the wiz
09-05-2004, 03:17 AM
I completely uninstalled the hack, and re-installed it with the new version and it looks like it is working now.
eoc_Jason
09-05-2004, 06:24 PM
Just a note to a lot of admins... Check to make sure your Trader Ratings system isn't closed, the easiest way is to check your main TR page when you are logged out...
In the next version I'll probably put a little note when the TR page is closed so admin/mods know.. ;)
Yahhoon23
09-05-2004, 06:39 PM
Jason, glad you let us know.
One minor issue I just realized now because of that.
The traderratings.php is set to 0 for open.
But when I am logged out and go to the Trader Ratings Stats page it gives me the closed page. Any ideas what could be the issue?
eoc_Jason
09-05-2004, 06:46 PM
Please read post #303 above... That is the issue... ;)
IF YOU DOWNLOADED THE FILE BEFORE THIS POST WAS MADE PLEASE READ BELOW!
If your users are experiencing a "trader ratings closed" message:
1. Go to your adminCP
2. Search for the phrase: tratings_version
3. Change it to: 1.2.0 (no "v" or anything, just the numbers)
Yahhoon23
09-05-2004, 06:48 PM
DOH! I need reading full posts was actually worthwhile sometime.
When I first read it and saw the big letters, I assumed we had to re-download from Post #1. So I just did that without reading I actually had to do anything.
Thanks
Rick Sample
09-05-2004, 10:54 PM
I just installed it on my site, however, how do I leave feedback for another person???
Rick Sample
09-05-2004, 11:01 PM
Never mind I found it :)
Rick Sample
09-05-2004, 11:19 PM
One last question, when I view whos online it shows people who are in the trader ratings sytem in an UNKNOW LOCATION. Is their anyway to fix that so that it shows "Trader Ratings System" or anything?
Also, is their anyway to add the traderrating system to the users profile. So when someone views someones profile, they will be able to see all the positive/negative, feedback, etc and add their feedback to the user?
Thanks
integra99
09-06-2004, 12:02 AM
Here's a quick fix for the problem with not knowing if the trader system is down..
Find this
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
if ($_REQUEST['do'] == 'stats') {
Add after
if ((TRATING_CLOSED || $vbphrase[tratings_version] != THIS_SCRIPT_VERSION) && $permissions[adminpermissions] & ISMODERATOR) {
eval('print("<center><b>' . $vbphrase[tratings_closed] . '</b></center><br><br>");');
}
Rick Sample
09-06-2004, 01:10 AM
This little feature would be nice, any ideals on how to add it? Look under forum info and it will say "trader rating" (XX)
http://www.3.8mustang.com/forum/member.php?u=5806
the wiz
09-06-2004, 02:21 AM
This little feature would be nice, any ideals on how to add it? Look under forum info and it will say "trader rating" (XX)
http://www.3.8mustang.com/forum/member.php?u=5806
In your MEMBERINFO template, look for:
<strong>$userinfo[datejoined]</strong>
and add this below:
<if condition="$post['userid']"><div>Trader Rating: <b>(<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</b></div></if>
Rick Sample
09-06-2004, 02:26 AM
In your MEMBERINFO template, look for:
<strong>$userinfo[datejoined]</strong>
and add this below:
<if condition="$post['userid']"><div>Trader Rating: <b>(<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</b></div></if>
Thanks bud, adding it right now!
eoc_Jason
09-06-2004, 03:42 PM
Please refer to the templates.txt for information on changes to all the templates for linking to the Trader Ratings script...
The big three are:
- Displayed in the postbit
- Displayed in the member profile
- Displayed in the member search results
;)
oldfan
09-07-2004, 11:43 PM
works great !
But how can I set it up so public/unregistered can view it?
// Disables the trader ratings pages and displays a maintainence page
// Administrators and Moderators will still be able to view / use the TR system!
// NOTE: PMs will not be sent when closed (so you can test ratings without spamming users)
define('TRATING_CLOSED', 1);
I set it to 0 and 1 and I still get the maintainence message
http://bbs.metallifukinca.com/traderratings.php?
VodkaFish
09-07-2004, 11:58 PM
Okay, I just re-uploaded 1.2.0 with the phrase version fix in the upgrade...
IF YOU DOWNLOADED THE FILE BEFORE THIS POST WAS MADE PLEASE READ BELOW!
If your users are experiencing a "trader ratings closed" message:
1. Go to your adminCP
2. Search for the phrase: tratings_version
3. Change it to: 1.2.0 (no "v" or anything, just the numbers)
That's it! The system should work now. ;) Just sent an email out to everyone.
I still had to do this, even though I just downloaded the zip. Just thought I'd let you know.
oldfan - See if this is your problem, I'm guessing it is.
oldfan
09-08-2004, 12:29 AM
yep that fixed it, thanks :up:
I still had to do this, even though I just downloaded the zip. Just thought I'd let you know.
oldfan - See if this is your problem, I'm guessing it is.
eoc_Jason
09-08-2004, 01:59 AM
Oops... Man I need to get more sleep... I just updated the .zip again... So now people upgrading from 1.1.0 -> 1.2.0 should go smooth.
Everyone else, just follow the step above, making sure it is "1.2.0" and NOT "v1.x.0"
oldfan
09-08-2004, 09:31 AM
eoc_Jason thanks alot for this feature :)
One question, how could I remove "Wall of Shame" ?
Watson
09-08-2004, 01:46 PM
This is still the best hack I have used, Thanks very much (if I wasnt an unemployed bum I would donate) It just works so well for my music trading forums
VodkaFish
09-08-2004, 03:25 PM
eoc_Jason thanks alot for this feature :)
One question, how could I remove "Wall of Shame" ?
You can remove it by editing the tratings_stats template. Look for the $vbphrase[tratings_wall_of_shame] area. Let's say you wanted to just comment it out so you have just the two other columns, you could do something like this:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - $vbphrase[tratings]</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="center"><phrase 1="$vbphrase[tratings]">$vbphrase[x_statistics]</phrase></td>
<td class="tcat" align="center">$vbphrase[tratings_recent_ratings]</td>
<td class="tcat" align="center">$vbphrase[tratings_find_member]</td>
</tr>
<tr>
<td class="alt1" valign="top">
<div align="$stylevar[left]">
<table border="0" cellpadding="5">
<tr>
<td>$vbphrase[tratings_total_feedback]:<br>$vbphrase[tratings_members_rated]:</td>
<td><b>$pginfo[total_ratings]<br>$pginfo[rated_count]</b></td>
</tr>
<tr>
<td>$vbphrase[tratings_feedback_today]:<br>$vbphrase[tratings_average_feedback]:</td>
<td>$pginfo[ratings_today]<br>$pginfo[ratings_average]</td>
</tr>
</table>
</div>
</td>
<td class="alt1" valign="top">
<div align="$stylevar[left]">
<table border="0" cellpadding="2" width="100%">
<tr>
<td> </td>
<td align="center">$vbphrase[tratings_past_month]</td>
<td align="center">$vbphrase[tratings_past_6_months]</td>
<td align="center">$vbphrase[tratings_past_12_months]</td>
</tr>
<tr>
<td colspan="4" class="alt2" style="padding:1px"></td>
</tr>
<tr style="color:#008000">
<td align="left"><img src="images/icons/icon10.gif" align="absmiddle" alt="$vbphrase[tratings_positive]" /> $vbphrase[tratings_positive]</td>
<td align="center"><if condition="$userinfo[tradepos30]">$userinfo[tradepos30]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradepos180]">$userinfo[tradepos180]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradepos365]">$userinfo[tradepos365]<else />0</if></td>
</tr>
<tr>
<td colspan="4" class="alt2" style="padding:1px"></td>
</tr>
<tr>
<td align="left"><img src="images/icons/icon5.gif" align="absmiddle" alt="$vbphrase[tratings_neutral]" /> $vbphrase[tratings_neutral]</td>
<td align="center"><if condition="$userinfo[tradeneu30]">$userinfo[tradeneu30]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneu180]">$userinfo[tradeneu180]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneu365]">$userinfo[tradeneu365]<else />0</if></td>
</tr>
<tr>
<td colspan="4" class="alt2" style="padding:1px"></td>
</tr>
<tr style="color:#FF0000">
<td align="left"><img src="images/icons/icon8.gif" align="absmiddle" alt="$vbphrase[tratings_negative]" /> $vbphrase[tratings_negative]</td>
<td align="center"><if condition="$userinfo[tradeneg30]">$userinfo[tradeneg30]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneg180]">$userinfo[tradeneg180]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneg365]">$userinfo[tradeneg365]<else />0</if></td>
</tr>
</table>
</div>
</td>
<td class="alt1" valign="top">
<div align="$stylevar[left]">
<form action="memberlist.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="getall" />
<div class="fieldset">
$vbphrase[username]:<br />
<input type="text" class="bginput" size="25" name="ausername" value="" />
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="Search Now" accesskey="s" />
</div>
</form>
</div>
</td>
</tr>
</table>
<br />
<table cellpadding="0" cellspacing="5" border="0" align="center">
<tr>
<td valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>
<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_recent_ratings]</td>
</tr>
$pginfo[recent_ratings]
</table>
</td>
<td valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>
<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_top_traders]</td>
</tr>
$pginfo[top_rated]
</table>
</td>
<!-- <td valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>
<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_wall_of_shame]</td>
</tr>
$pginfo[bottom_rated]
</table>
</td> -->
</tr>
</table>
<div align="right" class="smallfont">$vbphrase[tratings] $vbphrase[tratings_version]</div>
$footer
</body>
</html>
eoc_Jason
09-08-2004, 05:02 PM
Alternatively if you want it to appear automatically when the first negative rating is given, you can do the conditionals around that block instead of the comments...
like: <if condition="!$pginfo[bottom_rated]">....</if>
(I think that should work, but its not tested).
VodkaFish
09-08-2004, 08:27 PM
I got rid of it on mine because there's a single negative rating. I know it sounds silly, but for a guy that had one trade go bad, I didn't want to crucify him until he had company :)
oldfan
09-09-2004, 02:43 AM
worked like a charm, thanks !
You can remove it by editing the tratings_stats template. Look for the $vbphrase[tratings_wall_of_shame] area. Let's say you wanted to just comment it out so you have just the two other columns, you could do something like this:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - $vbphrase[tratings]</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="center"><phrase 1="$vbphrase[tratings]">$vbphrase[x_statistics]</phrase></td>
<td class="tcat" align="center">$vbphrase[tratings_recent_ratings]</td>
<td class="tcat" align="center">$vbphrase[tratings_find_member]</td>
</tr>
<tr>
<td class="alt1" valign="top">
<div align="$stylevar[left]">
<table border="0" cellpadding="5">
<tr>
<td>$vbphrase[tratings_total_feedback]:<br>$vbphrase[tratings_members_rated]:</td>
<td><b>$pginfo[total_ratings]<br>$pginfo[rated_count]</b></td>
</tr>
<tr>
<td>$vbphrase[tratings_feedback_today]:<br>$vbphrase[tratings_average_feedback]:</td>
<td>$pginfo[ratings_today]<br>$pginfo[ratings_average]</td>
</tr>
</table>
</div>
</td>
<td class="alt1" valign="top">
<div align="$stylevar[left]">
<table border="0" cellpadding="2" width="100%">
<tr>
<td> </td>
<td align="center">$vbphrase[tratings_past_month]</td>
<td align="center">$vbphrase[tratings_past_6_months]</td>
<td align="center">$vbphrase[tratings_past_12_months]</td>
</tr>
<tr>
<td colspan="4" class="alt2" style="padding:1px"></td>
</tr>
<tr style="color:#008000">
<td align="left"><img src="images/icons/icon10.gif" align="absmiddle" alt="$vbphrase[tratings_positive]" /> $vbphrase[tratings_positive]</td>
<td align="center"><if condition="$userinfo[tradepos30]">$userinfo[tradepos30]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradepos180]">$userinfo[tradepos180]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradepos365]">$userinfo[tradepos365]<else />0</if></td>
</tr>
<tr>
<td colspan="4" class="alt2" style="padding:1px"></td>
</tr>
<tr>
<td align="left"><img src="images/icons/icon5.gif" align="absmiddle" alt="$vbphrase[tratings_neutral]" /> $vbphrase[tratings_neutral]</td>
<td align="center"><if condition="$userinfo[tradeneu30]">$userinfo[tradeneu30]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneu180]">$userinfo[tradeneu180]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneu365]">$userinfo[tradeneu365]<else />0</if></td>
</tr>
<tr>
<td colspan="4" class="alt2" style="padding:1px"></td>
</tr>
<tr style="color:#FF0000">
<td align="left"><img src="images/icons/icon8.gif" align="absmiddle" alt="$vbphrase[tratings_negative]" /> $vbphrase[tratings_negative]</td>
<td align="center"><if condition="$userinfo[tradeneg30]">$userinfo[tradeneg30]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneg180]">$userinfo[tradeneg180]<else />0</if></td>
<td align="center"><if condition="$userinfo[tradeneg365]">$userinfo[tradeneg365]<else />0</if></td>
</tr>
</table>
</div>
</td>
<td class="alt1" valign="top">
<div align="$stylevar[left]">
<form action="memberlist.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="getall" />
<div class="fieldset">
$vbphrase[username]:<br />
<input type="text" class="bginput" size="25" name="ausername" value="" />
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="Search Now" accesskey="s" />
</div>
</form>
</div>
</td>
</tr>
</table>
<br />
<table cellpadding="0" cellspacing="5" border="0" align="center">
<tr>
<td valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>
<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_recent_ratings]</td>
</tr>
$pginfo[recent_ratings]
</table>
</td>
<td valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>
<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_top_traders]</td>
</tr>
$pginfo[top_rated]
</table>
</td>
<!-- <td valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>
<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_wall_of_shame]</td>
</tr>
$pginfo[bottom_rated]
</table>
</td> -->
</tr>
</table>
<div align="right" class="smallfont">$vbphrase[tratings] $vbphrase[tratings_version]</div>
$footer
</body>
</html>
oldfan
09-09-2004, 02:45 AM
thanks again eoc_Jason :)
BtW has Trader Ratings 1.2.0 been voted a HOTM yet?
If not it should be!
thanks
eoc_Jason
09-09-2004, 04:49 PM
1.1.0 was submitted I think for two months... Didn't make #1 pick though...
Maybe this version will get a few more votes if it gets listed again.
ChrisBaktis
09-10-2004, 06:55 PM
Awesome Upgrade!
SaintDog
09-11-2004, 01:43 AM
I suppose I missed something, but how do you make it so that a URL is required and not optional?
SilVerSp00n
09-11-2004, 01:49 AM
I added you to aim, I am having a lot of trouble installing it on my template :(
eoc_Jason
09-11-2004, 01:54 AM
Please read the README.txt file that is included in the zip...
Specifically look under step 6 - TRATING_REQ_URL
I suppose I missed something, but how do you make it so that a URL is required and not optional?
ThePunisher
09-11-2004, 04:27 AM
Nice job, Jason! Such a nice hack that can do so much with so little modifications!
SilVerSp00n
09-11-2004, 04:36 PM
Jason can u add silversp00n101 on aim
eoc_Jason
09-11-2004, 11:51 PM
When you do the install, it shows which template it will install to, if it is not the correct one, then you have to manually edit the file and set a fixed template number.
I don't use AIM much so please just post your problem here.
Jason
I added you to aim, I am having a lot of trouble installing it on my template :(
cnczone
09-11-2004, 11:57 PM
Can you add a update script?
Warlord
09-12-2004, 02:44 AM
I installed this hack, then removed it and tried vB Trader Lite.. and then removed that, looked at vbauctions.... and now I've decided on this hack for my forums.
Thanks for the great hack man. Let me know if I can help you in anyway in getting the auction portion of this hack going. I'm not the best at coding (I can install almost any hack and modify some hacks too, but I've never written one from scratch in php), but I'll beta test, or whatever else you need.
*clicks install*
eoc_Jason
09-12-2004, 02:45 AM
Can you be a *little* more specific. There is already an update script in the .zip to go from 1.1.0 -> 1.2.0.....
Can you add a update script?
teksigns
09-12-2004, 02:50 AM
any idea when the feature :
"button on thread that buyer/seller clicks to tie the transaction to two people"
will be added ?
ChrisBaktis
09-12-2004, 11:52 PM
I found a problem (or overlooked how to change this) - The trader ratings seems to work great except for custom usergroups that I have created. These usergroups are not being counted in the trader rating stats. Is there a place to add or change a variable?
eoc_Jason
09-14-2004, 02:39 PM
You will have to elaborate Chris (or possibly show screenshots)...
Usergroups should not affect the functionality of the system.
ChrisBaktis
09-14-2004, 07:41 PM
The Trader Rating hack works great for each person. The Stats page, however, is not including a usergroup that I have created.
I have users with 15 or 16 Positive feedback rating however if I go to the stats page they are not included. All the normal usergroups that Vbulletin comes with are inlcluded in the Top/Recent Feedback stats. These members, in the custom usergroup with higher feedback, are not listed on the stats page. It just seems like the hack is checking all the feedback for all the usergroups when it gets the info on who to post.
I cant include a screenshot because the problem is people not being listed so I cant give a picture of something not seen :)
integra99
09-14-2004, 07:43 PM
eoc_Jason: I've made a vBindex hack for this. Link is in my sig :)
Demo at www.kydsm.com
-Colin
lifesourcerec
09-15-2004, 08:05 AM
Yeah, that would be cool. Top Traders on non-VB page.
oldfan
09-16-2004, 12:12 AM
after removing the wall fo shame, it kinda looks plain.
Could their be something else added too it?
integra99
09-16-2004, 02:46 AM
Yeah, that would be cool. Top Traders on non-VB page.
Try it out, dont forget to click install ;)
lifesourcerec
09-16-2004, 12:38 PM
I don't use vbindex, so may need a code to add it to another non-VB page.
eoc_Jason
09-17-2004, 04:42 PM
Usergroupid 10 is excluded from listings because that is the default banned usergroup. Maybe that is your problem?
Jason
The Trader Rating hack works great for each person. The Stats page, however, is not including a usergroup that I have created.
I have users with 15 or 16 Positive feedback rating however if I go to the stats page they are not included. All the normal usergroups that Vbulletin comes with are inlcluded in the Top/Recent Feedback stats. These members, in the custom usergroup with higher feedback, are not listed on the stats page. It just seems like the hack is checking all the feedback for all the usergroups when it gets the info on who to post.
I cant include a screenshot because the problem is people not being listed so I cant give a picture of something not seen :)
eoc_Jason
09-17-2004, 04:45 PM
You can really make any sort of info you want on the stats page, it's just a matter of writing the queries and modifying the templates...
wynode
09-25-2004, 05:46 AM
OK i've searched this thread but can't seem to find the solution......
Basically there have been a couple of cases where the "Submit Feedback For xxxx" link has not come up in the trader ratings screen.
For example, others have been able to rate myself, but there is at least one user who cannot rate me (the link doesn't come up).
And just now another user reported the same error when trying to rate someone else.
ANy ideas?
eoc_Jason
09-25-2004, 01:44 PM
The only permissions a user must have is the "CANPOSTNEW", and also a user can not rate them self. Other than that the link should appear unless you have added custom rules to the <if> statement.
Jimboj79
09-27-2004, 01:47 PM
Excellent mod thankyou :)
wynode
10-03-2004, 05:15 AM
The only permissions a user must have is the "CANPOSTNEW", and also a user can not rate them self. Other than that the link should appear unless you have added custom rules to the <if> statement.
Thanks for that!
I had setup a new group and their permissions weren't set properly. That's why some users were affected and not others.
Great work...lovin this hack! :)
andrew67
10-03-2004, 06:35 AM
Great hack Jason, I have it working on my test board wonderfully. But on trying to install it to my functional board I got the following errors.
Database error in vBulletin 3.0.3:
Invalid SQL:
CREATE TABLE user_rate_trade (
userrateid int(10) unsigned NOT NULL auto_increment,
rateduser int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
userrating smallint NOT NULL default '0',
usercomments varchar(80) NOT NULL default '',
userdate int(10) unsigned NOT NULL default '0',
userbuysell tinyint(1) unsigned NOT NULL default '0',
userurl varchar(255) NOT NULL default '',
PRIMARY KEY (userrateid),
KEY rateduser (rateduser,userrating),
KEY rateduser_2 (rateduser,userdate,userrating),
KEY rateduser_3 (rateduser,userbuysell,userdate,userrateid),
KEY userdate (userdate)
) TYPE=MyISAM AUTO_INCREMENT=1
mysql error: Table 'user_rate_trade' already exists
mysql error number: 1050
Date: Sunday 03rd of October 2004 04:08:53 PM
This I attempted to fix by search replacing all "user_rate_trade"'s in the php file with "vb3_user_rate_trade".
Then attempted to install again.
And received the following.
Database error in vBulletin 3.0.3:
Invalid SQL: INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'tratings', 'Trader Ratings', 1)
mysql error: Duplicate entry 'tratings-0-1' for key 2
mysql error number: 1062
Which I then fixed by removing all the phrases that were added by the php file.
Then went to install a third time and received.
Database error in vBulletin 3.0.3:
Invalid SQL: ALTER TABLE user ADD ratetradetotal SMALLINT(5) DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'ratetradetotal'
mysql error number: 1060
Any ideas?
My next approach is to change the "vb3_user_rate_trade" to something else again and change the "ratetradetotal" to something else as I can't actually remove the tables (no access).
Cheers
andrew
Vixion
10-03-2004, 01:27 PM
I am thinking about using this modification on my own forum. But I need to have something clear.
The screenshots attached in the first post, are very clear, they look like eBay, but does the system work with a unique feedback score?
I.E.
Person A. makes a trade with Person B. Because of a good trade, Person A. leave a feedback for Person B.
After 2 weeks Person A. and B. trade again. And after that trade they leave a feedback again.
Now my question;
Does every feedback counts to the total (I.E. Person A. (30)) or does the feedback-score only displays the UNIQUE trades, with UNIQUE people?
newb1e_
10-03-2004, 03:08 PM
Hi all,
looking at some of the previous question's I'm a little embaressed to ask this (ultra obvious I imagine but here goes)
in the templates editing area of the readme it says
- Add somewhere:
<if condition="$post['userid']"><div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div></if>
Could someone give me a quick idea where I should place the code in postbit/postbit_legacy/MEMBERINFO? Please help a newbie
thanks in advance, be gentle :surprised:
Lord Brar
10-03-2004, 03:34 PM
Gee. Thanks Dude! I really needed something like this for SellAdSpace.com! The installation was Really Easy!
Wonderful Hack. Thanks!
Lord Brar
10-03-2004, 03:35 PM
Forgot to add - *Clicks Install* :D
JazzleBug
10-03-2004, 04:31 PM
This is excellent and will save us much time. Thanks for the hard work and support! Super easy installation!
Something I'd like to see in the future if you continue to develop this is complete admincp integration where the admin can alter the numbers without having to manually create new entries. Having seen the code and the database, I don't imagine that this would be incredibly easy as the numbers come from counting individual entries, correct? I'm certainly not a programmer (though, it's fun to think I am lol), so I don't have a clue what goes into coding something like this. I do think that it might bypass the need for a full conversion script (assuming everyone is just running around with one long thread of feedback on their forum). 'K - I'll shut up. ;)
Thanks for the script!
Steph
WoodiE
10-03-2004, 07:27 PM
I've noticed the install readme for 1.2.0 says the upgrade is for 1.1.0 to 1.2.0, however I'm running version 1.0.0 - how can I upgrade my version to the most recent?
-Michael
eoc_Jason
10-04-2004, 01:07 PM
andrew67 - I'll have to check the install script... I might of forgotten to add the table_prefix stuff to a couple things... However it sounds like you are trying to do a duplicate install on top of the same locations. If you have a test board, are you using the same database name, just different table names, or the same database but different tables? The last error is in reference to the added column in the user table. Also you should pay attention to the extra indexes it creates, that might throw up an error when you try to install too...
Vixion - Same rating style as ebay (you can read their help docs). Your "feedback score" (which is displayed in the postbits) is based on unique members. However the "all positive feedback" number is not uniques, it is the total number. If you want it different it's not too hard to change it your self.
JazzleBug - You can't just alter numbers on a whim. They are recalculated based on actual ratings every time a rating is added/deleted. You would have to add "fake" ratings into the DB to make them permanate.
WoodiE - No, you can't. I need to put up some other files in a bit, I'll throw up all the upgrade files too (and be sure to include them in future versions). You will have to run the scripts to upgrade from one version to the next.
Also, yes I plan on continuing development. I've just been extremely busy... Overworked and underpaid... ;)
oldfan
10-04-2004, 01:38 PM
Also, yes I plan on continuing development. I've just been extremely busy... Overworked and underpaid...
I can't wait to see what you come up with next!
the3jams
10-04-2004, 07:29 PM
...I'll throw up all the upgrade files too (and be sure to include them in future versions). You will have to run the scripts to upgrade from one version to the next.Will these files you mentioned have a vb2 upgrade script for your old hack? I know you've been busy so I've just been quietly waiting for one :)
andrew67
10-05-2004, 03:49 AM
I'll have to check the install script... I might of forgotten to add the table_prefix stuff to a couple things... However it sounds like you are trying to do a duplicate install on top of the same locations. If you have a test board, are you using the same database name, just different table names, or the same database but different tables? The last error is in reference to the added column in the user table. Also you should pay attention to the extra indexes it creates, that might throw up an error when you try to install too...
Nope different databases however I just got access to drop the tables and am about to try and install it again.
Will let you know.
Thanks
andrew
andrew67
10-05-2004, 08:23 AM
Deleted old table ( no idea how it got there ) and installed fine. Thanks Jason , excellent hack.
andrew67
10-06-2004, 12:56 PM
Just out of curiosity is there any plans or does anybody know how to limit either the amount of feedback a person can give another person per day? Or to stop duplicate entries (happens if people double click the button etc.)
Would be good to somehow do an "if andrew67 has already rated eocJason on 07-10-04 then go to an error page saying (you have already rated this person once today)"
eoc_Jason
10-06-2004, 02:15 PM
I suppose I can add in code to make sure they don't rate the same person twice in one day. However they can always edit & delete the duplicate entry (within the first 5 min). I haven't had any problems with my users leaving dupe feedback.
mholtum
10-06-2004, 04:57 PM
My install went smoothly and it seems to have installed correctly. But, being the n00b I am I have no Idea as to how to work it.. Any pointers for the retard?
mholtum
10-06-2004, 05:10 PM
I figured it out.. Works great
oldfan
10-07-2004, 06:37 AM
eoc_Jason, do you think you could come up with top10 vBadvanced module that works :)
Please and thank you
eoc_Jason
10-07-2004, 11:57 PM
I don't used vBadvanced, and I don't really have the time to install it and tinker around... sorry.
oldfan
10-08-2004, 04:41 AM
Ok thanks dude,
Great mod, my users love it!
Vixion
10-12-2004, 07:20 AM
... Damn ... It still doesn't work.
My members still can't get any acces to the Feedback System, and I double checked and changed the 'config' 1000 times, but nothing came out...
Might try a re-install....
Which tables do I need to remove from my database? And does it effect the code I inserted to the postbit etc.
kristian
10-13-2004, 12:53 PM
Clicks install :devious:
Cool hack, thanks...
I havent enabled it yet for forum members as I am sure it will be abused though!
Verification
Could you not use the same method vBulletin uses for Account Activation. The seller and buyer both get an email/PM with a link to the Add Rating page?
The activation id passed in this url could be replaced with a 'Give Trader Rating' id.
Process
I liked the idea where..
Seller creates thread
Offers are posted in this thread
Seller has button on each offer post, he selects the offer he wants
Thread goes to 'Pending'
Both buyer and seller are sent email containing 'Give Rating' link
If rating(s) are given, thread goes to 'Sold'
Option to opt out for both parties
'Pending' status is viod if buyer doesnt respond in time (24 hours)
Entire thread is retracted if Seller doesnt repond in time (24 hours)
What I like about this is that the entire wheeling and dealing is done in public and is testamony to a sale. If they go off and deal via their PM's then they dont get the opportunity to UP their Trader Rating.
Logicaly thinking, this isnt hard to achieve - if you know your way round vB that is!
ericgtr
10-15-2004, 12:20 AM
What a fantastic mod, thanks for all of your time and work with this you have obviously put a great deal of time into the support of it also, how cool is that! Clicks Install. :)
Ber|Art
10-15-2004, 05:48 AM
Thx! works perfectly :)
eoc_Jason
10-17-2004, 01:26 AM
Hey everyone, soory I haven't been around much, just have had lots of other things to deal with. I need to get some files online for some people to upgrade from older versions (I haven't forgotten about you guys).
As for kristian's post - Yes, that has been discussed before. But there is a lot of "what if" scenarios in that. And also will probably end up being a lot of code hacking. I'm trying to keep this version of trader ratings very simple and clean. In the future (one day) I'm hoping to make a classified/auction add-in, that way I can tailor it how I want and not have to hack up a dozen vB files in the process. (I'm never a fan of file hacks because it just makes one more step when doing upgrades).
Also I'm hoping to extend an optional module that will allow trader-ratings to be somewhat centralized and cross-forum capable.
nexialys
10-17-2004, 01:41 AM
@eoc_Jason... i've built a good module for CMPS interacting with your script:
http://acmsoft.com/vb/showthread.php?t=3
if you want to add it to your next release, just drop a comment in that thread...
SVTOA
10-21-2004, 01:49 AM
Well done Jason, thanks.! Works perfectly...!
dmark101
10-31-2004, 09:34 PM
awesome hack. :up:
this works much better than the vendor rating forum i had created.
<clicks install>
Good hack, my users love it!
Would it be possible to limit the edit function to admins only?
Thanks!
cheers,
adp
lange
11-09-2004, 01:32 PM
Thanks
I'll test it.
First of all, thanks TONS!!! This is a great hack. Paypal coming your way shortly.
Secondly, is there any way to just display the trader rating in the user profile for only a specific forum? I don't want it enabled for all forums, they just need to see it enabled in our buy/sell/swap forum.
Thanks again, fantastic job.
eoc_Jason
11-15-2004, 08:32 PM
Sure, just wrap an <if></if> conditional around the line in the postbit where the condition is the forumid == whatever (not sure of the variable off the top of my head). If you need more exact code let me know and I can post it for ya.
Secondly, is there any way to just display the trader rating in the user profile for only a specific forum? I don't want it enabled for all forums, they just need to see it enabled in our buy/sell/swap forum.
eoc_Jason
11-15-2004, 08:38 PM
Okay, I just posted an Upgrades_Archive.zip file which contains the all the old upgrade files (which some people requested), and the vb2 conversion file.
1.0.0 or 1.0.1 -> 1.1.0
1.1.0 -> 1.2.0
vB2 Version -> 1.2.0
Sure, just wrap an <if></if> conditional around the line in the postbit where the condition is the forumid == whatever (not sure of the variable off the top of my head). If you need more exact code let me know and I can post it for ya.
Would you please post this sample code? Thanks again.
eoc_Jason
11-16-2004, 02:28 PM
Okay, I checked and made sure it was $thread[forumid].... Also if you want it to display in more than one forum section, just use the in_array function....
Here's an example:
<if condition="$thread['forumid'] == 200">(Your Postbit Code)</if>
Ted S
11-16-2004, 03:29 PM
I do a similar thing with conditionals to help promote the trader ratings but instead of just showing a user's score I also show a message at the top of each post indicating how "safe" the user is. This is accomplished with code in two places:
1) In the phpinclude_start template I have the code $classified_forumids = array(308,214,215,216,226,284,220,217,218,219,227, 223); which is an array of all our trader forums (it's easier to use an array then a if/and 10 conditional as you will see later on).
2) In the postbit/ potbig legacy template I have the following code right before <div>$post[message]</div>
<if condition="in_array($forum[forumid], $GLOBALS[classified_forumids])">
<if condition="$post[ratetradetotal] != 0">
<if condition="$post[ratetradetotal] < 0">
<div style="text-align:center;font-size:12px;color:red;font-weight:bold;">Negative: This user has <a href="/traderratings.php?$session[sessionurl]u=$post[userid]" style="color:red;">trader rating</a> of $post[ratetradetotal]!</div>
<else />
<div style="text-align:center;font-size:12px;color:blue;font-weight:bold;">Positive: This user has <a href="/traderratings.php?$session[sessionurl]u=$post[userid]" style="color:blue;">trader rating</a> of $post[ratetradetotal]!</div>
</if>
<else />
<div style="text-align:center;font-size:12px;color:green;font-weight:bold;">Neutral: This user has no <a href="/traderratings.php?$session[sessionurl]u=$post[userid]" style="color:green;">trader rating</a> history!</div>
</if>
<div style="text-align:center;font-size:12px;"><a href="/traderratings.php?u=$post[userid]&do=feedbacknew">Leave feedback for $post[username]</a></div><br />
</if>
Using this conditional set you could easily do just about anything from showing different information int he threads to just showing the rating in posts in certain forums (or both).
mr.gamesbay
11-22-2004, 03:30 AM
Great MOD! :)
I only missing the popup window after a new rating!?
hasan2k
11-24-2004, 12:02 AM
Does the latest version (1.2.0) contain the ability to limit access by usergroup(s)?
I could not find this important information anywhere in the posts..may be I overlooked. Can someone please tell me?
eoc_Jason
11-24-2004, 03:13 PM
By default if a user has generic posting permissions, then they can use the Trader Ratings system.
However if you want to limit it even further, you can simply add conditional statements in your templates (with the is_member_of() function). Also you can add the same code to the traderratings.php file to make it 100% complete, but usually just editing the templates is enough so that only certain user groups can view / rate people.
alkatraz
11-25-2004, 06:44 AM
finaly got this working
originaly had vbtrader on my vb2 board
upgraded to vb3 and ran into some problems with duplicate fields/tables with this installer (not upgrader)
dropped the conflicting db stuff and got it to work on one style but even after running the installer on multiple styles it still didnt add them
installed the templates manualy from the installer and
it's not working great!
thx for a fantastic script, looking forward to the complete classified system
horrordvds.com
12-05-2004, 08:08 PM
I don't want to have to read through all the pages, so maybe someone can answer for me. Can I manually set someone's feedback number? We have a manual system now and I'd like to implement this, but it would be nice for people to be able to keep their current numbers. Follow what I'm saying?
eoc_Jason
12-06-2004, 11:53 PM
To answer your question, no you can't. The system recalculates out their score each time a ratings is added.
You *could* in theory generate a bunch of old ratings (using some sort of script would probably be the easiest), but you would run into the problem of not having them by a unique user.
tteal
12-08-2004, 01:22 AM
Awesome mod, however, everytime someone tries to read a rating, they get this message:
The Trader Ratings system is currently down for maintainence, but will be back up as soon as possible.
How can that be fixed?
Tks,
Tim
A couple of questions.
1. Edited to say: Found the answer to my own question. :)
2. Is it possible to set submitted ratings to be moderated for approval?
3. How can I fix the "You are responsible for your own words" screen that is extended beyond the screen requiring vertical scrolling to view it completely? See attachment.
Fabulous hack! Thanks!
Something else. In a member's profile where it shows their location when logged in it shows:
Unknown Location /discussions/traderratings.php? @ 09:32 PM
Can we correct this to say Viewing Trader Ratings or something?
And another something else. Is it possible for members to opt out of receiving a PM for every rating someone leaves them?
eoc_Jason
12-13-2004, 01:32 PM
tteal - Did you do an upgrade or new install?
Cyn - No, there is no mod approval in this system, and I doubt there will be in the future. Most people watch their ratings like a hawk and if something isn't right I always get a PM about it. ;)
As for the text, it's all just in the template (I think that might actually be a phrase). However you can just adjust the table structure to stack one on top of the other instead of side-by-side.
As for the unknown location, you can modify your online.php file (I think it is that one) and add a custom location for that file (I believe there are 2 places). I don't like hacking separate files which is why I didn't include it (since it's not really a big deal). However if you really want just do a search as I'm sure you can follow some similar instructions for editing that file.
tteal - Did you do an upgrade or new install?
Cyn - No, there is no mod approval in this system, and I doubt there will be in the future. Most people watch their ratings like a hawk and if something isn't right I always get a PM about it. ;)
As for the text, it's all just in the template (I think that might actually be a phrase). However you can just adjust the table structure to stack one on top of the other instead of side-by-side.
As for the unknown location, you can modify your online.php file (I think it is that one) and add a custom location for that file (I believe there are 2 places). I don't like hacking separate files which is why I didn't include it (since it's not really a big deal). However if you really want just do a search as I'm sure you can follow some similar instructions for editing that file.
Thanks for the prompt response. Our members think this feature rocks! :)
n_wattam
12-13-2004, 09:33 PM
Hi, first i would like to say this hack rocks.
################### postbit, postbit_legacy, MEMBERINFO ###################
- Add somewhere:
<if condition="$post['userid']"><div>postbit2 Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div></if>
I have made the above change to the 3 locations... however i cant find where the postbit_lagacy is displayed in the forum its self??
Cheers
PranK
12-14-2004, 03:37 AM
Hey Guys,
Sorry about this, but my trader ratings has broken. :(
I have checked and dbl checked all the templates, re-uploaded traderratings.php in binary and have pulled 3/4 of my hair out.... now i am begging for help.
The main page displays fine - http://www.skylinesaustralia.com/forums/traderratings.php?u=124
But if you want to leave feedback - http://www.skylinesaustralia.com/forums/traderratings.php?u=124&do=feedback
The source of that page is 100% empty.... i dont know whats going on.
Thanks for any assistance.
Christian
n_wattam
12-14-2004, 08:32 AM
I would like to make the URL FIELD when submitting feedback a required one.. this is so we can track and moderate the system easier...
Can you please tell me where and what code to add for this...
Cheers.
Freezerator
12-14-2004, 08:47 AM
Hey Guys,
Sorry about this, but my trader ratings has broken. :(
I have checked and dbl checked all the templates, re-uploaded traderratings.php in binary and have pulled 3/4 of my hair out.... now i am begging for help.
The main page displays fine - http://www.skylinesaustralia.com/forums/traderratings.php?u=124
But if you want to leave feedback - http://www.skylinesaustralia.com/forums/traderratings.php?u=124&do=feedback
The source of that page is 100% empty.... i dont know whats going on.
Thanks for any assistance.
Christian
I had the same problem, and i fixed it by putting the templates of traderratings in the right style. Are you sure there in the right style?
Freezerator
12-14-2004, 08:51 AM
I would like to make the URL FIELD when submitting feedback a required one.. this is so we can track and moderate the system easier...
Can you please tell me where and what code to add for this...
Cheers.
Edit your traderratings.php
In the first bit of the code you will find this option:
// Require users to enter a URL when submitting feedback
define('TRATING_REQ_URL', 0);
Set it to 1 to require url :)
PranK
12-14-2004, 10:56 AM
I had the same problem, and i fixed it by putting the templates of traderratings in the right style. Are you sure there in the right style?
yeah they are.
i can also see the summary page and peoples specific feedback, but just not leave the feedback.
n_wattam
12-14-2004, 05:17 PM
Edit your traderratings.php
In the first bit of the code you will find this option:
// Require users to enter a URL when submitting feedback
define('TRATING_REQ_URL', 0);
Set it to 1 to require url :)
Ah, cheers for that.. very greatfull, all working now :)
RS25com
12-15-2004, 12:35 PM
Here's a problem I noticed.
I have a user who had some bad deals, so he got some negative feedback. However, he also had some good deals as well. The problem is that he had more good than bad deals, so he still has a +2 rating. If people don't look at his rating in detail, they may think he's good to go and purchase from him, even though he may be committing fraud.
The solution would be to change the way the ratings are calculated. Instead of just +1 or -1, it would be smarter to do it like eBay does - 100% less any negative marks. In this case, he might have 4 good and 2 bad. Instead of having a +2 rating, he would have a 66% rating, where everyone else would have 100%.
How hard would it be to change the way this hack does the math? I would be very interested in seeing it like this.
Besides, people are used to how eBay works, so this would make a lot more sense to more people.
RS25com
12-15-2004, 12:52 PM
Okay, I tried to make the 100% score thing work by changing the math:
In traderratings.php, on line 460
Old: $tradeall = $userinfo[tradepos] + $userinfo[tradeneu] + $userinfo[tradeneg];
New: $userinfo[tradescore] = 100 / $userinfo[tradepos] + $userinfo[tradeneg] * $userinfo[tradepos];
The problem is that I get a division by zero error on the traderratings.php page. However, I believe the math is correct. Now how can I make this work? I'm no PHP programmer so I'm gonna have a very hard time making that work.
So what is the @$userinfo[tradepcnt] = (1 - ($userinfo[tradeneg] / $tradeall) ) * 100; line for? Does that do what I want already? (line 465)
Here's a problem I noticed.
I have a user who had some bad deals, so he got some negative feedback. However, he also had some good deals as well. The problem is that he had more good than bad deals, so he still has a +2 rating. If people don't look at his rating in detail, they may think he's good to go and purchase from him, even though he may be committing fraud.
The solution would be to change the way the ratings are calculated. Instead of just +1 or -1, it would be smarter to do it like eBay does - 100% less any negative marks. In this case, he might have 4 good and 2 bad. Instead of having a +2 rating, he would have a 66% rating, where everyone else would have 100%.
How hard would it be to change the way this hack does the math? I would be very interested in seeing it like this.
Besides, people are used to how eBay works, so this would make a lot more sense to more people.
The percentage certainly seems more informative. I'd prefer it. :thumbsup
dethfire
12-15-2004, 04:02 PM
I have looked into it a bit more....and now it just tells the # I got from different members. Looking under trader ratings at the top though, every single member has a trader rating higher then the # of different traders that left them feedback. Im just hoping it is a mistake and the trader rating # will be set so its the total # again, not the # of different users
dethfire
12-16-2004, 02:19 PM
how do I get the postbit to show all positive feedback instead of the calculated score?
sonicdriven
12-17-2004, 07:09 AM
What am I missing? The hack works great but when i view my posts the trader rating does not show. I have added the
<if condition="$post['userid']"><div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div></if>
to the MEMBERINFO template and to the postbit_legacy but neither made any differnece.
I am a total noob to VB, so i am sure it is something simple i missed, any feedback would be appreciated.
1shotdesign.com/trade
Great Hack BTW
Mark
sonicdriven
12-17-2004, 09:24 AM
woot, NVM problem solved. :D
hasan2k
12-18-2004, 07:33 PM
By default if a user has generic posting permissions, then they can use the Trader Ratings system.
However if you want to limit it even further, you can simply add conditional statements in your templates (with the is_member_of() function). Also you can add the same code to the traderratings.php file to make it 100% complete, but usually just editing the templates is enough so that only certain user groups can view / rate people.Where in the traderratings.php file do I put the
"<if condition="is_member_of($post, 11)">
(trader ratings row)
</if>"
Code. I do not want to use the template change so that no one can type the URL and go to the feedback page.
What I want is:
ONLY 3 USER GROUPS (for example 1,2,3)CAN VIEW, PROVIDE FEEDBACK, RATE and all the other functionalities of this script. NO other user groups (like 4,5,6) can do anything at all. Can this be done with a simple code in the script file?
ONE MORE QUESTION:
The comment field where feedbacks are written can only take 80 characters max. How do I change it to take 300 character?
RS25com
12-20-2004, 09:21 PM
The percentage certainly seems more informative. I'd prefer it. :thumbsup
I am still looking into this. It turns out that the percent is ALREADY calculated on the trader ratings page for the individual. So the math is ALREADY being done. I put the code into the post bit template, though, and it did not work.
Any assistance would be greatly appreciated! :D
bulbasnore
12-27-2004, 06:01 PM
Thanks for the code on making the rating link only show up conditionally. I used that. I think a lot of folks might like to do that.
The biggest problem I've heard with rating is abuse; the URL feature is designed to cut down on this.
We have this FINE HACK INSTALLED in test. One of our mods jumped right in and posted a bogus URL in the feedback. We don't want to have to ban people for doing this.
My thought to cut down on that is to make sure the URL is valid. I tried doing some more validation on the URL tested in line 368 of traderratings.php.
if ($userbuysell == 255 || $userrating == 255 || $usercomments == '' || !preg_match("/http:\/\/*myboard.com\/showthread.php?t*/i",$userurl)) { eval (print_standard_error('error_requiredfields')); }
such that at least it would have to point to a thread in our domain (we have production and test boards). My code is a flop and I'm out of time to debug it today.
However, it seems like the URL to the board is known to vB. Grabbing this URL would allow both basic validation AND to allow the documentation in the URL box to use the actual board URL in the example. I'm new to vB so I don't know this variable and will have to dig for it.
Also, once the thread is known, one could check the thread starter and thread replies for the users involved in giving/receiving the feedback. Disallow the feedback unless the giver is either the thread starter or one of the posters. Don't know how to catch all 3 of these things: the reviewer, thread starter and thread reply posters.
Anyway, if someone can give me some pointers, I'd appreciate it & when its done will contrib the code back.
boo.3
12-27-2004, 06:14 PM
wow this is awsome 10 stars :)
WreckRman2
12-27-2004, 06:31 PM
Here's a problem I noticed.
I have a user who had some bad deals, so he got some negative feedback. However, he also had some good deals as well. The problem is that he had more good than bad deals, so he still has a +2 rating. If people don't look at his rating in detail, they may think he's good to go and purchase from him, even though he may be committing fraud.
The solution would be to change the way the ratings are calculated. Instead of just +1 or -1, it would be smarter to do it like eBay does - 100% less any negative marks. In this case, he might have 4 good and 2 bad. Instead of having a +2 rating, he would have a 66% rating, where everyone else would have 100%.
How hard would it be to change the way this hack does the math? I would be very interested in seeing it like this.
Excellent idea and in fact I came here to request the EXACT same thing you already have. I went to buy something and in the post the user had a 0 rating. My first thougth was he didn't have any ratings. When I clicked on his profile he had 2... one good, one bad so they off set.
Great idea and I hope it can be included!
alkatraz
12-27-2004, 07:42 PM
^^ great idea!! makes a lot of sense
eoc_Jason
12-30-2004, 05:44 PM
I've never had that problem or people complain to me. From what I gather from my users, they do look over a person's trader rating, and also check what previous trades that person had engaged in before.
However, I'll consider adding it in the next version. The biggest issue is just the space that it takes in the postbit template, I just tried to keep it to a minimum.
The % Positive is displayed on the main trader ratings page. Calculating out that number on-the-fly is not advisable when viewing threads. There will need to be an additional column stored in the user table and have the % calculated / updated when the main score is done.
Here's a problem I noticed.
I have a user who had some bad deals, so he got some negative feedback. However, he also had some good deals as well. The problem is that he had more good than bad deals, so he still has a +2 rating. If people don't look at his rating in detail, they may think he's good to go and purchase from him, even though he may be committing fraud.
The solution would be to change the way the ratings are calculated. Instead of just +1 or -1, it would be smarter to do it like eBay does - 100% less any negative marks. In this case, he might have 4 good and 2 bad. Instead of having a +2 rating, he would have a 66% rating, where everyone else would have 100%.
How hard would it be to change the way this hack does the math? I would be very interested in seeing it like this.
Besides, people are used to how eBay works, so this would make a lot more sense to more people.
eoc_Jason
12-30-2004, 05:50 PM
Well, I actually was working on code to validate the URL to ensure that it was a thread that existed in the forum, and that it was in a valid FS/WTB section. However that along with all the other changes have been sitting in limbo as I haven't had time lately to update the hack.
There's a lot of features I was working on, but had to put on hold due to personal circumstances. I'll try to get an update coded, tested, and published within a couple weeks or so.
There have been requests for all sorts of features, some really off-the-wall. My main intention for this hack was to keep it simple and easy to implement. Also to have a minimium amount of changes to the vB templates (and no file changes) as to keep things easier when upgrading vB versions.
Anyhow, as to some of the people posting issues, I've seen them before and they are in this thread, so just read through or do a search. I'm sorry I don't have time to answer everyone's questions individually these days, I'm a very busy person.
Thanks for the code on making the rating link only show up conditionally. I used that. I think a lot of folks might like to do that.
The biggest problem I've heard with rating is abuse; the URL feature is designed to cut down on this.
We have this FINE HACK INSTALLED in test. One of our mods jumped right in and posted a bogus URL in the feedback. We don't want to have to ban people for doing this.
LancerForums
01-03-2005, 06:05 PM
Any idea when the rebuttal comments might be added? This hack has been one of the best and that feature would just make it perfect! :)
Mark
T-mecha
01-03-2005, 10:39 PM
Hi im a noob at these sort of things.
I just installed the trader rating hack. What am i suppose to do after that? Do i have to do anything with the templete.txt file?
How do i activate it onto the forums?
[edit] if i type in the full address i can see the trader rating system, but how do i put it on the forum for all memebers to see and click on it and start using it?
MikaK
01-03-2005, 11:19 PM
*installs*
Good instructions. No hickups with installation. Use not yet tested.
=M=
MikaK
01-03-2005, 11:22 PM
Hi im a noob at these sort of things.
I just installed the trader rating hack. What am i suppose to do after that? Do i have to do anything with the templete.txt file?
How do i activate it onto the forums?
[edit] if i type in the full address i can see the trader rating system, but how do i put it on the forum for all memebers to see and click on it and start using it?
You need to modify the templates as told in the templates.txt to get proper links etc showing at yer forums. Instructions are quite clear if compared with most other mods.
=M=
T-mecha
01-04-2005, 12:13 AM
i got it going, thanx
sbryan
01-04-2005, 02:01 AM
Hi guys. this hack certainly sounds interesting.
i run a small gaming website and our trade forum is very popular with a handful of game trades being done every day.
how we have been handling it is that the seller emails me and i update a trade count figure on their profile that only admins can edit. the seller send the email contaning what games were traded/sold to who and the link to the original thread that we then go close.
i would love to install this hack, it wont eliminate the need for an admin to manually update their trade count but the feedback part is interesting as that would take over that.
what i am concerned about are just a few issues i hope can be answered.
1. attached is a screenshot of how my styles are set up. can anyone see any problems or anything i would need to keep in mind during the install.
2. are negative feedbacks moderated at all? what i dont want to see happening is people that have an issue with another user simply adding loads of negative feedback to scare off other traders. you never know... i dont want to see honest traders (of which i have plenty) getting a bad reputation due to one nasty idiot.
3. has anyone with 3.04 installed this? im running 3.03 now and about to upgrade before i install any more hacks.
Will this hack work with vBulletin 3.0.4?
Nevermind, seems to work perfectly!
eoc_Jason
01-04-2005, 05:16 PM
sbryan:
1. You *might* have to edit the install file to "force" which StyleID you want it to install the templates to.
2. Feedback is not moderated at this time. However, the way the points system work is like eBay. If one person leaves 1,000 negatives, it still only deducts 1 point from their total. The Trader Rating is based on unique members. However, admins/mods can edit/remove any feedback from any user very easily.
3.It should work with 3.0.4 since all the code is independent of any vB files.
sbryan
01-05-2005, 10:32 AM
sbryan:
1. You *might* have to edit the install file to "force" which StyleID you want it to install the templates to.
2. Feedback is not moderated at this time. However, the way the points system work is like eBay. If one person leaves 1,000 negatives, it still only deducts 1 point from their total. The Trader Rating is based on unique members. However, admins/mods can edit/remove any feedback from any user very easily.
3.It should work with 3.0.4 since all the code is independent of any vB files.
thanks Jason.
will try installing it ASAP and give it a test run!
*EDIT* got it all working pretty nicely. trade ratings is appearing in the postbit area under some other custom fields that i put in a while ago and looks quite nice. managed to find alot of the text and edited that (took me a while to find as i was searching in the templates not in the phrases).
it will be a 'tread carefully at first' approach with the forum members but it should compliment our existing system quite nicely. anything that keeps game traders/sellers honest is fine with me.
now to just work out where to put a link in the MEMBERINFO template as well that looks nice and not out of place.
thanks Jason, great hack!
0ptima
01-08-2005, 05:54 AM
Anyone running this hack with 3.0.5?
the wiz
01-08-2005, 11:49 AM
I am.
eoc_Jason
01-08-2005, 03:19 PM
There is no reason it shouldn't work with 3.0.5 (or any other 3.x version for that matter). The Trader Ratings add-on is for the most part a self-contained script that is independent of any vBulletin changes. ;)
Anyone running this hack with 3.0.5?
therczone
01-09-2005, 08:00 AM
*Clicks install* (Works on my vB 3.0.5)
eoc_jason, please PM "Paul M" about his code/hack.
https://vborg.vbsupport.ru/showpost.php?p=584793
I like this hack, but was dissapointed to find an error in my who's online. Here is my version (with trader ratings info) of his hack. I don't take credit for it, I simply edited it's words. This works with vB 3.0.5.
In forumdir/includes/functions_online.php find ;
case 'modcplogin':
$userinfo['action'] = $vbphrase['moderator_control_panel_login'];
break;
and below it add ;
case 'traderratings':
$userinfo['action'] = " Viewing Trader Ratings";
break;
Then Find ;
case 'bugs.php':
$userinfo['activity'] = 'bugs';
break;
and below it add ;
case 'traderratings.php':
$userinfo['activity'] = 'traderratings';
break;
trader ratings who's online, whos online, who online, error
the wiz
01-09-2005, 02:35 PM
*Clicks install* (Works on my vB 3.0.5)
eoc_jason, please PM "Paul M" about his code/hack.
https://vborg.vbsupport.ru/showpost.php?p=584793
I like this hack, but was dissapointed to find an error in my who's online. Here is my version (with trader ratings info) of his hack. I don't take credit for it, I simply edited it's words. This works with vB 3.0.5.
In forumdir/includes/functions_online.php find ;
case 'modcplogin':
$userinfo['action'] = $vbphrase['moderator_control_panel_login'];
break;
and below it add ;
case 'traderratings':
$userinfo['action'] = " Viewing Trader Ratings";
break;
Then Find ;
case 'bugs.php':
$userinfo['activity'] = 'bugs';
break;
and below it add ;
case 'traderratings.php':
$userinfo['activity'] = 'traderratings';
break;
trader ratings who's online, whos online, who online, error
+++++in! Works great on my site!
horrordvds.com
01-09-2005, 04:03 PM
So, if someone has 10 separate transactions over the space of a month and leaves 10 feedbacks, that only counts as 1 point on their feedback rating? It would be nice if we could customize that ability. My forum only has a few thousand members and out of those, only several dozen are active traders. They have always left multiple feedback for each other - on separate transactions - and I always counted each one as a +1 on their score.
Blade-uk
01-09-2005, 04:55 PM
Great hack, but one problem i have found on the stats page -
http://www.tech-arena.co.uk/forum/traderratings.php?
It keeps stating this, so i looked through the instructions which say -
TRATING_CLOSED
- Disables the trader ratings pages and displays a maintainence page
- Set to '0' for open (default), '1' for closed
But my code says -
// Disables the trader ratings pages and displays a maintainence page
// Administrators and Moderators will still be able to view / use the TR system!
// NOTE: PMs will not be sent when closed (so you can test ratings without spamming users)
define('TRATING_CLOSED', 0);
So as it's on 0, shouldn't it be open, any help is greatly appreciated.
Thanks :)
Also even though i've updated from 1.1.0 to 1.2.0 on a members trading page it says Trader Ratings v1.1.0 under their feedback.
eoc_Jason
01-10-2005, 04:34 PM
BladeUK - I replied to your PM with the (hopefully) info you need to correct it.
horrordvds.com - Like I said before, it's based on unique members. In a way, you have to think of the logic behind it. Seeing that 20 different people bought/sold something from a person IMO is a little more comforting to know that one person bought/sold 20 things from a person. The Rating is just the score displayed in the thread view. On the user's trader rating page it displays the total amount of positive feedback received. If you feel the need to make it non-unique, you can easily edit the PHP script to do so, however I'm not planning on making any changes/options in my code.
therczone - Yes, I always knew about how it displayed that info incorrectly in the "who's online", and there are numerous posts on how to alieviate the issue for any custom file (like you posted). I might add an additional text file for people who want to make this change, however I see it as non-essential. If you notice, the rest of the hack doesn't require editing any vBulletin files (this was intentional) so that upgrading from one version to the next (for both vB & TR) would be quick and painless. ;)
Hooligan_R6
01-12-2005, 03:38 AM
First off have to say what a great hack this is! It installed very easily and on my default style is working perfectly. I have 2 styles and made all the same template changes I made to my default to my second template. Each user now has the Trader Rating link with their feedback amount. But if you click on the link to leave them feedback it takes them to a blank page. This is only on the second non-default style.
I tried searching through this thread to find a answer but did not find exactly what I was looking for in relation to my issue.
Thanks in advance!
This is such a great addition to my board. Thanks!
fiber1
01-15-2005, 01:51 AM
Very nice and thank you! Would like to second the link validation in future releases.
Fiber
coolgus
01-18-2005, 03:50 PM
Very Useful !!!
eoc_Jason
01-20-2005, 03:58 PM
This is a template inheritence issue. You need to have all the trader rating templates at the highest level of your styles so that they can be used by all the lower custom styles.
First off have to say what a great hack this is! It installed very easily and on my default style is working perfectly. I have 2 styles and made all the same template changes I made to my default to my second template. Each user now has the Trader Rating link with their feedback amount. But if you click on the link to leave them feedback it takes them to a blank page. This is only on the second non-default style.
I tried searching through this thread to find a answer but did not find exactly what I was looking for in relation to my issue.
Thanks in advance!
Keyser S?ze
01-21-2005, 10:58 AM
right now im using 1.1.0 and its really doing all i want it to, the other new things i really have no use for and i hate to mess with something thats working
so
the oen thing i do want is the notification when someone leaves u feedback, is there anyway to install just that into 1.1.0? i can do it manually if u can tell me what to add
thanks
eoc_Jason
01-21-2005, 01:45 PM
The change from 1.1.0 to 1.2.0 includes more than just new features. It also have various bug fixes that can be somewhat critical under various circumstances. Not to mention that if you do not upgrade properly then there is no guarantee that you will be able to upgrade to future versions correctly.
The upgrade to 1.2.0 is very quick and painless. It does not modify any existing TR templates (if that is what you are concerned about).
Keyser S?ze
01-23-2005, 03:14 PM
ok i upgraded, i wasnt worried about it loosing data i know that never happens (usually anyway), i just didnt want it to stop working so well, one thing i love about this hack is even when i upgrade vb3, the hack doesnt have to be reinstalled, (least in 1.1, we shall see for the new one
one thing, i had hoped this problem for me would have been fixed in 1.2 but its still not working, might be a conflict of another hack im not sure but anyways
the "trader rating: (3)" shows up in legacy but not in vb3 default (the new style postbit)
i have a template hack that allows users to pick in the CP whether they want legacy or vb3 default, could that be causing the problem?
i got the right code in both postbit styles, but just doesnt show up sadly, any ideas?
eoc_Jason
01-23-2005, 05:07 PM
There's no reason it shouldn't work for both template styles (I've used them on both). As long as your code is in both templates and at the right style level, it should work. (I don't know how many custom style's you use, if any, however that seems to be most peoples problem is they have the templates only for one custom styleid...)
billywiz
01-26-2005, 09:53 AM
can some 1 tell me how i set the Trader Ratings so that just trusted members,admins,mods can see refs ?
any help plz sorry if its been asked before just lot of pages 30 lol
cheerz billy
GlitterKill
01-26-2005, 01:57 PM
Got the latest version up and running. GREAT WORK!
http://forums.pimprig.com/traderratings.php
eoc_Jason
01-26-2005, 02:12 PM
Do you mean just to make it visible, or to allow them to rate?
By default the permissions in the PHP file are set to if the usergroup "can post". However you can modify the code & templates to include actual usergroups. (Check the included template sample code).
can some 1 tell me how i set the Trader Ratings so that just trusted members,admins,mods can see refs ?
any help plz sorry if its been asked before just lot of pages 30 lol
cheerz billy
billywiz
01-26-2005, 02:31 PM
Do you mean just to make it visible, or to allow them to rate?
By default the permissions in the PHP file are set to if the usergroup "can post". However you can modify the code & templates to include actual usergroups. (Check the included template sample code).
visible and to rate
wrang
01-26-2005, 04:58 PM
Great mod and it work for me too 3.0.6
But where should i put the code
<if condition="in_array($thread[forumid],array(17,18,19))">
(trader ratings row)
In the template postbit?
It says if i just want to have this function in some forum.
- For multiple forum sections:
<if condition="in_array($thread[forumid],array(200,201))">
(trader ratings row)
</if>:
So where should i put this in the template
Regards
Christian
v8news
01-26-2005, 11:44 PM
Do you mean just to make it visible, or to allow them to rate?
By default the permissions in the PHP file are set to if the usergroup "can post". However you can modify the code & templates to include actual usergroups. (Check the included template sample code).
Can you please put that in a way I could understand.
Lets say i only want this feature to be available to a member group "Respected" and they only have access to the rating feature. Can you post a step buy step modification (weather that be via the CP or via editing the raw php code) to make this functional only to the "Respected" group.
How do I even make the group. (Sorry for the newbieism)
Allso are you working on a new version I currently have Trader Ratings 1.2.0 installed and functioning correctly and it has poteintial to become alot better.
Excellent work buy the way. :D
JulianD
01-27-2005, 06:50 PM
Great hack! I just installed it on my boards with some minors modifications according to my needs.
eoc_Jason
01-28-2005, 04:20 PM
Yes, I am working on a new version, but it is *kind* of a major overhaul from this version. Part of the problem is I don't have much free time, and this is a "free" add-on, so it is low on my priority list, so I don't know when the next version will be released.
Allso are you working on a new version I currently have Trader Ratings 1.2.0 installed and functioning correctly and it has poteintial to become alot better.
MustangLisa
01-28-2005, 09:26 PM
This is FANTASTIC. Thanks!!
javageek
02-01-2005, 01:48 PM
I just installed this, great work!
oldfan
02-01-2005, 09:23 PM
* oldfan drools
Yes, I am working on a new version, but it is *kind* of a major overhaul from this version. Part of the problem is I don't have much free time, and this is a "free" add-on, so it is low on my priority list, so I don't know when the next version will be released.
javageek
02-02-2005, 01:08 PM
A cool new feature would be to do batch ratings. Sometimes on my site we have people sell decals to 100 people or more, if they could just put a check next to the peoples name and fill out one comment that would be cool. I don't have a clue as to how hard it would be to implement though.
TurboTwoLiter
02-02-2005, 11:01 PM
will this work with 3.0.6 by chance?
fuse3k
02-03-2005, 04:39 PM
Noob question:
How do you ADD feeddback to a user? I have it showing their trader rating on the memberlist, postbit, etc, and the traderraatings page works fine but I can't figure out the steps to add feedback to a member. Thanks.
Keyser S?ze
02-03-2005, 07:20 PM
click on their trader rating, per say in the post bit, like this "Trader rating (2)" id click the 2
that goes to their display page and there u will see a link for "add trade feedback" or soemthing like that
pretty smple
will this work with 3.0.6 by chance?
sure will, my forum is running 3.0.6 and it works just fine
---
just a thought, i think this looks better myself, i changed the positive and negative icons to these, (attached in case u want them)
fuse3k
02-03-2005, 07:39 PM
click on their trader rating, per say in the post bit, like this "Trader rating (2)" id click the 2
that goes to their display page and there u will see a link for "add trade feedback" or soemthing like that
pretty smple
I don't have that link displayed on the Trader Ratings page. If I try to manually add it in the address bar it tells me I don't have permissions. Any ideas?
Keyser S?ze
02-03-2005, 08:05 PM
this link right here, how could u not have it
fuse3k
02-03-2005, 08:09 PM
this link right here, how could u not have it
Beats me, Everything else is being displayed except for the link to add feedback. If I try to go to it directly by point to traderratings.php?u=1&do=feedbacknew it get the message:
Brian, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Keyser S?ze
02-03-2005, 08:21 PM
go download this hack again and reupload traderrating.php
fuse3k
02-03-2005, 08:34 PM
I didn't modify the traderratings.php file at all so I can't see how that would do anything. Any other ideas?
Keyser S?ze
02-03-2005, 09:01 PM
nope, maybe ecco jason will know, whats the link to ur forum, u can PM it to me if u dont want to post it
eoc_Jason
02-05-2005, 08:24 PM
He figured it out... He was trying to rate himself... ;) (which you can't do)
wrang
02-06-2005, 07:20 AM
Where shuold i put this code in the postbit template??
<if condition="$thread[forumid] == 16">
(trader ratings row)
</if>
Stussi
02-08-2005, 02:01 PM
Hey Jason! Very nice Hack!
But i?ve got some problems with it....
I've installed it ~3 month ago and now it makes some problems:
I've rated a guy in my forum. He had one positive rating (rated by me) and i wanted to leave him a second... worked fine but: (i translated it in german...)
Bewertungen: 1
Positive Bewertungen: 100,0%
Positive Bewertungen von Mitgliedern: 1
Negative Bewertungen von Mitgliedern: 0
Positive Bewertungen insgesamt: 2
How is that possible?? he got 2 positive ratings by me and theres only one listed....
I also changed the Value in the DB but no effect...
And i edited the ratings... still no effect..
I also gave him a third positive... no effect except there are 2 overall ratings and 3 positve...
there are NO negative ratings...
Edit: it seems that the ratings by the same Userid dont count....
lifesourcerec
02-09-2005, 08:33 PM
IS there a way to manually add feedback. I merged 2 accts and the feedback thing didn't carry over.
eoc_Jason
02-17-2005, 04:05 PM
Stussi - The rating is based on unique users. Thus if you rated him 1,000 times, then it would still only give him 1 point.
lifesourcerec - if you wanted to merge over his ratings, you would probably need to search the table for his old userid, and alter them to his new userid. Also you would need to take into consideration users he rated. That can get kind of messy depending on the total rating numbers.
lifesourcerec
02-18-2005, 12:05 AM
lifesourcerec - if you wanted to merge over his ratings, you would probably need to search the table for his old userid, and alter them to his new userid. Also you would need to take into consideration users he rated. That can get kind of messy depending on the total rating numbers.
Once I find his old id, how would I alter them over to his new one? change the old id to the new one?
ChrisBaktis
02-19-2005, 12:35 PM
I would like to add a box in a members profile area that shows the last 5-10 feedbacks. Can anyone help with the code I need to add (if it is possible)?
JazzleBug
02-20-2005, 09:14 PM
Stussi - The rating is based on unique users. Thus if you rated him 1,000 times, then it would still only give him 1 point.
lifesourcerec - if you wanted to merge over his ratings, youwouldprobably need to search the table for his old userid, and alterthem tohis new userid. Also you would need to take into considerationusers herated. That can get kind of messy depending on the totalratingnumbers.
Any idea if there will be an update regarding the merging/changingofmembernames/id's? We've already had some trouble with this and asthesite grows, it's only going to get worse.
Great addition, though! My members are using the hell out of it! :p
Telkman
02-21-2005, 09:56 AM
Just a very small change I thought other people may be interested in, or have some comments on...
In the navbar on various pages, the "View Trader Ratings", "Edit Trader Ratings" etc link to the user you are currently editing - to fit in more with the traditional vB breadcrumbs style, these should perhaps link to the parent page, with no user specified.
Ideally, these would link to a page appropriate to the action in question, e.g. an edit/submit page where you can search for the user, but for something so simple and effective, that over complicates things rather - To simply have each link return to the trader ratings page, simply remove u=$userinfo[userid]from each of the below lines in traderratings.php.
$navbits = construct_navbits(array("traderratings.php?$session[sessionurl]u=$userinfo[userid]" => "View Trader Ratings",'' => $userinfo['username']));
$navbits = construct_navbits(array("traderratings.php?$session[sessionurl]u=$userinfo[userid]" => "Submit Trader Ratings Feedback",'' => $userinfo['username']));
$navbits = construct_navbits(array("traderratings.php?$session[sessionurl]u=$userinfo[userid]" => "Edit Trader Ratings Feedback",'' => $userinfo['username']));
What becomes of a member's ratings under his or her original username when a change in username is made?
Telkman
02-23-2005, 06:55 AM
The ratings are stored under the member's id, not their username - a change of username on the same account wouldn't affect the ratings.
ChrisBaktis
02-25-2005, 12:14 AM
Anyone know how to post the feedback rating on another page?
Using this code results in no feedback rating:
<tr>
<td class="alt1">
Feedback Rating:</b> (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)<b>
</td>
</tr>
This works in the postbit and memberinfo templates but not on another template I have created.
Telkman
02-25-2005, 07:51 AM
It depends on the page you want to have the feedback on - the $post[] array wouldn't be in use on non post related pages for example, but you may be able to use $userinfo[ratetradetotal] if the $userinfo[] array is populated.
It seems unlikely that something wouldn't already have the appropriate field stored if there's anything to do with user details on the page in question - it just depends what you're trying to do.
ChrisBaktis
02-25-2005, 10:38 AM
thanks a million!
djjeffa
03-04-2005, 11:36 PM
I noticed a member recived 3 + feed backs but it only showes 2 in his profile
anybody have any ideal why?
EDIT: is it because the same member left 2 + feed backs? cause it only showes 2 in his postbit?
Blootix
03-05-2005, 02:39 AM
I noticed a member recived 3 + feed backs but it only showes 2 in his profile
anybody have any ideal why?
EDIT: is it because the same member left 2 + feed backs? cause it only showes 2 in his postbit?
If the same member gives two or more feedbacks, it will only count as one in their postbit / memberinfo. This is to prevent scamming... (I think).
Read this:
The only part that might confuse someone is that the Feedback Score is based only on UNIQUE members.
Anyway, a suggestion to a future release would be maybe to disable certain usergroups from using this Trader Rating System.
Osiris2k
03-24-2005, 11:06 PM
Hi i installed this hack on 3.0.7 and it seems to work, except for one thing
The ratings is shown above the users name not where it should be. I included an img.
Anyway to fix it?
And also, is there a way to add a link to a userprofile which would forward to his/hers rating page.
edit: fixed
https://vborg.vbsupport.ru/showthread.php?p=632136#post632136
Someone asked up in post #415 about increasing the max characters for the feedback comment field. I searched the thread but didn't see that answered. Anyone know how?
Telkman
03-25-2005, 04:11 PM
Not had the chance to test this, so try it at your own risk...
In the tratings_feedback template, find <input class="bginput" type="text" name="usercomments" size="45" maxlength="80" value="$trating[usercomments]"><br />
Change the maxlength parameter to the maximum you're after.
Then edit the user_rate_trade table... the usercomments field is a varchar with the same maximum length. It could feasibly be a lot larger than maxlength parameter for the input anyway, but as it's limited by the input there's not much point.
I'm at my office PC, so I've not been able to check/test the above, but after downloading the script it would seem to be all that affects the comments - being limited by the maxlength in the input, there's no need for any validation of the length, so this should work.
Thanks Telkman! But can you tell me where to find/how to edit the user_rate_trade table? It's not a template?
Telkman
03-25-2005, 08:00 PM
The MySQL database table by that name.
Easiest would be to use phpMyAdmin... depending on your version: Select Database from dropdown > Click table from frame on left > Click change by field in question > Edit length.
If you need to use SQL from the command line or from within the admincp, it would be something along the lines of this, but again check it first as I've not had the opportunity to test:
ALTER TABLE `user_rate_trade` CHANGE `usercomments` `usercomments` VARCHAR(*number*) NOT NULL
Skaterscafe.com
03-27-2005, 05:04 AM
Well I tried to look thru the 30+ pages here and could not find it, when running the install I get the following:
Database error in vBulletin 3.0.1:
Invalid SQL: SELECT templateid FROM template WHERE title = 'tratings_display' AND styleid =
mysql error: 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 '' at line 1
mysql error number: 1064
Date: Sunday 27th of March 2005 12:51:37 AM
Script: http://www.lawncafe.com/cpadmin/install_traderratings.php
Referer: http://www.lawncafe.com/cpadmin/install_traderratings.php
Any ideas?
The MySQL database table by that name.
Easiest would be to use phpMyAdmin... depending on your version: Select Database from dropdown > Click table from frame on left > Click change by field in question > Edit length.
If you need to use SQL from the command line or from within the admincp, it would be something along the lines of this, but again check it first as I've not had the opportunity to test:
ALTER TABLE `user_rate_trade` CHANGE `usercomments` `usercomments` VARCHAR(*number*) NOT NULL
We don't have phpMyAdmin installed so I'll have to do it from the command line or the admincp. I guess I'll run that and hope it works. I'll let you know. Thanks for your help Telkman. :)
xtreme-mobile
03-27-2005, 02:34 PM
is there any way of changing where it says traders rating (0)?
i would much rather it in the users profile than just under the podt in a blank area
see screen shot
cheers
awsome hack though ;)
Osiris2k
03-27-2005, 08:36 PM
I found a way to fix it
Change the template postbit
First find where you added
###############
<if condition="$post['userid']"><div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div></if>
###############
delete it.
Now find
###############
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
###############
and ADD the following line under it
###############
<if condition="$post['userid']"><div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div></if>
###############
thats it..
If you want ill post a tut how to post the trader rating on the userpage.
xtreme-mobile
03-27-2005, 08:40 PM
what does this do mate?
who are you replying to :)
Osiris2k
03-27-2005, 08:49 PM
is there any way of changing where it says traders rating (0)?
i would much rather it in the users profile than just under the podt in a blank area
see screen shot
cheers
awsome hack though ;)
to that..(you)
and if you want i can write a quick tut on how to make the trader rating show up on the memberspage(like trader2.jpg)
xtreme-mobile
03-27-2005, 08:53 PM
nice one cheers mate if you dont mind :) the code you added above worked a treat ;)
djwins
03-27-2005, 09:14 PM
How do mods and admins edit users feedback?
Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.