Released: KARMA VOTING plugin

18 years 2 months ago #7458 by lennox
Replied by lennox on topic Re:Released: KARMA VOTING plugin
Thnx, don't get it, upload a new plugin and module and get minus karma .. Groms...

In the near future this functions see the light:
Karma total points
Don't show up when you are on you're own profile or are a guest.


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in to join the conversation.

18 years 2 months ago #7470 by fungkur
Replied by fungkur on topic Re:Released: KARMA VOTING plugin
hahahah.. karmaplus image with decrease function n karmaminus image with increase function... huh, naughty.. :woohoo:

spit it out!

Please Log in to join the conversation.

18 years 2 months ago #7471 by lennox
Replied by lennox on topic Re:Released: KARMA VOTING plugin
Keep's you smart :P


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in to join the conversation.

18 years 2 months ago #7646 by Andrej
Replied by Andrej on topic Re:Released: KARMA VOTING plugin
Hi.
I have installd Karma. But nothing happens on the profil side.
It just says Karma.
But there is nothing happening when i tried to vote and the too hands (upp/down) dosen´t show.

Andrej

Please Log in to join the conversation.

18 years 2 months ago #7920 by lennox
Replied by lennox on topic Re:Released: KARMA VOTING plugin
Ok, i'm back on track i hope so,

This is the code:
[code:1]<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );


/**
* KARMA VOTE IN PROFILE
* @package Community Builder
* @author Lennart van der zwan - LENNOX - HOLLAND LENNOX@NIGHTCITY.NL
*/
class getKarmaTab extends cbTabHandler {
/**
* Constructor
*/
function getKarmaTab() {
$this->cbTabHandler();
}


function getDisplayTab($tab,$user,$ui) {
global $mosConfig_absolute_path, $database, $mosConfig_lang;

$gjp_path = $mosConfig_absolute_path.'/components/com_comprofiler/plugin/user/plug_lennoxkarma';

if (file_exists($gjp_path.'/language/'.$mosConfig_lang.'.php')) {
include_once($gjp_path.'/language/'.$mosConfig_lang.'.php');
} else {
include_once($gjp_path.'/language/english.php');
}

$return="";


$return="<a href=\"index.php?option=com_joomlaboard&Itemid=51&func=karma&do=increase&userid=$user->id\"><img src=\"images/bierplus.gif\"border=/0/><a href=\"index.php?option=com_joomlaboard&Itemid=51&func=karma&do=decrease&userid=$user->id\"><img src=\"images/biermin.gif\"border=/0/></a> ";

return $return;
}


} // end KARMA vote from profile( Author Lennox).
?>
[/code:1]

What i want is the total of karma displaying for the Karma icons. i think i must add this kind of code, hope someone can help me a little.

[code:1]$query = "SELECT karma
FROM #__sb_users
WHERE userid='".$user->id."'";
$database->setQuery($query);
$karma = $database->loadResult();

if($karma ==""«»)
{
$karma = _UE_FORUM_NO_KARMA;
}[/code:1]


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in to join the conversation.

18 years 3 weeks ago #10778 by redlaguna
Replied by redlaguna on topic Re:Released: KARMA VOTING plugin
where this completes version of this plugin ?

¡mas vale no saber!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.199 seconds

Facebook Twitter LinkedIn