Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2006, 11:37 PM
CB88 CB88 is offline
 
Join Date: Jan 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Template Info For Hack Help

I am new to this kinda stuff and am a little confused as to what I am adding.

Here is the info in the Template Info Document:

3>Template Instructions:</h3>
<p>Two fields are added to the &quot;user&quot; table to facilitate rating usage pretty much anywhere you please within the forum. The two fields are:</p>
<ul>
<li><b>itrader_total</b> - iTrader Score (stored as an integer)</li>
<li><b>itrader_pcnt</b> - Percent Positive Feedback (also stored as an integer)</li>
</ul>
<p>Most likely you will want to add the score info to the <i>postbit</i> and/or <i>postbit_legacy</i> template(s),&nbsp; <i>MEMBERINFO</i>, and <i>memberlist_resultsbit</i> template. Actual placement and style is entirely up to you, however here's a sample to get you started. Note that the MEMBERINFO &amp; memberlist_resultsbit templates won't need the conditional around the text since you can't view a &quot;guest&quot; in those cases.</p>
<p><font face="Courier New" size="2">&lt;if condition=&quot;$post['userid']&quot;&gt;&lt;div&gt;iTrader: (&lt;b&gt;&lt;a href=&quot;itrader.php?$session[sessionurl]u=$post[userid]&quot;&gt;$post[itrader_total]&lt;/a&gt;&lt;/b&gt&lt;/div&gt;&lt;/if&gt;</font></p>
<p>Additionally it would be wise to have some sort of link that is easily accessible to your members so they can view their own ratings. My suggestion would be to add some code in the <i>navbar</i> or usercp menu somewhere. If no userid is specified then the system defaults to the user's own iTrader page.</p>
<p><font face="Courier New" size="2">&lt;a href=&quot;itrader.php?$session[sessionurl]&quot;&gt;iTrader&lt;/a&gt;</font></p>
<p>Use your imagination where you want these links to be visible, there's nothing set in stone where it should be display or how it should look. Some people wanted the percent score so I added in this version. You can get creative and use some stars or something based on their score or positive ranking.</p>
<p>If you only wanted the info to show up for specific usegroup, you can use the &quot;is_member_of()&quot; function conditional in your templates. Also if you only wanted it to show up for specific forum sections, you could use the &quot;in_array()&quot; function. Read more in the vBulletin documentation for nifty things with template conditionals.</p>
<p>&nbsp;</p>
<p>Sorry to skimp on the documentation, next release will be much better, however most people should know what they are doing by now with templates and if you don't, spend the time to learn as you can greatly enhance your forum.</p>
<p>&nbsp;</p>

</body>

Is this what I should add to the templates listed?

<font face="Courier New" size="2">&lt;if condition=&quot;$post['userid']&quot;&gt;&lt;div&gt;iTrader: (&lt;b&gt;&lt;a href=&quot;itrader.php?$session[sessionurl]u=$post[userid]&quot;&gt;$post[itrader_total]&lt;/a&gt;&lt;/b&gt&lt;/div&gt;&lt;/if&gt;</font>

I am also confused about this: Note that the MEMBERINFO &amp; memberlist_resultsbit templates won't need the conditional around the text since you can't view a &quot;guest&quot; in those cases.</p>

What would be the code for this?

Thanks in advance...
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 10:57 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.03209 seconds
  • Memory Usage 2,162KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete