Thread: Major Additions - iTrader v2.0.1
View Single Post
  #719  
Old 05-26-2007, 06:42 PM
macahs's Avatar
macahs macahs is offline
 
Join Date: Feb 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you read through this thread? Several people posted this several times, but I'll copy/paste the info for you.

To add to your member list.
In memberlist_resultsbit
Find:
HTML Code:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
After add:
HTML Code:
&nbsp;(<strong><a href="itrader.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[itrader_total]</a></strong>)
------------------------------------------------------------
To add to your navbar. (This will take members to their own iTrader Page.)
In navbar
Find:
HTML Code:
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
After add:
HTML Code:
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/itrader.php?$session[sessionurl]">My iTrader</a></td></tr>
------------------------------------------------------------
To add to postbit
In postbit_legacy
Find:
HTML Code:
<div>$vbphrase[posts]: $post[posts]</div>
After add:
HTML Code:
<div>iTrader: <strong><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></strong> / $post[itrader_pcnt]% </div>
------------------------------------------------------------
In postbit
Find:
HTML Code:
<div>
$vbphrase[posts]: $post[posts]
</div>
After add:
HTML Code:
<div>iTrader: <strong><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></strong> / $post[itrader_pcnt]% </div>
------------------------------------------------------------
To have your postbit links only show up in specific forums, use the following conditionals with the above postbit chages.
For single forum:
HTML Code:
<if condition="$thread[forumid] == xx">ITRADER CODE HERE</if>
For mutiple forums:
HTML Code:
<if condition="in_array($thread[forumid],array(xx,xx))">ITRADER CODE HERE</if>
Replace "xx" with your forum id's.
------------------------------------------------------------
To add a link or button in it's own column in the memberlist
In memberlist
Find:
HTML Code:
<td class="thead" align="$stylevar[left]" nowrap="nowrap"><a href="$sorturl&amp;order=ASC&amp;sort=username&amp ;pp=$perpage$usergrouplink">$vbphrase[username]</a> $sortarrow[username]</td>
After add:
HTML Code:
<td class="thead" nowrap="nowrap">iTrader</td>
In memberlist_resultsbit
Find:
HTML Code:
<tr align="center">
<td class="alt1Active" align="$stylevar[left]" id="u$userinfo[userid]">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
<if condition="$show['usertitlecol']"><div class="smallfont">$userinfo[usertitle]</div></if>
</td>
After add:
HTML Code:
<td class="$bgclass">(<strong><a href="itrader.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[itrader_total]</a></strong>) / $userinfo[itrader_pcnt]%</td>
If you want an button instead of a text link showing current score, add this instead of the above:
HTML Code:
<td class="$bgclass"><a href="itrader.php?$session[sessionurl]u=$userinfo[userid]"><img src="$stylevar[imgdir_button]/itrader.gif" alt="itrader.gif" title="Submit feedback for $userinfo[username]" border="0" /></a></td>
Make a button "itrader.gif" and upload it to your button directory. I made a button for those of you using the default template.

------------------------------------------------------------
To add to member profile
In MEMBERINFO
Find:
HTML Code:
<if condition="$vboptions['usereferrer']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[referrals]: <strong>$referrals</strong>
</div>
</div>
</if>
After add:
HTML Code:
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
iTrader: <strong><a href="itrader.php?$session[sessionurl]u=$post[userid]" rel="nofollow">$post[itrader_total]</a></strong> / $post[itrader_pcnt]% 
</div>
</div>
(This came from a zip that a member so generously shared w/ everyone)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01648 seconds
  • Memory Usage 1,808KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (17)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete