[MODDB] Karma MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
User avatar
***Blaze***
Registered User
Posts: 53
Joined: Tue May 22, 2007 6:21 am
Location: Dankov, Russia
Name: Aleksej
Contact:

Re: [BETA] Karma MOD

Post by ***Blaze*** »

Drugs wrote:This works on custom styles
Yes. But there are some styles such type as subsilver there are buttons in the form of images they do not show.
My website ublaze.ru
grover66
Registered User
Posts: 36
Joined: Mon Mar 19, 2007 1:48 pm

Re: [BETA] Karma MOD

Post by grover66 »

This is a very useful mod that adds a lot to a forum.
I've read all the pages since the release of B2, and this bug didnt seem to be mentioned: when comments are disabled and the user clicks to give karma, a confirm box comes up, if he clicks NO he gets taken to a comments box?, I dont think this should happen since comments are set to disabled.
Again, nice mod. ;)
grover66
Registered User
Posts: 36
Joined: Mon Mar 19, 2007 1:48 pm

Re: [BETA] Karma MOD

Post by grover66 »

Salvoxx wrote:
Salvoxx wrote:Hi!...

bbcode and smiles are disabled in the "view comments" page...

how can i fix it?? :cry:
UP!!!! :cry:
this is a dodgy workaround but it works.

find this partial line in karma.php about line 550

Code: Select all

$enable_bbcode	= (!$bbcode_status || isset($_POST['disable_bbcode'])) 
			$enable_smilies	= (!$smilies_status || isset($_POST['disable_smilies'])) 
replace the false with true

Code: Select all

			$enable_bbcode	= (!$bbcode_status || isset($_POST['disable_bbcode'])) ? true : true;
			$enable_smilies	= (!$smilies_status || isset($_POST['disable_smilies'])) ? true : true;
User avatar
***Blaze***
Registered User
Posts: 53
Joined: Tue May 22, 2007 6:21 am
Location: Dankov, Russia
Name: Aleksej
Contact:

Re: [BETA] Karma MOD

Post by ***Blaze*** »

grover66, it is easier to make so:

Open karma.php

Find:

Code: Select all

         $enable_bbcode   = (!$bbcode_status || isset($_POST['disable_bbcode'])) ? false : true;
         $enable_smilies   = (!$smilies_status || isset($_POST['disable_smilies'])) ? false : true;
         $enable_urls   = (isset($_POST['disable_magic_url'])) ? false : true;
Replace with:

Code: Select all

         $enable_bbcode   = (!$bbcode_status || isset($_POST['disable_bbcode'])) ? true : true;
         $enable_smilies   = (!$smilies_status || isset($_POST['disable_smilies'])) ? true : true;
         $enable_urls   = (isset($_POST['disable_magic_url'])) ? true : true;
All works, including processing of url. Thanks.
***Blaze*** wrote:
Drugs wrote:This works on custom styles
Yes. But there are some styles such type as subsilver2 there are buttons in the form of images they do not show.
Open root/styles/style_such_type_as_subsilver2/template/viewtopic_body.html

Find:

Code: Select all

<!-- IF postrow.U_KARMA_INCREASE --> <a href="{postrow.U_KARMA_INCREASE}">[+]</a><!-- ENDIF -->
<!-- IF postrow.U_KARMA_DECREASE --> <a href="{postrow.U_KARMA_DECREASE}">[-]</a><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF postrow.U_KARMA_DECREASE --> <a href="{postrow.U_KARMA_DECREASE}"><img src="{T_IMAGESET_PATH}/karma_button_give.gif" title="[-]" alt="[-]"</a><!-- ENDIF -->
<!-- IF postrow.U_KARMA_INCREASE --> <a href="{postrow.U_KARMA_INCREASE}"><img src="{T_IMAGESET_PATH}/karma_button_plus.gif" title="[+]" alt="[+]"</a><!-- ENDIF -->
Last edited by ***Blaze*** on Thu Dec 27, 2007 7:03 pm, edited 1 time in total.
My website ublaze.ru
grover66
Registered User
Posts: 36
Joined: Mon Mar 19, 2007 1:48 pm

Re: [BETA] Karma MOD

Post by grover66 »

^ ok thanks blaze, now i got images for subsilver.
the lines in the replace are mixed up, and the decrease imageset path, it should instead read

Code: Select all

<!-- IF postrow.U_KARMA_INCREASE --> <a href="{postrow.U_KARMA_INCREASE}"><img src="{T_IMAGESET_PATH}/karma_button_give.gif" title="[+]" alt="[+]"</a><!-- ENDIF -->
<!-- IF postrow.U_KARMA_DECREASE --> <a href="{postrow.U_KARMA_DECREASE}"><img src="{T_IMAGESET_PATH}/karma_button_take.gif" title="[-]" alt="[-]"</a><!-- ENDIF -->
User avatar
***Blaze***
Registered User
Posts: 53
Joined: Tue May 22, 2007 6:21 am
Location: Dankov, Russia
Name: Aleksej
Contact:

Re: [BETA] Karma MOD

Post by ***Blaze*** »

grover66 wrote:the lines in the replace are mixed up, and the decrease imageset path, it should instead read
It is convenient for Russian users.
My website ublaze.ru
grover66
Registered User
Posts: 36
Joined: Mon Mar 19, 2007 1:48 pm

Re: [BETA] Karma MOD

Post by grover66 »

^ ahhh :P



Theres something else I noticed, its a little thing, when comments are enabled and user gets taken to the comments box, the title reads "Increase Users Karma", perhaps it should read say something like "Please leave a comment/reason for the post you will karma. This message will be left on the users profile etc etc... ". or something along these lines,
just an idea for b3 :)
komAk
Registered User
Posts: 7
Joined: Thu Dec 06, 2007 7:59 am

Re: [BETA] Karma MOD

Post by komAk »

I have a strange problem with this mod. I installed it and now it gives me the error:

Code: Select all

Parse error: syntax error, unexpected ')' in /home/playcs/public_html/includes/functions_karma.php on line 623
I don't understand why it is the original file. I replaced it and i got the same result. Help me please :(
User avatar
***Blaze***
Registered User
Posts: 53
Joined: Tue May 22, 2007 6:21 am
Location: Dankov, Russia
Name: Aleksej
Contact:

Re: [BETA] Karma MOD

Post by ***Blaze*** »

komAk. Look it this post
My website ublaze.ru
komAk
Registered User
Posts: 7
Joined: Thu Dec 06, 2007 7:59 am

Re: [BETA] Karma MOD

Post by komAk »

Thanks man!
Salvoxx
Registered User
Posts: 6
Joined: Mon Jul 02, 2007 2:53 pm

Re: [BETA] Karma MOD

Post by Salvoxx »

grover66 wrote:
Salvoxx wrote:
Salvoxx wrote:Hi!...

bbcode and smiles are disabled in the "view comments" page...

how can i fix it?? :cry:
UP!!!! :cry:
this is a dodgy workaround but it works.

find this partial line in karma.php about line 550

Code: Select all

$enable_bbcode	= (!$bbcode_status || isset($_POST['disable_bbcode'])) 
			$enable_smilies	= (!$smilies_status || isset($_POST['disable_smilies'])) 
replace the false with true

Code: Select all

			$enable_bbcode	= (!$bbcode_status || isset($_POST['disable_bbcode'])) ? true : true;
			$enable_smilies	= (!$smilies_status || isset($_POST['disable_smilies'])) ? true : true;
It does'nt work, i have tried also similar modifications (true, false)... :cry:

It would be also very useful add the possibility for mod and admin to delete or edit posted comments...

don't u think so? :mrgreen:
User avatar
Cr33per
Registered User
Posts: 366
Joined: Mon Aug 13, 2007 6:29 pm
Location: Illinois
Contact:

Re: [BETA] Karma MOD

Post by Cr33per »

grover66 wrote:
Salvoxx wrote:
Salvoxx wrote:Hi!...

bbcode and smiles are disabled in the "view comments" page...

how can i fix it?? :cry:
UP!!!! :cry:
this is a dodgy workaround but it works.

find this partial line in karma.php about line 550

Code: Select all

$enable_bbcode	= (!$bbcode_status || isset($_POST['disable_bbcode'])) 
			$enable_smilies	= (!$smilies_status || isset($_POST['disable_smilies'])) 
replace the false with true

Code: Select all

			$enable_bbcode	= (!$bbcode_status || isset($_POST['disable_bbcode'])) ? true : true;
			$enable_smilies	= (!$smilies_status || isset($_POST['disable_smilies'])) ? true : true;
I tried this and there still disabled. :cry: :cry:
grover66
Registered User
Posts: 36
Joined: Mon Mar 19, 2007 1:48 pm

Re: [BETA] Karma MOD

Post by grover66 »

its working fine for me. dont forget to clear the template cache through the ACP
grover66
Registered User
Posts: 36
Joined: Mon Mar 19, 2007 1:48 pm

Re: [BETA] Karma MOD

Post by grover66 »

Salvoxx wrote:It would be also very useful add the possibility for mod and admin to delete or edit posted comments...

don't u think so? :mrgreen:
I think in a later version they will do comments approval which is better IMO
User avatar
PCGUY112887
Registered User
Posts: 502
Joined: Thu Apr 01, 2004 12:39 am
Location: Illinois
Contact:

Re: [BETA] Karma MOD

Post by PCGUY112887 »

Is this stable enough to install and not need any tweaks to make this work, or are more people waiting for B3 for that?
Locked

Return to “[3.0.x] MODs in Development”