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)

[H]Dazz 06-03-2004 03:10 PM

Wow! Looks great. Now only if someone would pick up where vbTrader has left off this would be excellent.

PAINTBALLM 06-03-2004 03:13 PM

I love you :) lol

It would be awsome to have the star system too... after 10 feedbacks it changes to yellow star, after 20, blue, etc. etc. etc. Maybe an About ME page too to let people create their own info page ;) Heck, why not go all out and actually do an entire auction system to work for vbulletin. I'd pay :)

r6xual 06-03-2004 03:15 PM

I am still running into the same problem with it not showing up in the postbit, check out this thred http://www.gpfanatix.com/forums/showthread.php?t=2.

The following is the code in my postbit_legacy. By looking at the code, it should show up under join date correct??

Quote:

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['userid']"><div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</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>
I really would like to get this up and running, if anyone has any ideas. Thanks

drumsy 06-03-2004 03:26 PM

Quote:

Originally Posted by eoc_Jason
Lastly, I'm just curious, if I put up a paypal donate button on the first post, do you think any of you guys would dontate anything? I know this brings a lot of commerce to your sites, and also long-term member loyalty. I usually wouldn't do something like this, however I'm currently unemployed and in what little free time I have I've been spending all of it working on coding this, and helping people get it installed (and tweaked a couple servers too... hehe).

Put it up! :thumbup:

[H]Dazz 06-03-2004 03:31 PM

Do a complete classifieds/buy/sell/auction + your rating system.... :drool: I'd be all over that nad even pay a pretty penny.

lifesourcerec 06-03-2004 03:46 PM

Yeah, the stat page would be great.

eoc_Jason 06-03-2004 04:02 PM

You need to edit your 'postbit' template and add it there for your current style.

postbit = userinfo above the post (new vB3 style)
postbit_legacy = userinfo to the left of the post (vB2 style)

That's why it's not showing up... ;)

Quote:

Originally Posted by r6xual
I am still running into the same problem with it not showing up in the postbit, check out this thred http://www.gpfanatix.com/forums/showthread.php?t=2.

The following is the code in my postbit_legacy. By looking at the code, it should show up under join date correct??

I really would like to get this up and running, if anyone has any ideas. Thanks


r6xual 06-03-2004 04:06 PM

Pimp!!. Thanks a ton, got it working now!!

*clicky install*

eoc_Jason 06-03-2004 04:28 PM

Well, my long-term goal is to create a classifieds and auction add-in, and it will definitly integrate with these ratings. But that's a lot of code, and I'm still learning all the in's-and-out's of vB3, so this is a great primer. (Yes, it will be free too when I make it.)

In the mean time that's why I wanted to get a simple "transaction" button up that can be displayed on a per-forum basis. This will give some form of knowing who the buyer & seller are, and also tie it to a thread, then allow users to rate that "transaction". The shift from a thread to a classified/auction listing shouldn't be too difficult.

I got a paypal button up on the first page, thanks again guys for all your support. I try to keep the first post updated with stuff that I'm fixing/adding. I'm hoping to have 1.02 posted this weekend. Upgrading should be fairly quick and simply, it's really just changes in the PHP file, a DB modification, and maybe some phrases (so the upgrade should all be automated).

Thanks for the tip Yahhoon23, I wasn't sure if it could be a direct drop-in the members template or not, I'll have to check it out for myself.

PaintballM - lol, eBay is going to sue my poor arse! But stars should be easy enough to implement, and also an "about me" page. Also maybe grouping users based on their stars would be good for the stats page? :)

Another big thing I wanted to have was a selection for user location, in the same style that eBay does where it's just general-areas. I know a lot of my users just type random things like "in your closet" for the defailt location field. Maybe that can tie in with the "about me" page?

PAINTBALLM 06-03-2004 09:19 PM

For those who do not have full size layouts, and only using something around 750-755 pixels, the leave feedback page distorts the layout. I will write a fix for those of us who have smaller layouts in a little bit.

PAINTBALLM 06-03-2004 09:54 PM

open template: tratings_feedback

Replace entire code with the code in the attached TXT file. It will make it look like http://pbmessage.com/forums/traderra...12&do=feedback

eoc_Jason 06-03-2004 10:49 PM

^^^ I designed it around a minimum width of ~1000 pixels (assuming users run 1024x768 as a bare minimum)...

If you want it to all fit on a smaller width, you will probably have to use a smaller font.

Also, people can't see the feedback page unless they are registered, you might just want to post a screenshot for your example.

The good thing is, with the minumum amount of templates, changes are simple... ;)

RonH. 06-04-2004 12:33 PM

Quote:

Originally Posted by Larry@IOG

I installed on a new clean VB3 and I see no place to leave feedback. Also I see the trader feedback() but thats it.

Larry


Quote:

Originally Posted by lifesourcerec
Log out of the forum and then log back in. I had that problem at first also.

I finally got around to installing this hack this morning but I too have not a clue as to how to leave feedback either. I've gone back and read and re-read all the posts here in this thread and finally figured out how to at least finally see/access the feedback link in a post but that is the extent of what I can see/do at this point.

Also, is there a panel/option in the AdminCP that I'm missing perhaps? Does one need to establish PERMISSIONS and if so, how - where?

I usually don't like to ask unless there is no other obvious solution visible to me. So if anyone can assist I'd appreciate it much.

sketch42 06-04-2004 12:38 PM

Quote:

Originally Posted by RonH.
I finally got around to installing this hack this morning but I too have not a clue as to how to leave feedback either. I've gone back and read and re-read all the posts here in this thread and finally figured out how to at least finally see/access the feedback link in a post but that is the extent of what I can see/do at this point.

Also, is there a panel/option in the AdminCP that I'm missing perhaps? Does one need to establish PERMISSIONS and if so, how - where?

I usually don't like to ask unless there is no other obvious solution visible to me. So if anyone can assist I'd appreciate it much.

make sure you edited your postbit or posbit_legacy(depending which you use) template. there is no panel in the Admin CP all permissions are preset in the Hack. i.e.: No user can leave themselves feedback, Only admins can have the option to Delete Trader Ratings etc....

RonH. 06-04-2004 12:55 PM

Quote:

Originally Posted by sketch42
make sure you edited your postbit or posbit_legacy(depending which you use) template. there is no panel in the Admin CP all permissions are preset in the Hack. i.e.: No user can leave themselves feedback, Only admins can have the option to Delete Trader Ratings etc....

Thanks for the quick response. However I figured it out (by accident). It finally dawned upen me that I was looking at my own FEEDBACK page while logged in under my own username. I remebered Jason saying that was a no-no. So, me slaps meself upside the head and then goes and checks someone elses post and, wahla, there was the button Submit Feedback For .........

RonH. 06-04-2004 02:00 PM

OBTW - I did click 'INSTALL'.

Freezerator 06-05-2004 09:41 AM

Great hack!

I am looking forward tot version 1.2 :)

Tilmanitou 06-05-2004 06:03 PM

Quote:

Originally Posted by eoc_Jason
Oh yeah, I forgot to ask you guys, but would you be interested in me adding the ability for users to rate based on usergroups? It's not terribly hard. I actually use it on my site currently because new users can't use/see the FS/WTB section so it only makes sense for them not to be able to rate people.

Yeah!! That would be a pretty important feature for me as well as I use access rights pretty much as you do on your site. please integrate it! Shouldn't be a big thing if you already use it on your site? Thanks alot!

eoc_Jason 06-05-2004 08:38 PM

Well the user edit/del feature will definitly be in 1.2, and I should be able to add the usergroup stuff too.

I'll probably release 1.2 on Monday morning, not only do I have to finish the code, but also make sure the install & update scripts work properly. This update had to convert the userdate table to an int format (to be consitent with the rest of vB) so that I can restrict time editing, and now I'm having to re-do a lot of things for date grouping.

lifesourcerec 06-05-2004 09:17 PM

:) What should we look for in v1.02?

eoc_Jason 06-06-2004 03:32 AM

I just finished coding up the edit/del feature. You can customize the time to whatever you want (or disable it to prevent regular user editing). Mods/admins have the right to edit/delete all feedback.

I made all the necessary changes to the DB & code, there was a lot of re-write to support the editing & permissions and such, I'm not sure if I will consolidate it before this next release or not. (I try to write functions whenever feasable.)

Sunday I'll probably code in the usergoup permission stuff, convert some new text to phrases, and write the upgrade/install scripts. If nobody reports any bugs to me on my forum then I'll release v1.10 on Monday morning.

I think user based editing/deletion will really help out a lot and reduce those PMs from members saying "hey, I made a mistake rating this person..." ;)

One thing I *might* change in the future is a soft/hard delete option, kinda like what you can do with threads. But I'm not really sure it's worth the effort...

BamaStangGuy 06-07-2004 02:47 PM

How do I make it where it only shows the Trader Rating (0) in postbit for certain forums?

I only want that to show in the For Sale sections of my forum.

eoc_Jason 06-07-2004 03:20 PM

Well, depending on if you have only 1 FS section or multiple, there's a couple ways you can do it, but both require editing your postbit template and using some conditionals. Also someone asked about specific user groups so I'll include those too:

Here's some examples (note, this code will be included with 1.1.0):

For specific member group (or sub-group):
PHP Code:

<if condition="is_member_of($post, 11)">
(
trader ratings row)
</if> 

For specific forum section:
PHP Code:

<if condition="$thread[forumid] == 200">
(
trader ratings row)
</if> 

For multiple forum sections:
PHP Code:

<if condition="in_array($thread[forumid],array(200,201))">
(
trader ratings row)
</if> 

Combining the two together:
PHP Code:

<if condition="is_member_of($post, 11) && in_array($thread[forumid],array(200,201))">
(
trader ratings row)
</if> 


Hope that helps out... FYI, I'm still coding the upgrade script for 1.1.0. Should be up soon though.

eoc_Jason 06-07-2004 05:27 PM

Okay, version 1.1.0 has been officially released. I tested out the upgrade and install scripts, however please post your upgrade/install results (good & bad) so I know if it is working or not. :)

There are some pretty big code & template changes in 1.1.0, be sure to backup your user_rate_trade table and 3 trating_xxx templates!!! (I can't stress this enough!) The update makes several changes to the DB table, and will overwrite the trating templates!

I'll be posting updated screenshots in a few. Read the CHANGELOG.txt & README.txt file more more info.

NexVision 06-07-2004 05:49 PM

upgrade script worked beautifully

EyeCrave 06-07-2004 06:37 PM

Works like a charm. Thanks again.

Yahhoon23 06-07-2004 06:41 PM

Worked Perfect on mine as well using a table prefix.

Great Job.

lifesourcerec 06-07-2004 07:34 PM

I went ahead and re-added the code to make the link mandatory.

sketch42 06-07-2004 08:12 PM

everything works like a charm ;)

just one question but where do i add this code? am i replacing the existing code on the postbit? im not to clear on that
Code:

<if condition="in_array($thread[forumid],array(49,52,53,54,55))">
(trader ratings row)
</if>


eoc_Jason 06-07-2004 08:14 PM

Right, so the part where you have <div>Trader Ratings....</div>

Put the <if...> before that row, and the </if> after that row in the postbit/postbit_legacy.

sketch42 06-07-2004 08:21 PM

Quote:

Originally Posted by eoc_Jason
Right, so the part where you have <div>Trader Ratings....</div>

Put the <if...> before that row, and the </if> after that row in the postbit/postbit_legacy.

forgive me .. im a little slow today...lol like this?!?! correct?

Code:

<if condition="$post['userid']"><if condition="in_array($thread[forumid],array(49,52,53,54,55))">
(trader ratings row)<div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)
                                </div></if>


eoc_Jason 06-07-2004 08:39 PM

Here, use this:
PHP Code:

<if condition="$post['userid'] && in_array($thread[forumid],array(49,52,53,54,55))">
    <
div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div>
</if> 


CADguru 06-08-2004 12:47 AM

We already hold a "rating" system on our board monitored by a moderator. Is it possible to add existing old scores into a users Trade Rating profile to get kick started? (obviously without any comments or times)

Your system installed like a dream by the way :)

Mike

sketch42 06-08-2004 12:58 AM

Quote:

Originally Posted by eoc_Jason
Here, use this:
PHP Code:

<if condition="$post['userid'] && in_array($thread[forumid],array(49,52,53,54,55))">
    <
div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div>
</if> 



thats weird... i get this error when i used your code
Code:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/httpd/vhosts/hofoufn.com/subdomains/vb/httpdocs/includes/adminfunctions_template.php(3037) : eval()'d code on line 194
but mine i dont get a parse error... :confused:

eoc_Jason 06-08-2004 02:11 AM

It shouldn't generate an error... maybe try removing the '' from that first $post['userid'] You can nest it with two if's (your example), however make sure you have two closing if's (one for each), in your code above you only had one...

eoc_Jason 06-08-2004 02:12 AM

You would have to show me how the old one is maintained, I might be able to give you some tips to port it over.

Quote:

Originally Posted by CADguru
We already hold a "rating" system on our board monitored by a moderator. Is it possible to add existing old scores into a users Trade Rating profile to get kick started? (obviously without any comments or times)

Your system installed like a dream by the way :)

Mike


sketch42 06-08-2004 02:20 AM

Quote:

Originally Posted by eoc_Jason
It shouldn't generate an error... maybe try removing the '' from that first $post['userid'] You can nest it with two if's (your example), however make sure you have two closing if's (one for each), in your code above you only had one...

that was it!!! lol i had 2 closing </if>'s when i put your code.. i forgot to delete one of them d'oh!!! :lick:

cka 06-08-2004 03:12 AM

Very nice. I'll have to click the ol' install since I put this on a forum I administer. One thing that kinda bugged me however was that the install script didn't add the templates to all the styles at once, but I was able to get around that relatively easily. Great job overall!

eoc_Jason 06-08-2004 03:25 AM

Well, since different people have a different styleid as their root, I didn't want to just pick a number out of the blue. I'll probably modify it so the user can select with a dropdown which one they want to install to in a future release. But at the same time I tried to make the whole install of the hack as automated as possible for people who don't know much about how vB works.

Also, it is my first time coding an installer, it's either that or a massive txt file with all the stuff to do... ;)

drumsy 06-08-2004 03:42 AM

Database error on upgrade:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL: ALTER TABLE user_rate_trade DROP INDEX rateduser_2
mysql error: Can't DROP 'rateduser_2'. Check that column/key exists

mysql error number: 1091

Date: Monday 07th of June 2004 11:41:32 PM
Script: http://www.honda-acura.net/forums/ad...derratings.php
Referer: http://www.honda-acura.net/forums/ad...derratings.php
Username: Daniel
IP Address: 24.74.93.185

I'm looking in the database and I don't see that column there either. I took a look at your install file, and I see where it would install in there from a blank canvas, but I upgraded from the vB2 version. What am I missing and what query can I run to either get taht column in there or have the upgrade file skip that step.


All times are GMT. The time now is 04:32 PM.

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.01991 seconds
  • Memory Usage 1,861KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_php_printable
  • (12)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