TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 278
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 283
  • Total: 283

Code Query

Started by AnimeUK, December 08, 2007, 10:51:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AnimeUK

I was wondering if, and where I could find, a block that allows the top 10 members with highest Karma to be displayed.
I got many code blocks from this site, and implemented them quite succesfully. Only this eludes me....


<edit>
And now I've found Karma 0.4 - will try this. sorry! ^^

<edit>
Install Actions
Installations actions for "Karma Blocks Package V.04":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 

I guess that request is back on again =P

(SMF 1.1.4)
(TP v0.9.8 )

Nokonium

That works fine on my board  :)

AnimeUK

#2
Any chance of a few installation instructions please ^^

AnimeUK


IchBin

Did you look at the karma 0.4 that you found? This install instructions are there.l

Nokonium

#5
Looks like SMF was only at 1.1.1 when the mod was written, I've modded and substituted the xml file in the mod package, it should be usable with any version of 1.1.

Apologies to Max for modding his mod.

AnimeUK

Utterly excellent Nokonium/Max. (And yes, IchBin, I'd gone through the instructions)

One thing I noticed with this KBPv0.4..:

I set up the highest Karma, and lowest Karma, only to find one person was featured in both catergories, with a + of 13, and a - of 12.

Is there a way to make the block notice 13-12 = 1, and not actually show their highest/lowest ever Karma - more, a current Karma total?

Cheers in advance, and great mod... I'm not complaining here, just being a little too observant!

(A)

Nokonium

(Trying frantically to remember what I did when I set up Karma Blocks  :-\  )

It uses the SMF Karma settings, if you have that set to high and low, the Karma block will display likewise. If, as I have, you have 'Karma mode' set to 'Enable Karma Total' it will subtract the negative from the positive and just display the total.

AnimeUK

Mines set at 'Enable karma total' - same prob ^~

Also, the 'ssi_karmalog();' function only displays 1 action, regardless of the number inside brackets.

This website is proudly hosted on Crocweb Cloud Website Hosting.