Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 31)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Released: KARMA VOTING plugin

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 9 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 or Create an account to join the conversation.

  • fungkur
  • fungkur
  • OFFLINE
  • Posts: 44
  • Thanks: 2
  • Karma: 9
18 years 9 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 or Create an account to join the conversation.

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 9 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 or Create an account to join the conversation.

  • Andrej
  • Andrej
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 3
18 years 9 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 or Create an account to join the conversation.

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 9 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 or Create an account to join the conversation.

  • redlaguna
  • redlaguna
  • OFFLINE
  • Posts: 21
  • Thanks: 0
  • Karma: 9
18 years 8 months 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum