Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by certify certify is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-07-2002 Last Update: Never Installs: 66
 
No support by the author.

Karma Hack v1.3a

This is our first vb Hack, so we are hopping to get lots of feedback. Enjoy this one.


Admin Function

- Set points for each
~ newthread
~ reply
~ points for thread owner if thread's view exceeded certain number.
~ extra points to user from admin/mod
~ extra points for thread owner if the thread's reply more than certain number.

- Admin/Moderator can also add/delete points to user who posts useful thread or nonsense.

- Admin can set auto ban feature to on or off. If this feature is set to on, users' karma points that
exceed the negative point admin set to, will be banned from posting or replying threads.

User Function

- User can comment on other people's post and if they agree that post, the user will get karma points
for that. If user disagree with what they post, their karma points will be deducted.
- User can earn karma points when they post new thread, replies, many people view their thread, many
people reply their thread.
- User can also earn karma points from administrator or moderator if they post useful thread.
- Their points wil be deducted if they post nonsense.

Sample Forum using this Karma Hack
CertifyExpress.com

I won't be able to answer all you technical questions as I am NOT the sole OR main programmer who write this hack. If you are facing technical problems you may either post here and I will try my best to help you together with vbulletin.org members OR you can also post your questions or problems at my forum for faster support, as my team are often online there 5 Days a week from Monday to Friday.

Karma 1.3a Release - March 15 2002

I highly recommended that you upgrade to 1.3a.
  • Minor display changes.
  • Bug Fixes.
  • Security fixes.

For those who are using karma v1.3 just upload adis.php

Bug fixed
- Fix you are not login bug when you are actually login.


Next version
Will be release in April 2002. If you have any features to suggest or recommendation please post a NEW thread in my forum instead of vbulletin.org, so I can keep track of all the suggestions and as this thread is getting too long and I can't keep up with it.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 03-07-2002, 03:47 PM
orca's Avatar
orca orca is offline
 
Join Date: Oct 2001
Location: Switzerland
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The upgrade from 1.0 to 1.3 went very well. Good work I like the hack. Anyway, if I click on karma and want to add a comment using the link It says You need to be registered.... although I'm registered. I removed the line which say include header/footer. But as that are only HTML files it shouldn't be a problem.
Reply With Quote
  #173  
Old 03-08-2002, 06:24 AM
certify's Avatar
certify certify is offline
 
Join Date: Nov 2001
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by SaintDog
I had installed Karma 1.2 already (clean install about a week ago, no other hacks are installed on the board), went to use the upgrade in version 1.3, then the above happened.

SaintDog
Don't run run upgrade_karma_1_0.php

This is what you have to do.

For those that are upgrading from version 1.2 to 1.3, upload adis.php and kpoints.php. Change the following lines in your postbit template.

(a)find this line of code:
winAtt = "scrollbars=1, width=900, height=500, left=5";
replace it with:
winAtt = "scrollbars=1, width=500, height=300, left=5";

(b)find this line of code:
<a href="javascriptopout('adis.php?flag=$post[flag]&postid=$post[postid]&userid=$bbuserinfo[userid]&username=$bbuserinfo[username]&usertitle=$bbuserinfo[usertitle]&post_userid=$post[userid]&post_username=$post[username]')"><img src="https://vborg.vbsupport.ru/vbimages/postkarma.gif" border="0" alt="Karna"></a>
replace it with:
<a href="javascriptopout('adis.php?flag=$post[flag]&postid=$post[postid]&userid=$bbuserinfo[userid]&username=$bbuserinfo[username]&usergroup=$bbuserinfo[usergroupid]&post_userid=$post[userid]&post_username=$post[username]')"><img src="https://vborg.vbsupport.ru/vbimages/postkarma.gif" border="0" alt="Karna"></a>
Reply With Quote
  #174  
Old 03-08-2002, 12:06 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those of you who want to list the Top 10, here is the code.

Thanks to www.devshed.com!

PHP Code:
$query "select uid, newthread+reply+view+admin_mod+morereply+totalpenalty as total from storepoint order by total desc limit 0,10";

$my_q mysql_query($query) or die(mysql_error());
$row_count mysql_num_rows($my_q);
for (
$i=0$i<$row_count$i++) {
     list(
$uid$total) = mysql_fetch_row($my_q);
     
$my_q2 mysql_query("select username from user where userid='$uid'") or die(mysql_error());
     list(
$username) = mysql_fetch_row($my_q2);
     print 
"$username has $total points<br>";
     
mysql_free_result($my_q2);
}

mysql_free_result($my_q); 
All the fields have to be not null.
Reply With Quote
  #175  
Old 03-08-2002, 12:50 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I view a record in the storepoint table and add up the fields myself, I get different total that what you are displaying????
Reply With Quote
  #176  
Old 03-08-2002, 12:54 PM
kushtiUK kushtiUK is offline
 
Join Date: Nov 2001
Location: UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pgowder - thanks for this but it does not seem to work - all I get is a list of ten users, that are not the top ten and it does not display the total points but just says - "kushtiuk has points"

Any idea's - has anyone else got this working?
Reply With Quote
  #177  
Old 03-08-2002, 12:57 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All the fields have to be not null and have a default value of 0.
Reply With Quote
  #178  
Old 03-08-2002, 04:49 PM
ExcErr's Avatar
ExcErr ExcErr is offline
 
Join Date: Feb 2002
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey certify, can you and your team make some features:
1. user can give karma points to the same user only once a week !
2. near username in the comment window should stay + or -............
3. if user don't want to show his name in the comment, he can choose some option and his name won't be able to see.....
for example:
"+"|"excerr": Good post
"-" | "******": F*ck off
4. user can see comments about him in user cp under "Subscribed Threads"
5. admin can delete user comments, if there are for exampe censored words !
thx in advance!
THE BEST HACK! respect
Reply With Quote
  #179  
Old 03-08-2002, 05:02 PM
kushtiUK kushtiUK is offline
 
Join Date: Nov 2001
Location: UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by pgowder
All the fields have to be not null and have a default value of 0.
I'm sorry I don't fully inderstand! Do I ahve to make a new sql table for this to gather the data and if so what is it called?

I understand about making the default value of 0 and null.
Reply With Quote
  #180  
Old 03-08-2002, 05:08 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All the fields in the storepoint table must be not null and default to 0 otherwise a calculation on a null fields wll not work.
Reply With Quote
  #181  
Old 03-08-2002, 05:28 PM
kushtiUK kushtiUK is offline
 
Join Date: Nov 2001
Location: UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright! I understand now - doh! LOL -= thanks m8
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04575 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete