vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [Addon] Show Itrader Stats In Profile (https://vborg.vbsupport.ru/showthread.php?t=107828)

vnairp11 09-19-2007 12:50 AM

Thanks a lot of this mod. what does view full profile link do.. it just reloads the page is there a way to remove it?

afullcup 12-17-2007 08:02 PM

Several people have asked for some changes that I also needed and made, so I'm sharing them...

I removed the entire Contact Info section since that info is all already on the User's Profile. I also added a link to view the member's entire feedback.

Here's my entire itrader_profile template. Screenshot also attached. HTH :)

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="tcat" align="center">$vbphrase[itrader_member_profile]</td>
                <td class="tcat" align="center">$vbphrase[itrader_recent_ratings]</td>
        </tr>
        <tr>
                <td class="alt1" valign="top">
                        <div align="$stylevar[left]">
                        <table border="0" cellpadding="5" width="100%">
                                <tr>
                                        <td><b>$vbphrase[itrader_feedback_score]:</b><br /><b>$vbphrase[itrader_positive_feedback]:</b></td>
                                        <td><b>$userinfo[tradescore]<br />$userinfo[tradepcnt]%</b></td>
                                </tr>
                                <tr>
                                        <td>$vbphrase[itrader_positive_members]:<br />$vbphrase[itrader_negative_members]:</td>
                                        <td>$userinfo[tradepos]<br />$userinfo[tradeneg]</td>
                                </tr>
                                <tr>
                                        <td>$vbphrase[itrader_positive_all]:</td>
                                        <td><if condition="$userinfo[tradeposall]">$userinfo[tradeposall]<else />0</if></td>
                                </tr>
                                <if condition="$userinfo['userid'] != $vbulletin->userinfo['userid'] AND $vbulletin->bf_ugp_forumpermissions['canpostnew']">
                                <tr>
                                        <td colspan="2" align="center"><a href="itrader_feedback.php?$session[sessionurl]u=$userinfo[userid]"><b>$vbphrase[itrader_submit_feedback] $userinfo[username]</b></a></td>
                                </tr>
                                <tr>
                                        <td colspan="2" align="center"><a href="itrader.php?$session[sessionurl]u=$userinfo[userid]"><b>View all feedback for $userinfo[username]</b></a></td>
                                </tr>
                                </if>
                        </table>
                        </div>
                </td>
                <td class="alt1" align="center" valign="top">
                        <div align="$stylevar[left]">
                        <table border="0" cellpadding="2" width="100%">
                                <tr>
                                        <td>&nbsp;</td>
                                        <td align="center">$vbphrase[itrader_past_month]</td>
                                        <td align="center">$vbphrase[itrader_past_6_months]</td>
                                        <td align="center">$vbphrase[itrader_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="Positive" /> $vbphrase[itrader_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="Neutral" /> $vbphrase[itrader_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="Negative" /> $vbphrase[itrader_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>

        </tr>
</table><br>


DotSauce 12-19-2007 03:45 AM

Quote:

Originally Posted by afullcup (Post 1403040)
Several people have asked for some changes that I also needed and made, so I'm sharing them...

Thank you for the update, I wouldn't have installed without this. Cheers.

Shazz 12-19-2007 04:15 AM

Quote:

Originally Posted by afullcup (Post 1403040)
Several people have asked for some changes that I also needed and made, so I'm sharing them...

I removed the entire Contact Info section since that info is all already on the User's Profile. I also added a link to view the member's entire feedback.

Here's my entire itrader_profile template. Screenshot also attached. HTH :)

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="tcat" align="center">$vbphrase[itrader_member_profile]</td>
                <td class="tcat" align="center">$vbphrase[itrader_recent_ratings]</td>
        </tr>
        <tr>
                <td class="alt1" valign="top">
                        <div align="$stylevar[left]">
                        <table border="0" cellpadding="5" width="100%">
                                <tr>
                                        <td><b>$vbphrase[itrader_feedback_score]:</b><br /><b>$vbphrase[itrader_positive_feedback]:</b></td>
                                        <td><b>$userinfo[tradescore]<br />$userinfo[tradepcnt]%</b></td>
                                </tr>
                                <tr>
                                        <td>$vbphrase[itrader_positive_members]:<br />$vbphrase[itrader_negative_members]:</td>
                                        <td>$userinfo[tradepos]<br />$userinfo[tradeneg]</td>
                                </tr>
                                <tr>
                                        <td>$vbphrase[itrader_positive_all]:</td>
                                        <td><if condition="$userinfo[tradeposall]">$userinfo[tradeposall]<else />0</if></td>
                                </tr>
                                <if condition="$userinfo['userid'] != $vbulletin->userinfo['userid'] AND $vbulletin->bf_ugp_forumpermissions['canpostnew']">
                                <tr>
                                        <td colspan="2" align="center"><a href="itrader_feedback.php?$session[sessionurl]u=$userinfo[userid]"><b>$vbphrase[itrader_submit_feedback] $userinfo[username]</b></a></td>
                                </tr>
                                <tr>
                                        <td colspan="2" align="center"><a href="itrader.php?$session[sessionurl]u=$userinfo[userid]"><b>View all feedback for $userinfo[username]</b></a></td>
                                </tr>
                                </if>
                        </table>
                        </div>
                </td>
                <td class="alt1" align="center" valign="top">
                        <div align="$stylevar[left]">
                        <table border="0" cellpadding="2" width="100%">
                                <tr>
                                        <td>&nbsp;</td>
                                        <td align="center">$vbphrase[itrader_past_month]</td>
                                        <td align="center">$vbphrase[itrader_past_6_months]</td>
                                        <td align="center">$vbphrase[itrader_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="Positive" /> $vbphrase[itrader_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="Neutral" /> $vbphrase[itrader_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="Negative" /> $vbphrase[itrader_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>

        </tr>
</table><br>


Does look neater, I do see what you edited out. Looks nice

RFrye 02-03-2008 03:41 PM

Question:

I kept getting a syntax error in member php on line 27 when I replaced messaging with

'messaging',
'itrader'

So I edited this as follows;

'messaging',
'itrader',

The error is gone, but I am not cetain this code will perform it's function now, does anyone know?

Realbigsource 02-05-2008 12:14 AM

Hello,

I'm having some problem with this plug in....i'm receiving the error message below when I edit and upload the member.php tamplete.

Parse error: syntax error, unexpected T_IF in /home/realb6/public_html/forum/member.php on line 834

This is what like 834 looks like:
Parse error: syntax error, unexpected T_IF in /home/realb6/public_html/forum/member.php on line 834

832 ));
833 eval('$navbar = "' . fetch_template('navbar') . '";');
834 <if condition="$vboptions[itrader_profile] == '1' ">$itrader_profile</if>
835
836$bgclass = 'alt2';

This is the instruction for the above:
// ############# Do The Following In The MEMBERINFO template ##############

Search For:
$navbar

Add Below:
<if condition="$vboptions[itrader_profile] == '1' ">$itrader_profile</if>

CarlitoBrigante 02-06-2008 04:20 AM

Realbigsource, I think you are editing the member.php file, not the MEMBERINFO template.

Templates are edited through the Admin Control Panel, Style Manager. They do not contain PHP code, but a simplified template language (look in the vBulletin Documentation for templates).

And generally speaking, you should never touch the php files of vBulletin, unless you are required to hack them by hacks or code modifications in general.

dmark101 02-27-2008 02:33 AM

oooooookay. i installed this some time ago, along with itrader and i'm not getting it to show up in the profile. :(

dmark101 02-27-2008 07:52 AM

Quote:

Originally Posted by dmark101 (Post 1451824)
oooooookay. i installed this some time ago, along with itrader and i'm not getting it to show up in the profile. :(

ok, i'm a dumbass. forgot the option for the profile was off by default. it works perfectly again. :)

uppie1414 03-03-2008 12:34 AM

How can you see this in a post? I'd like to have it show up w/out actually having to click on their profiles. thanks!


All times are GMT. The time now is 04:28 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.01177 seconds
  • Memory Usage 1,815KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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