vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Trader Ratings v1.2.0 (https://vborg.vbsupport.ru/showthread.php?t=65730)

n_wattam 12-13-2004 09:33 PM

Hi, first i would like to say this hack rocks.

Quote:

################### 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/for...ings.php?u=124

But if you want to leave feedback - http://www.skylinesaustralia.com/for...24&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

Quote:

Originally Posted by PranK
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/for...ings.php?u=124

But if you want to leave feedback - http://www.skylinesaustralia.com/for...24&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

Quote:

Originally Posted by n_wattam
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:
Code:

// 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

Quote:

Originally Posted by Freezerator
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

Quote:

Originally Posted by Freezerator
Edit your traderratings.php

In the first bit of the code you will find this option:
Code:

// 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)

Cyn 12-15-2004 12:57 PM

Quote:

Originally Posted by RS25com
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


All times are GMT. The time now is 01:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02557 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete