News:

Join the Facebook Fan Page.

Main Menu

SSI Karma

Started by ディン1031, August 09, 2007, 10:24:57 PM

Previous topic - Next topic

PAPABEAR

Quote from: dream1 on December 15, 2007, 09:26:07 AM
I'm using a phpbox and here's my code...

ssi_karmaHighest();

Is there anything else we can add? I made a php article and the page looks rather empty just showing the top 5.


ディン1031

Quote from: PAPABEAR on July 29, 2008, 01:41:10 PM
Quote from: dream1 on December 15, 2007, 09:26:07 AM
I'm using a phpbox and here's my code...

ssi_karmaHighest();

Is there anything else we can add? I made a php article and the page looks rather empty just showing the top 5.
Hmm?

The only supported ssi extents are:
ssi_karmaHighest(); //Top 5 :P
ssi_karmaLowest(); //The lowest 5.
ssi_karmaHighest(10); //Top 10
ssi_karmaLowest(7); //The lowest 7.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Angelotus


ディン1031

Possible yes :)

Change the quer to something like ;)


$results = $smcFunc['db_query']('', "
SELECT real_name, karma_good, karma_bad, id_member
FROM {db_prefix}members
ORDER BY $sql ".($type != 'good' ? 'ASC' : 'DESC')."
LIMIT $topMembers");



//each seperate number is a allowed group 8)
$allowedGroups = array(0,1,2,3);

$results = $smcFunc['db_query']('', "
SELECT real_name, karma_good, karma_bad, id_member
FROM {db_prefix}members
WHERE (ID_GROUP IN (".implode(", ", $allowedGroups).") OR ID_POST_GROUP IN (".implode(", ", $allowedGroups)."))
ORDER BY $sql ".($type != 'good' ? 'ASC' : 'DESC')."
LIMIT $topMembers");


It's a way to do this ;). But i did not test it ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

[SiNaN]

Although I never used it, great mod DIN1031.

Poeople using my mod, Automatic Karma 2.0 (Eliana Mod), wants this mod to add automatic karma values too.

I seperated automatic karma and normal karma in the new version. Created two new fields named elianaGood and elianaBad. I sum them up in Load.php, loadMemberContext().

Can you implement it for me? Just you need to add elianaGood to karmaGood and elianaBad to karmaBad. I didn't do that, cause your style looks quite different to me. :)
Former SMF Core Developer | My Mods | SimplePortal

ディン1031

#25
I will look into this =). I will make a extra Mod for this and convert the SSI Karma to the Elina Version ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Amun

#26
I'm dumb  :'( :'(
:D :D :D

darrenbeige

When in array mode, what is the name of the
created array?

ディン1031

Quote from: darrenbeige on November 21, 2008, 11:27:13 AM
When in array mode, what is the name of the
created array?
It output the array ;)

Example:
$myArray ssi_karmaHighest(7true'array');
Than it will be stored in the $myArray.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Arantor

Moved to the SSI category.

Advertisement: