The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 "user" 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), <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 & memberlist_resultsbit templates won't need the conditional around the text since you can't view a "guest" in those cases.</p> <p><font face="Courier New" size="2"><if condition="$post['userid']"><div>iTrader: (<b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b></div></if></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"><a href="itrader.php?$session[sessionurl]">iTrader</a></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 "is_member_of()" function conditional in your templates. Also if you only wanted it to show up for specific forum sections, you could use the "in_array()" function. Read more in the vBulletin documentation for nifty things with template conditionals.</p> <p> </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> </p> </body> Is this what I should add to the templates listed? <font face="Courier New" size="2"><if condition="$post['userid']"><div>iTrader: (<b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b></div></if></font> I am also confused about this: Note that the MEMBERINFO & memberlist_resultsbit templates won't need the conditional around the text since you can't view a "guest" in those cases.</p> What would be the code for this? Thanks in advance... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|