Welcome Guest. Please Login or Register  


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

A2 Hosting

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

1


Threaded Mode | Print  

 reputation system (36 Replies, Read 155328 times)
sagrma
Group: Member
Post Group: Newbie
Posts: 35
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

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
jlhaslip
Group: Support
Post Group: Super Member
Posts: 1949
Status:

Local / private text here
Okay, this Topic will remain open.
Keep us posted on your Progress. Thanks.


-----------------------
Board Image
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
ok the next thing was to add addreps button
in the post so that user can click and give reps to other users

so i decided toi go for simplest method opened post_theme.php

and add

"//Can he addreps this post
if(!empty($globals['report_posts']) && !empty($user['can_report_post'])){

  $post_opt[] = '<a href="'.$globals['ind'].'act=addreps&amp;pid=' .$post[$p]['pid'].'">'.$l['addreps'].' ;</a>';

}
"

after

"//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'].'& lt;/a>';

}"


now after this what i got can be seen in attachment

but the problem is when i cleck on add reps it direct me to main index page

i have made addreps.php and added it to main
and added file addreps_theme.php to themes can anybody tell why addreps button not working


log in to see attachments

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
common i m stuck here
didnt sombody have any clue what to do
by these speed we would manage to get full version by 3009

Edited by sagrma : March 3, 2009, 3:04 am

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
whats this boss m stuck here and nobody is helping
if u would not support then why is the forum

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
jlhaslip
Group: Support
Post Group: Super Member
Posts: 1949
Status:

Local / private text here
Submit a PM to member Lewtheo. He has already written one version of a Reputation Mod. Also, elwizard has a Thanks Mod coming soon, so PM him as well.

-----------------------
Board Image
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
i pmmed all the member of developer team
but nobody replied
didnt anybody have any clue what m i doing wrong

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
Malaria
Group: Member
Post Group: Newbie
Posts: 47
Status:

I am a bore...
I replied you. if you need only the div visit this.

http://www.anelectron.com/board/index.php/%5BMOD%5D_Group_image_ in_top_v2_FIXED.-t3913.html
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
Quote From : Malaria March 7, 2009, 8:06 pm

thanks for reply
but i didnt get u in pm so started looking where was i commiting mistake and u would not
believe
it
i didn't change index file and was hoping another file addreps.php will be called
feel so dumb  :angel:
anway
did that soon will posting complete system  here
but at present gave it to my forum admin for test

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
Lewtheo
Group: Member
Post Group: Super Member
Posts: 579
Status:
To let you know, the next AEF version will have a reputation system installed, something I designed a year or so back is being implemented, which is available for download too

-----------------------
Swoova - the next generation social network experience.
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
Quote From : Lewtheo March 14, 2009, 3:10 pm
To let you know, the next AEF version will have a reputation system installed, something I designed a year or so back is being implemented, which is available for download too

that will be great
but i could not download ur one so started devloping own

btw mine beta version is finished

and after this  will move on profile i think it need a makeover


-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
completed see post no 1

Edited by sagrma : March 15, 2009, 8:19 am

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
Quote From : Lewtheo March 14, 2009, 4:18 pm
Hello,

Oh my version is uploaded at numerous locations

Latest version is attached, just use the installer and do the file edits and then you can play around with it :)

thanks boss will defintly chek it out

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
sagrma
Group: Member
Post Group: Newbie
Posts: 35
Status:
chek post 1 for bug report

-----------------------
oh KRISHNA
i am the sinner, but you are forgiving lord
please forgive me
IP: --   

reputation system
zenn
Group: Member
Post Group: Newbie
Posts: 21
Status:
This addition support version 1.0.8 aef?!  :-x

-----------------------
AEF in russian community here
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Members who read this topic
, rocketsam456, jlhaslip, Positron, dyrer, Lewtheo, hexad3cimal, Banned, Amrik09, DJBoddington, david_c, custa, JMSBeta, CJack, Alex, nfsalon, khena25, alex597, wrx_boy, mosc63, Vapor, sagrma, dr17, JoJolThelMaestro, aryan, Haibara, acidtech, Malaria, hayyan, entergeozax, n7yo, downesam, XAKEP, Spiritwarrior, PaNTrk, King, Ghadamyari, zenn, sanju, dreaken, stefanov, AKC, Munk, HORSZONE, Moogly, Angeal, salazar, Aptyp, Clipframe, Cassie, Faks, tuckan, skarsatai, Myster_Dude, storm, MJ14, Agung, llElNeneMxll, Maxjimme, Buster, Taz, Isidoro, Mokeli, dpanov, ShaGGy, VasiliyRS, zucaman, samuels, yariv, REDSEW, Diamondpc, Pioneer, Copykat, gone_bdg, Aymenbnr, andiack, georgio, Janitor, Duong, skinin, CrazyEs, lupa, bozonessinc, eastwood1, moro, ahmedbatoos, ghazi119, salmi, nisha93, Dandruff, viper, sorin, czarnyplp, Design, tinstone, InfernaL, Arctic, chuck, D-Sharp, Torrentspy, aLbdigital, Chakkal, zain, azadbash, buddymike, zouk, prateekactive, gamerzvip, bayus4, boxoutside, rajutarzan, Alicomputers, pep30, Techokami, XemiX, tautvys92, SAFAD, mmsdown, zing, rgxsingh, Kilsek, Styl, nokiya, topptcorg, applesfaceman, sedrata, darkenix, oklalittledixie, Dredgeretk, hamed.gh, MustafaCan, sankat, cristrixy, eitaneitan, MaRiAnO, ravirajpoot, Ares, aoc1117, raiders, JPeterPan, devmohan, idontwantaname, Dudley, asdcxz, govil, LaBrie, crampz, AlbEagle, tarsisd2, ~NanoThrash~, gvhools, joewldcat, Apama, EmreCanT, PaganHideaway, vijayp4you, JentaVMC, GamingChitChat, CruzBishop, viswanath, Bomberman, baadshah, Lorataco, Knele, Sammael, gasports, nexgenforum, yogeshvashist98, AlexGt01, arman1, gaguns, Justin, AirAvalanche10, BurnRose1, achubs, thorx, aliimran, Profiler, antros


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is August 12, 2020, 11:54 pm.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 12  |  Page Created In:0.231