Chat Away :: adding karma
RapturePHP
index.php profile.php?mode=register faq.php memberlist.php search.php  
Log in
   Username:
   Password:
   Log me on automatically each visit
  

Welcome
Guest

Navagation
Gallery
Users Online

Current Time

Hello Guest

Top posters
mr w0nder 266
Kevin 105
John23 55
Snazzy_Skater 31
Predator 20

Birthdays: 
Welcome
This is a forum where you can chat with people

adding karma

 
Post new topic   Reply to topic    Chat Away Forum Index -> Forum Support
View previous topic :: View next topic  
Author Message
mr w0nder
Site Admin

Offline
Joined: 13 Mar 2007
Posts: 266


Location: Iowa
Points: 2064
17 December 1994


Add Karma

Add Comment
Show Comments

PostPosted: Thu Mar 15, 2007 9:32 pm    Post subject: adding karma Reply with quote

Please 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}&amp;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}&amp;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}&amp;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.


Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Kevin


Offline
Joined: 14 Mar 2007
Posts: 105



Points: 1260
20 March 1992


Add Karma

Add Comment
Show Comments

PostPosted: Thu Mar 15, 2007 11:06 pm    Post subject: Reply with quote

thanks


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Chat Away Forum Index -> Forum Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Create your own free forum | Buy a domain to use with your forum