vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Karma Hack v 1.0 (https://vborg.vbsupport.ru/showthread.php?t=34882)

Guichi 03-02-2002 05:49 PM

i installed the hack and set the amount of negative karmas for auto ban but it seems that is not working. i have changed the settings on the autoban multiple times and it still doesnt work :(

pgowder 03-02-2002 07:38 PM

How can I add this as a column on the memberlist?

Neil 03-02-2002 10:19 PM

Is anyone able to help me with the problem of Karma only accessible from one of my styles, as I requested in an earlier post please?

AndyTSJ 03-02-2002 10:57 PM

When you installed it, presumable you applied the modifications to the templates in your default style ? Then reapply the template parts of the hack to the same templates, but in your other styles... that's my guess.

Neil 03-03-2002 02:31 AM

As far as I recall, I was careful to apply any template mods to ALL of the templates used on my site. Besides, the functions that display the karma totals and the karma button are defined in the script, rather than the template right?

Also, I can't go back and apply the changes in the template anyway, because the instructions are in the install file, and if I run that again it'll stuff up the database, won't it?

Winky 03-03-2002 07:29 PM

ok maybe I am stupid here but the install text says nothing and the install script says nothing when doing the install does the install do everything for you or is it just telling you what you need to modify? I tried both ways and nothing works for me.

kushtiUK 03-03-2002 08:15 PM

I have VBportals and would like to add a Side Block to show my top five with Karma, can anyone tell me the PHP I would need to call that up.

If this helps, I already have on show the top five posters and the PHP used is;

// Set this to the max number top posters to display
$a=1;
$num = 5;
global $bburl;
$query = "SELECT * FROM user ORDER BY posts DESC LIMIT $num";
$resultlatest = mysql_query($query);
while ($latest_array = mysql_fetch_array($resultlatest)) {
echo " <font size = 1>&nbsp;$a: <A HREF='$bburl/member.php?action=getinfo&userid=$latest_array[userid]'>$latest_array[username] </A> $latest_array[posts]</FONT><BR>";
$a++;
}
echo "<font size = 1><A HREF='$bburl/memberlist.php?what=topposters&perpage=20'>more... </A>";

Recon_Boy 03-04-2002 04:10 AM

One 'gotcha' I ran into is trying to see a result on my forums after upgrading from v1 to v1.2 without going to the admin cp and setting the new options first!!!...I know....duh...

HeadStAtE! 03-04-2002 02:32 PM

Thank you for this hack.

Currently I have 3 main concerns.

1) I think a template should be used for the content of the pop-up box rather than holding all this within adis.php.

2) adis.php is checking for the user's title:
Quote:

if ($usertitle == 'Administrator' || $usertitle == 'Moderator')
This is dangerous because the user title can be changed in the user CP, it should be checking for the usergroup being either a moderator, super moderator or admin.

3) By refreshing pages (or using the back button) I have been able to vote more than once.

Niggles:

1) The button alt image in postbits has the spelling "karna" not "karma" :)

2) It waits for you to enter a comment then tells you that you should log in first!

3) You can submit a comment without selecting a positive or negative opinion.

pgowder 03-04-2002 02:43 PM

Can anyone help me display the top 10 or display the karma in memberlist??

My members are loving the hack, but want to be able to see who is the highest!

thanks


All times are GMT. The time now is 05:00 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.01341 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete