Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Mods > Topic : reputation system


News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team



Normal Mode | Print  

 reputation system (35 Replies, Read 6268 times)
sagrma
Group: Developer
Post Group: Newbie
Posts: 24
Status:
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&amp;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&amp;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
PHP Code

 u.repcount 




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
IP: --   


Threads
 sagrma   reputation system (35 Replies, Read 6268 times)
    |--  jlhaslip   Okay, this Topic...   on February 28, 2009, 10:14 pm
    |--  sagrma   ok the next...   on March 1, 2009, 12:42 pm
    |--  sagrma   common i m...   on March 3, 2009, 2:03 am
    |--  sagrma   whats this boss...   on March 4, 2009, 10:40 am
    |--  jlhaslip   Submit a PM...   on March 5, 2009, 9:39 am
    |--  sagrma   i pmmed all...   on March 7, 2009, 4:26 pm
    |--  Malaria   I replied you....   on March 7, 2009, 7:06 pm
    |--  sagrma   I replied you....   on March 14, 2009, 9:16 am
    |--  Lewtheo   To let you...   on March 14, 2009, 3:10 pm
    |--  sagrma   To let you...   on March 14, 2009, 3:15 pm
    |--  sagrma   completed see post...   on March 15, 2009, 8:15 am
    |--  sagrma   Hello, Oh my...   on March 15, 2009, 8:16 am
    |--  sagrma   chek post 1...   on March 16, 2009, 2:25 pm
    |--  zenn   This addition support...   on March 21, 2009, 11:49 am
    |--  sagrma   This addition support...   on March 21, 2009, 11:53 am
    |--  zenn   They didn`t work...   on March 21, 2009, 2:10 pm
    |--  Lewtheo   My version is...   on March 21, 2009, 7:39 pm
    |--  zenn   I`m not russian,...   on March 21, 2009, 11:20 pm
    |--  sagrma   They didn`t work...   on March 30, 2009, 2:32 pm
    |--  sagrma   I`m not russian,...   on March 30, 2009, 2:39 pm
    |--  zenn   Can you put...   on March 30, 2009, 2:56 pm
    |--  sagrma   Can you put...   on March 30, 2009, 3:01 pm
    |--  zenn   senk. Can you...   on March 30, 2009, 3:11 pm
    |--  sagrma   senk. Can you...   on March 30, 2009, 3:24 pm
    |--  zenn   I`m russian and...   on March 31, 2009, 5:06 am
    |--  zenn   So, development is...   on April 30, 2009, 3:40 am
    |--  Taz   Where is the...   on June 26, 2009, 9:20 pm
    |--  Taz   And Where do...   on June 26, 2009, 10:25 pm
    |--  aryan   This addition support...   on July 21, 2009, 11:13 pm
    |--  Aymenbnr   is it fully...   on October 29, 2009, 9:07 pm
    |--  eastpark786   I am also...   on February 22, 2010, 7:25 pm
    |--  prateekactive   what is selection...   on March 15, 2010, 2:04 pm
    |--  prateekactive   Ohh.. not working...   on March 15, 2010, 3:03 pm
    |--  prateekactive   I HAVE FOUND...   on March 16, 2010, 3:23 pm
    |--  prateekactive   I think post_themes.php has...   on March 23, 2010, 7:02 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.

Rollup Banner Stands  cheap car insurance   


AEF web hosting


All times are GMT. The time now is September 10, 2010, 4:41 pm.

  Powered By AEF 1.0.9 © 2007-2009 Electron Inc.Queries: 11  |  Page Created In:0.344