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)

oldfan 09-02-2004 01:43 AM

Quote:

Originally Posted by Polo
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.

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

Quote:

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

Quote:

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

Code:

$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/traderr...?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

Quote:

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

Quote:

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.

-----------------------------------------------------

Quote:

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.

-----------------------------------------------------

Quote:

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

-----------------------------------------------------

Quote:

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... ;)

Quote:

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
Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
 
if ($_REQUEST['do'] == 'stats') {

Add after

Code:

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

Quote:

Originally Posted by muscle-mustangs
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:

Code:

<strong>$userinfo[datejoined]</strong>
and add this below:

Code:

<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

Quote:

Originally Posted by the wiz
In your MEMBERINFO template, look for:

Code:

<strong>$userinfo[datejoined]</strong>
and add this below:

Code:

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


Quote:

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

Quote:

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

Quote:

Originally Posted by VodkaFish
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.



All times are GMT. The time now is 04:56 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.03254 seconds
  • Memory Usage 1,842KB
  • 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
  • (7)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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