mr w0nder
|
adding karmaPlease remember to use the Editor account before making any template changes
Second you must have all ready a template you can edit.
Ok all that done you now goto Your CONTROL PANEL NOT ADMIN PANEL
Ok once inside goto the Options Tab And enter the following code (Please Remember that you do not have to add this to the options tab if you are happy with the default settings, only add if you wish to change them.)
| Code: | [KARMA]
component=ADDRATING
max=5
self=1
allow=0
lastratingonly=0 |
You can change the permissions to suit your forum by using the guide below
max - maximum rating, rating go from 1-max inclusive.
self - can you rate yourself 1-yes 0-no.
allow - who can rate people? 0-registered,1-MODS,2-ADMINS
lastratingonly - 0-show average rating 1-show last rating
Ok once that is done you HAVE to goto XPROFILE tab.
And add the following
| Code: | [KARMA]
visible=all
access=admin
default=0
[KARMA_COUNT]
visible=all
access=admin
default=0 |
Now submit and goto your forum and goto
Admin Panel --- Styles Admin---Edit Templates/Logos
Now by using the drop down bar select the template you wish to edit.
Now by using the drop down bar Titled
Choose Forum template/javascript/css File to Edit
Now find viewtopic_body.tpl
And add the following code where you wish it to show.
| Code: | | {postrow.POSTER_FROM} |
And add the code afterwards
So the code would look like below
| Code: | <span class="postdetails">{postrow.POSTER_RANK}<br />
{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />
{postrow.POSTER_JOINED}<br />
{postrow.POSTER_POSTS}<br />
{postrow.POSTER_FROM}<br/> <a href="javascript:void(0)" onclick="window.open('addrating.php?userid={postrow.POSTER_ID}&component=KARMA', '_addrating', 'resizable=yes,width=500,height=360')">Add Karma</a><br/> <img src="ranks/Hearts/rankl{postrow.KARMA}.gif"></span> |
Now Submit and using the drop down bar again find profile_view_body.tpl:
Now again add the following code where you wish it too be.
| Code: | | <a href="javascript:void(0)" onclick="window.open('addrating.php?userid={USER_ID}&component=KARMA', '_addrating', 'resizable=yes,width=500,height=360')">Add Karma</a><img src="ranks/Hearts/rankl{KARMA}.gif"> |
So say on here i wish it to be under Interest i would find
| Code: | | <td> <b><span class="gen">{INTERESTS}</span></b></td> |
And add the code after so it would look something like this,
| Code: | <tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</b></td>
<tr><tr><td>
<a href="javascript:void(0)" onclick="window.open('addrating.php?userid={USER_ID}&component=KARMA', '_addrating', 'resizable=yes,width=500,height=360')">Add Karma</a><img src="ranks/Hearts/rankl{KARMA}.gif"></span></td></tr> |
Please note that i have included the hearts ranks as the image you can change this by simply changing the rank code
| Code: | | <img src="ranks/Hearts/rankl{KARMA}.gif"> |
and
| Code: | | <img src="ranks/Hearts/rankl{postrow.KARMA}.gif"> |
to one that suits you please remember it has to have the range of 0-5 so in other words its no good using a rank image with 10 hearts on it. You have to upload the images you wish to use do this by the standard method of uploading images to a template.
|