Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
iTrader v2.8 - Powerful Rating System Details »»
iTrader v2.8 - Powerful Rating System
Version: 2.8.2 RC2, by entertain entertain is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Category: Major Additions - Version: 4.x.x Rating:
Released: 01-02-2010 Last Update: 03-20-2012 Installs: 908
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Please nominate this mod for MOTM!



iTrader 2.8
Click here for a version for vBulletin 3


This modification offers you a rating system for trades which are made on your board. As it is an advantage of the rating system on ebay, this gives your users some secureness.

=================================
NOTICE ABOUT THE AUTHOR:

I added vBulletin 4 support for this modification because Nexus (vbenhancer) announced that he won't do this in the next time. He gave me the permissions to release it here. Thank you!

Please do not contact vbenhancer for support! He is not responsible for this version.

=================================

Installation
The installation is as easy as abc. You only have to upload the files and import the product in your vBulletin admincp.

Update
Also updating this modification (including this from vB3) isn't very difficult. Only overwrite all files and the product in your vBulletin admincp.

Screenshots
itrader_rateuser.png
Rate a trader/seller

itrader_user270.jpg
iTrader Profile

itrader_main270.jpg
iTrader Main Page

itrader_tab.png
iTrader Profile Tab

Known issues:
none

Feature requests:

- microCLASSIFIEDS/AUCTIONS integration (?)
- latest threads of a selected forum on itrader main page

* Implemented in upcoming release

Release History
Cick here

Translations:
- German by Andre31

Please DONATE for further releases!

Download Now

File Type: zip iTrader 2.7.9 vB4.1.x.zip (51.1 KB, 458 views)
File Type: zip iTrader 2.8.1 vB4.1.x.zip (51.8 KB, 779 views)
File Type: zip iTrader 2.8.2 RC2 PATCHED.zip (51.6 KB, 2172 views)

Screenshots

File Type: png support.png (5.1 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #372  
Old 04-23-2010, 10:45 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The indexes defined in the iTrader table are not scalable at ALL. It's causing full table scans for queries and joins done when you are looking at iTrader stuff for any user. This was causing our user table to have locking issues since those queries are joined to the user table, which in turn causes everything in the forum to slow down (even if it has nothing to do with iTrader).

1. The index rateid index has no need for it to include the dateline column in the index.

2. The index rateduserid is an exact duplicate of the rateid index. This index should include rateduserid and dateline columns (it incorrectly includes rateid and dateline).

3. An index for rateduserid + buyselltrade columns is needed.

I've made those changes to our itrader table and now our itrader table (which has 526,000+ iTrader ratings) does not cause issues any longer.

This is what our indexes look like now:



Hopefully we will see index fixes in a future version of iTrader package?
Reply With Quote
  #373  
Old 04-24-2010, 02:57 AM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great question digitalpoint!
Reply With Quote
  #374  
Old 04-24-2010, 07:30 AM
entertain entertain is offline
 
Join Date: May 2007
Location: Bavaria
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@digitalpoint:
I didn't want to change the database structure, because maybe vbenhancer is going to release v3 with the old structures and this would make an update to v3 very, very difficult.
Reply With Quote
  #375  
Old 04-26-2010, 02:40 AM
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

First of all thanks to keep updating this awesome plugin.

My question: Is there any way to keep the rate seller button on every post and not only the first one?

Thanks in advance, greetings.
Reply With Quote
  #376  
Old 04-26-2010, 12:44 PM
entertain entertain is offline
 
Join Date: May 2007
Location: Bavaria
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@sevenmix:
Admin CP -> Plugins & Products -> Plugin Manager

Edit plug-in: iTrader Navbar Link (postbit_display_complete)

Search for:
PHP Code:
    if (in_array($this->forum['forumid'], $itrader_forumsurl_ok) AND $this->registry->options['itrader_rate_trade'] AND $this->registry->bf_ugp['itraderpermissions']['canrate'] AND $vbulletin->userinfo['userid'] != $thread[postuserid] AND $this->post['postid'] == $this->thread['firstpostid']) 
change into
PHP Code:
    if (in_array($this->forum['forumid'], $itrader_forumsurl_ok) AND $this->registry->options['itrader_rate_trade'] AND $this->registry->bf_ugp['itraderpermissions']['canrate'] AND $vbulletin->userinfo['userid'] != $thread[postuserid]) 
(untested )
Reply With Quote
  #377  
Old 04-26-2010, 03:00 PM
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much entertain, that works perfectly
Reply With Quote
  #378  
Old 04-29-2010, 01:15 PM
Retal Retal is offline
 
Join Date: Nov 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, the links under usernames on the page "Left for others" lead to the iTrader page of the user who left the rating, not the user who was rated.

Solution

itrader.php
Change
PHP Code:
        $templater vB_Template::create('itrader_userbits');
            
$templater->register('itrader'$itrader);
            
$templater->register('userinfo'$userinfo);
        
$itrader_userbits .= $templater->render(); 
to
PHP Code:
        $templater vB_Template::create('itrader_userbits');
            
$templater->register('itrader'$itrader);
            
$templater->register('userinfo'$userinfo);
            
$templater->register('viewuser'$viewuser);
        
$itrader_userbits .= $templater->render(); 
Template itrader_userbits
Change
HTML Code:
<a href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u={vb:raw itrader.userid}">{vb:raw itrader.username}</a>(<strong>{vb:raw itrader.itrader_total}</strong>)
to
HTML Code:
<a href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u=<vb:if condition="$viewuser['viewtype'] == 4">{vb:raw itrader.rateduserid}<vb:else />{vb:raw itrader.userid}</vb:if>">{vb:raw itrader.username}</a> (<strong>{vb:raw itrader.itrader_total}</strong>)
Reply With Quote
  #379  
Old 04-30-2010, 05:33 PM
sung sung is offline
 
Join Date: Feb 2002
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by entertain View Post
@digitalpoint:
I didn't want to change the database structure, because maybe vbenhancer is going to release v3 with the old structures and this would make an update to v3 very, very difficult.
If he was changing the table schema you'd be correct, however changing the indexes won't have any effect on that since you can just rebuild them.

To make his changes you'd just put the following queries in the install/upgrade code:

Code:
alter table itrader drop index rateid;
alter table itrader drop index rateduserid;
alter table itrader add index rateid (rateid);
alter table itrader add index rateduserid (rateduserid, dateline);
alter table itrader add index rateduserid2 (rateduserid, buyselltrade);

And to go back to the previous indexes:

Code:
alter table itrader drop index rateid;
alter table itrader drop index rateduserid;
alter table itrader drop index rateduserid2;
alter table itrader add index rateid (rateid, dateline);
alter table itrader add index rateduserid (rateid, dateline);

Unless you have some inside knowledge about a 3.x release, no sense in making the current version slower for no reason.
Reply With Quote
  #380  
Old 04-30-2010, 08:14 PM
entertain entertain is offline
 
Join Date: May 2007
Location: Bavaria
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@sung:
Thanks! Is it possible that itrader_main became very slow after these changes?

(Taking around 2-3 seconds to load, all other (itrader) pages around 0,05 to 0,10 seconds)
Reply With Quote
  #381  
Old 05-01-2010, 09:02 PM
KevinAlthaus KevinAlthaus is offline
 
Join Date: Dec 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this version fully working in vb 4.0?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05455 seconds
  • Memory Usage 2,384KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_html
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (14)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete