Quote:
Originally Posted by gamerzhope
thanks i see that.. it shows this:
Code:
Two fields are added to the "user" table to facilitate rating usage pretty much anywhere you please within the forum. The two fields are:
* itrader_total - iTrader Score (stored as an integer)
* itrader_pcnt - Percent Positive Feedback (also stored as an integer)
Most likely you will want to add the score info to the postbit and/or postbit_legacy template(s), MEMBERINFO, and memberlist_resultsbit 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.
<if condition="$post['userid']"><div>iTrader: (<b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b>)</div></if>
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 navbar or usercp menu somewhere. If no userid is specified then the system defaults to the user's own iTrader page.
so in the templates.. postbit, postbit legacy, MemberInfo, and memberlist_resultsbit templates.. i just add this condition <if condition="$post['userid']"><div>iTrader: (<b><a href="itrader.php?$session[sessionurl]u=$post[userid]">$post[itrader_total]</a></b>)</div></if>
at the end of each template?
im just double checking for i mess up badly like i did in the past with other mods :S
thanks
|
Yes, just take your time and do one at a time. Always check your edits one at a time. Never do all at once. Make sure one works then move on to the next.
And for safe measure, I always copy the entire template contents and paste it into a notepad as a backup before I do any edits. This way if I do mess up and can't figure it out I don't have to revert and lose all my other template customizations.