IN THIS POST I WILL TELL U HOW TO GET THE MOST BASIC REPUTATION SYSTYEM
UNTILL THE ADVANCE ONE BY AEF COME
I WILL MODIFY IT LATER ON AND POST UPDATE
if u want more advanced one chek post no 11 by Lewtheo
warning
please pardon me just found this bug today
in addreps.php
please chek update query string and use this in stead of original otherwise
even admin will turn into member
use this
PHP Code /////////////////////////////////
// Finally make the UPDATE QUERY
/////////////////////////////////
$qresult = makequery("UPDATE ".$dbtables['users']."
SET username = username,
/*email = '$email',
u_member_group = '$u_member_group',
realname = '$realname',
customtitle = '$title',
location = '$location',
gender = '$gender',
users_text = '$privatetext',
icq = '$icq',
yim = '$yim',
msn = '$msn',
aim = '$aim',*/
repcount = repcount+10,
/*sig = '$sig',*/
www = '$www'
WHERE id = '".$member['id']."'", false);
//Redirect
redirect('mid='.$uid);
so lets start
go to phpmyadmin open your forum database
then open aef_users now if you are in structures well and good otherwise click on structure button
what you have to do add field to store value of recount
so go on and add field repcount to table
after u have done that verify that the field was added correctly.
remember to put default value other than zero ,i used 10
2.)open post_themes file and look for
PHP Code ['image_count']){
for($i = 0; $i < $post[$p]['image_count']; $i++){
echo '<img src="'.$theme['images'].$post[$p]['image_name'].'" alt="" />';
}
echo '</div>';
}
echo '
'.(!empty($post[$p]['post_gr_name']) ? '<div class="pisub">'.$l['prefix_post_group'].' '.$post[$p]['post_gr_name'].'</div>':'').'
'.(!empty($post[$p]['posts']) ? '<div class="pisub">'.$l['prefix_posts'].' '.$post[$p]['posts'].'</div>':'').]
and add
PHP Code '.(!empty($post[$p]['repcount']) ? '<div class="pisub">'.$l['prefix_repcount'].' '.$post[$p]['repcount'].'</div>':'').'
and add
PHP Code //Can he addreps this post
if(!empty($globals['report_posts']) && !empty($user['can_report_post'])){
$post_opt[] = '<a href="'.$globals['ind'].'act=addreps&uid='.$post[$p]['poster_id'].'">'.$l['addreps'].'</a>';
}
after
PHP Code //Can he report this post
if(!empty($globals['report_posts']) && !empty($user['can_report_post'])){
$post_opt[] = '<a href="'.$globals['ind'].'act=report&pid='.$post[$p]['pid'].'">'.$l['report'].'</a>';
}
3.)now open post_lang.php
and add
PHP Code $l['prefix_repcount'] = 'Repcount:';
and
PHP Code $l['addreps'] = 'Addreps';
4.)now open post.php in main
and in selection query
add
now add the following attached file files to their respective place
if it didnt work reply here
i know its very very basic one
but i will try to improve it
for people saying thanks mention not
Edited by sagrma : March 16, 2009, 2:23 pm
----------------------- hi
m developing reputation system for aef if u wann help
pm me |